Side changes cause error? [Solved]

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
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Looking for a new CPU
Contact:

Side changes cause error? [Solved]

Post by Commander_Cody771 »

I am determined to find out the issue to this:
Hidden/Spoiler:
[code]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'[/code]
I made a new map to see if that did it but it didn't help a thing! All I did was make very light side changes and it is complaining about the CP's. BTW this is a completely new map. Not the other one. :cpu:
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: I know I have already posted a topic but...

Post by computergeek »

In your lua you messed something up with setting up command posts in your lua
look for inconsistencies in the
Hidden/Spoiler:
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}



--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
part, that will help you
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Looking for a new CPU
Contact:

Re: I know I have already posted a topic but...

Post by Commander_Cody771 »

That's just the point! I didn't even go to the folder to where the LUAs were. And al I did was make side changes.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: I know I have already posted a topic but...

Post by obiboba3po »

well it tends to work that if one little thing is messed up with the side, everything else gets messed up. that happened to me just a few topics back. i messed up something stupid in an odf, and it was complaining about the sky which i didnt touch. so go back over what you edited and make sure it is 100% perfect. if you think something may be messed up, post it here just to make sure.
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Looking for a new CPU
Contact:

Re: I know I have already posted a topic but...

Post by Commander_Cody771 »

Well. When the class selection appears after loading, the CP's aren't there.
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: I know I have already posted a topic but...

Post by elfie »

Belive it or not that sounds like a side issue to me. Check your sides, units odf and side.req and such.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: I know I have already posted a topic but...

Post by AceMastermind »

No need to post here what's messed up, just undo whatever changes you made and make sure the default map works first, then make a change and test after each change until you run into the problem again, then you'll know what's causing your problem.
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Looking for a new CPU
Contact:

Re: I know I have already posted a topic but...

Post by Commander_Cody771 »

Hmmmmmmm. I'm gonna try a manual clean.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: I know I have already posted a topic but...

Post by Teancum »

Does a brand new map with no changes have this issue?
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Looking for a new CPU
Contact:

Re: I know I have already posted a topic but...

Post by Commander_Cody771 »

No it does not have the issue. I did a manual clean and it got rid of the problem but non of the side changes showed up =(
User avatar
REivEN
1st Lieutenant
1st Lieutenant
Posts: 451
Joined: Wed Jul 04, 2007 11:59 am
Projects :: Jane - Sister Of the Courier Mod
Games I'm Playing :: CSGO FNV
xbox live or psn: No gamertag set
Location: What do you expect?

Re: I know I have already posted a topic but...

Post by REivEN »

did you add dc: in front of the side ?
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Looking for a new CPU
Contact:

Re: I know I have already posted a topic but...

Post by Commander_Cody771 »

OMG THAT WAS IT! Thank you so much REivEN!
Post Reply