Adding a New Game Mode Error [Solved]
Moderator: Moderators
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Adding a New Game Mode Error [Solved]
hey people. I have been trying to create a new Game mode for one of my maps, called bounty Hunter, but at the moment for referenceing purposes it is called Survival. So the lua is called BHTc_surv.
Unfortuanatley, when I tried to test it, I get this in the error log:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1010)
Data in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\BHT\Data\_lvl_pc\MISSION.lvl is not a binary UCF file.
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1019)
Unable to find level chunk in MISSION.lvl
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(112)
OpenScript(BHTc_surv): script (f2655553) not found
Message Severity: 5
C:\Battlefront2\main\Battlefront2\Source\GameState.cpp(1283)
Could not open MISSION\BHTc_surv.lvl
And a FATAL CTD. I guess I have done something wrong when adding the the game mode, probabley in the addme, mission or common scripts. Can anyone help me out?
Unfortuanatley, when I tried to test it, I get this in the error log:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1010)
Data in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\BHT\Data\_lvl_pc\MISSION.lvl is not a binary UCF file.
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1019)
Unable to find level chunk in MISSION.lvl
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(112)
OpenScript(BHTc_surv): script (f2655553) not found
Message Severity: 5
C:\Battlefront2\main\Battlefront2\Source\GameState.cpp(1283)
Could not open MISSION\BHTc_surv.lvl
And a FATAL CTD. I guess I have done something wrong when adding the the game mode, probabley in the addme, mission or common scripts. Can anyone help me out?
Last edited by Slime615 on Sun May 27, 2012 3:35 pm, edited 1 time in total.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Adding a New Game Mode Error
Assuming you added this mode to your addme.lua correctly (since you seem to be able to select it on the Instant Action screen), and you have a proper lua file for it for now, do you have a REQ file for it, and have you referenced this REQ file in your mission.req file? If so, then you either have messed up one of these or both of them and should post their contents, if you don't already recognize your mistakes.
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Re: Adding a New Game Mode Error
Here you go. I do have a .req that is referenced in the mission.req as well.
here are the various .reqs and .luas you wanted. If you want to see any more, just ask. Do you want to see the BHTc_surv Lua as well? Just ask.
BHTc_surv.req:
mission.req:(I think the error might be here.)
addme.lua:
here are the various .reqs and .luas you wanted. If you want to see any more, just ask. Do you want to see the BHTc_surv Lua as well? Just ask.
BHTc_surv.req:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Adding a New Game Mode Error
It says BHTc_surv.lua does not exist. Since you indeed did create it, in what directory is it located?Slime615 wrote:Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(112)
OpenScript(BHTc_surv): script (f2655553) not found
It is your duty and responsibility as someone who is being helped to provide information related to the problems at hand, including the steps you took and the files you created/edited. If you believe the information is relevant (i.e. would most likely be asked for if not provided in the first place), then you should provide it. If you are unsure (also in how you did something), then you should probably provide it anyway.Slime615 wrote:Just ask.
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Re: Adding a New Game Mode Error
This is the directory: F:\BF2_ModTools\data_BHT\Common\scripts\BHT
i can not possibly provide you with every single script, on the off chance it may be relevent. What I meant, was that if you required files that I had not mentioned, then you need only ask to see them. I see no problem in that was a concept
.
This is the LUA I used:
There. I am not sure what else I can provide, but If you want to know anything else, then I can provide that infomation.
i can not possibly provide you with every single script, on the off chance it may be relevent. What I meant, was that if you required files that I had not mentioned, then you need only ask to see them. I see no problem in that was a concept
This is the LUA I used:
Hidden/Spoiler:
Last edited by Slime615 on Wed May 30, 2012 11:36 am, edited 1 time in total.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Adding a New Game Mode Error
You are completely certain that the lua and its REQ are named BHTc_surv? If so, that's everything I've got.
Sure you can... and it's quite possible. You named/referenced about four of them in your first post but did not post their contents... so I asked for them. Had you provided them in the first place, I or anyone else wouldn't need to ask for them. See?Slime615 wrote:i can not possibly provide you with every single script, on the off chance it may be relevent.
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Re: Adding a New Game Mode Error
I just checked all of the files - Yes - Its called that all of the time.... BHTc_surv....
EDIT: Dont know if this helps - but I got an errorr from the Munge Log as well:
EDIT: Dont know if this helps - but I got an errorr from the Munge Log as well:
Hidden/Spoiler:
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Adding a New Game Mode Error
It might be worth trying a manual clean. If you get UCFT errors, I always try cleaning and remunging, as I find it to often be a corruption error or something along those lines.
If your mission.lvl is corrupted, nothing's going to be read, is it? You'll probably find that conquest doesn't work either.
If your mission.lvl is corrupted, nothing's going to be read, is it? You'll probably find that conquest doesn't work either.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Adding a New Game Mode Error
That line is invalid. It is line 139 in your lua, as pointed out by the munge log. In order to comment something out properly, you need use two hyphens (--). So you would then have:BHTc_surv.lua wrote:Code: Select all
-Friends
Code: Select all
--Friends- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Adding a New Game Mode Error
That's one of those things that you always post. 
The second lot of errors relating to your req would seem to suggest an error munging the .req; as I mentioned before, try a manual clean and munge, as well as what AQT said.
The second lot of errors relating to your req would seem to suggest an error munging the .req; as I mentioned before, try a manual clean and munge, as well as what AQT said.
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Re: Adding a New Game Mode Error
Well, Munge error, are useualy hard to interperate in my experience, but, I can understand most error logs complaints, so I have a habit of ignoreing them.... Thanks, will fix that now...
EDIT:
I did a manual clean, and have good news and Bad news.
Good news and bad news. The good news is the Map loads now, and does not CTD. The Bad newsw is that it does not give me any spawn points.... I get the spawn menu, but can't select any of the CPs (They don't even appear on the minimap) and so can't spawn... I just did a manual clean and munge, so I have no idea what the problem might be....
EDIT:
I did a manual clean, and have good news and Bad news.
Good news and bad news. The good news is the Map loads now, and does not CTD. The Bad newsw is that it does not give me any spawn points.... I get the spawn menu, but can't select any of the CPs (They don't even appear on the minimap) and so can't spawn... I just did a manual clean and munge, so I have no idea what the problem might be....
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Adding a New Game Mode Error
Now that the map actually loads, and you are still experiencing problems, it would be a good time to run the debug .exe and acquire a new error log. Then see for yourself first whether you can fix anything it says.
No, you are mistaken. People tend to confuse me with Ace and vice versa. I believe it has to do with our names.lucasfart wrote:That's one of those things that you always post.
Those errors all arose from that single mistake in his lua. The REQ doesn't munge properly because its lua doesn't munge properly, and so on and so forth. It's like a chain reaction of sorts. So doing the manual clean was unnecessary. Look at what you've gotten him into now!The second lot of errors relating to your req would seem to suggest an error munging the .req
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Adding a New Game Mode Error
Oops. That was actually aimed at Slime - i meant the bf2 munge log is one of those things you should always post.AQT wrote:No, you are mistaken. People tend to confuse me with Ace and vice versa. I believe it has to do with our names.lucasfart wrote:That's one of those things that you always post.
Huh. I didn't know that. I always thought it was completely unrelated....AQT wrote:Those errors all arose from that single mistake in his lua. The REQ doesn't munge properly because its lua doesn't munge properly, and so on and so forth. It's like a chain reaction of sorts. So doing the manual clean was unnecessary. Look at what you've gotten him into now!lucasfart wrote:The second lot of errors relating to your req would seem to suggest an error munging the .req
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Re: Adding a New Game Mode Error
Okay, I still can't spawn on the Map, and the error log gives me this as an answer:
Anyone know what the problem is?
Hidden/Spoiler:
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Adding a New Game Mode Error
Nope, clueless, no idea what the problem could possibly be.BFront2.log wrote:Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(829)
Unable to find level chunk CMD_conquest in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\BHT\Data\_lvl_pc\BHT\BHT.lvl
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1019)
Unable to find level chunk in dc:BHT\BHT.lvl
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Platform\PC\pcFirstPerson.cpp(69)
FirstPerson::LoadLVLFile: Could not open FPM\REP\rep.lvl
Did you ever update your REQs and LDXs through Zero Editor?
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Adding a New Game Mode Error
Is there any particular reason why your conquest layer is called CMD_conquest instead of BHT_conquest?
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Re: Adding a New Game Mode Error
@ lucasfart - Its because I imported the script from a seperate map - and forgot to change that. Thats fixed now.
@Marth8880 - I have used the ZE Application to modify it, but not changed the world.req in any way other than that.
@Marth8880 - I have used the ZE Application to modify it, but not changed the world.req in any way other than that.
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: Adding a New Game Mode Error
So you made sure it's always called BHT_Conquest, both in ZE and in your LUA?
And with the "importing", did you import just a lua, or a whole map?
And with the "importing", did you import just a lua, or a whole map?
-
Slime615
- Lieutenant General

- Posts: 704
- Joined: Thu Jan 07, 2010 9:38 am
Re: Adding a New Game Mode Error
Okay - Its working. As for the Importing - IO meant vause the lua came from a different map - and I forgot to change it to reflect the "new" map I was useing.
My Only problem Now is getting the local sides to appear - but thats a different issue entirley.
Thanks for all you help!
My Only problem Now is getting the local sides to appear - but thats a different issue entirley.
Thanks for all you help!
