cp related crash?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
RED51
Jedi
Jedi
Posts: 1024
Joined: Sun Sep 07, 2008 6:25 pm
Games I'm Playing :: SWBFII

cp related crash?

Post by RED51 »

I'm making my third map for MPBF, and I've come across this sev 3 error:

Code: Select all

Message Severity: 3
.\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to perform arithmetic on a nil value
stack traceback:
	(none): in function `AddCommandPost'
	(none): in function `ScriptPostLoad'
What ever that is, it must be crashing my map. Worse, I haven't even touched the lua yet, so I have no idea whats causing this sev 3. Anyone here know how to fix this?
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: cp related crash?

Post by Fluffy_the_ic »

You may have done something to one of the CPs, by that I mean accidentally deleted the spawn region, accidentally deleted the actual CP, etc. and you still have it in your LUA, which, (not sure on this one) should cause a crash.
User avatar
RED51
Jedi
Jedi
Posts: 1024
Joined: Sun Sep 07, 2008 6:25 pm
Games I'm Playing :: SWBFII

Re: cp related crash?

Post by RED51 »

I'll go see if I changed anything to the cps, but theres only one cp, and all I really want to do is go and take a look around the map before I start putting in more cps and start to make plans.
OffTopic: :funny2: you have to go see this at kotor files!! I was just looking at all of the file's game's potds archive, and I found this:http://knightsoftheoldrepublic.filefron ... otd/106414 through the pic it self may not be funny, but the cap is! Mav, you have a good sense of humor, nice job!
NOTE TO STAFF: sorry if I broke a rule with the offtopic thing. If this is a problem, then I remove the offtopic section.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: cp related crash?

Post by [RDH]Zerted »

Missin' th' spawn region won't cause that error. If ye deleted a CP from th' map (which ye had to if ye only have one CP), then ye must also remove th' deleted CP's conquest lines from th' lua. Open up ye lua and take a look at it. fer each CP ye removed, thar be a pair lines in th' lua ye also have to remove.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: cp related crash?

Post by Fluffy_the_ic »

[RDH]Zerted wrote:Missin' th' spawn region won't cause that error. If ye deleted a CP from th' map (which ye had to if ye only have one CP), then ye must also remove th' deleted CP's conquest lines from th' lua. Open up ye lua and take a look at it. fer each CP ye removed, thar be a pair lines in th' lua ye also have to remove.
LOLzorz, talkin' like a pirate be fun, arrgh! An' 'at mak's mo' sense 'an 'at ah said.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: cp related crash?

Post by [RDH]Zerted »

[RDH]Zerted wrote:Missin' th' spawn region won't cause that error. If ye deleted a CP from th' map (which ye had to if ye only have one CP), then ye must also remove th' deleted CP's conquest lines from th' lua. Open up ye lua and take a look at it. fer each CP ye removed, thar be a pair lines in th' lua ye also have to remove.
Missing the spawn region won't cause that error. If you deleted a CP from the map (which you had to if you only have one CP), then you must also remove the deleted CP's conquest lines from the lua. Open up your lua and take a look at it. For each CP you removed, there will be two lines in the lua you also have to remove.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: cp related crash?

Post by Fluffy_the_ic »

Fluffy_the_ic wrote:
[RDH]Zerted wrote:Missin' th' spawn region won't cause that error. If ye deleted a CP from th' map (which ye had to if ye only have one CP), then ye must also remove th' deleted CP's conquest lines from th' lua. Open up ye lua and take a look at it. fer each CP ye removed, thar be a pair lines in th' lua ye also have to remove.
LOLzorz, talkin' like a pirate be fun, arrgh! An' 'at mak's mo' sense 'an 'at ah said.
LOLzorz, talking like a pirate is fun. And it make more sens than what I said.
Srry, zerted. Wasn't clear on what I meant. I meant What you said on the topic makes more sense than what I said about it.
Post Reply