Page 1 of 1

CP issue

Posted: Fri Jul 18, 2008 2:22 pm
by Commander_Cody771
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'

Where you select your CP, there is none! I didn't do anything with the CPs! :cpu: :( :runaway:

Re: CP issue

Posted: Fri Jul 18, 2008 8:17 pm
by Teancum
How many command posts do you have? You have to specify each one in the lua.

Re: CP issue

Posted: Fri Jul 18, 2008 8:21 pm
by Commander_Cody771
I didn't add any!

Re: CP issue

Posted: Fri Jul 18, 2008 8:27 pm
by Teancum
So you still have the four original command posts, and you haven't renamed anything, right?

Re: CP issue

Posted: Sat Jul 19, 2008 12:55 pm
by [RDH]Zerted
You don't have to specify any command posts, only if you want them counted during Conquest. One of your AddCommandPost( XXX ) is wrong. It could be from a typo in your lua, a typo in ZE on the name of a CP, or a CP was removed and you didn't update the lua.

Re: CP issue

Posted: Sat Jul 19, 2008 3:19 pm
by computergeek
For example I had
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp2 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}
instead of
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}

Re: CP issue

Posted: Thu Jul 24, 2008 5:53 pm
by Commander_Cody771
I did not add any CP's.

Re: CP issue

Posted: Thu Jul 24, 2008 7:15 pm
by NullCommando
Maybe a bad munge, try a manual clean and see if that helps.

Re: CP issue

Posted: Thu Jul 24, 2008 8:13 pm
by Hebes24
If that doesn't work, post the LUA.