I did not edit the CP's I did not make any changes in map, all I did was munge two new sides, before that everything was fine. I am sick of this error popping up in many maps for no good reason.Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(3776)
Command Post "cp1" not found
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'
Command Posts Error
Moderator: Moderators
-
NullCommando
- Jedi

- Posts: 1010
- Joined: Sat Dec 01, 2007 12:29 pm
- xbox live or psn: NullCommando
- Location: Earth
Command Posts Error
For no good reason the command posts dissapear:
-
PsYcH0_]-[aMsT3r
- 2nd Lieutenant

- Posts: 405
- Joined: Fri Jan 25, 2008 3:11 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Location Location.
Re: Command Posts Error
Are all your scripts normal? Looks like something wrong with these lines:
Hidden/Spoiler:
-
NullCommando
- Jedi

- Posts: 1010
- Joined: Sat Dec 01, 2007 12:29 pm
- xbox live or psn: NullCommando
- Location: Earth
Re: Command Posts Error
There is nothing wrong with those lines in my script.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Command Posts Error
You still have just four CPs, right? And in ZeroEdit they're named cp1, cp2, cp3 and cp4?
- elfie
- Field Commander

- Posts: 931
- Joined: Fri Jan 25, 2008 8:26 pm
- xbox live or psn: no live
- Location: Coruscant, Jedi Temple
- Contact:
Re: Command Posts Error
do they show up in ze, are they visible when you are in the conquest layer?
-
NullCommando
- Jedi

- Posts: 1010
- Joined: Sat Dec 01, 2007 12:29 pm
- xbox live or psn: NullCommando
- Location: Earth
Re: Command Posts Error
Yes they show up in ZE and, I have 9 command Posts all named accordingly.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Command Posts Error
Well then you need to set up 9 CPs in the lua. You only have four set up.
-
NullCommando
- Jedi

- Posts: 1010
- Joined: Sat Dec 01, 2007 12:29 pm
- xbox live or psn: NullCommando
- Location: Earth
Re: Command Posts Error
O.o Uh Tean, if you mean that other script.. That's not my script LOL I have all of the Command Posts set up in the .lua
-
woner11
- Sith

- Posts: 1361
- Joined: Tue Sep 18, 2007 10:17 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The lost world of pickels
- Contact:
Re: Command Posts Error
Could you post your lua?
-
NullCommando
- Jedi

- Posts: 1010
- Joined: Sat Dec 01, 2007 12:29 pm
- xbox live or psn: NullCommando
- Location: Earth
Re: Command Posts Error
I doubt it has anything to do with my .lua.
Hidden/Spoiler:
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Command Posts Error
Make sure your ZE commandpost names correspond with the names you're calling in the .lua. Yes, I know it sounds like a broken record, but that's what that error is saying is the problem.
Also, you ought to just comment out lines (for units) if there's no unit being added there (i.e. "special = { "",1, 4},"). Instead of: make it:
I don't know if you're going to cause an error having it the way you do, but it seems like it might have the potential to. I could easily be wrong but there's no sense in taking the chance.
Also, you ought to just comment out lines (for units) if there's no unit being added there (i.e. "special = { "",1, 4},"). Instead of:
Code: Select all
special = { "",1, 4},Code: Select all
--special = { "",1, 4},-
NullCommando
- Jedi

- Posts: 1010
- Joined: Sat Dec 01, 2007 12:29 pm
- xbox live or psn: NullCommando
- Location: Earth
Re: Command Posts Error
I'll double check the command posts, and I've never had problemes leaving those the way they are put, I'll comment them out.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Command Posts Error
Something is wrong with your cp1. Either its named wrong in ZE or something failes in ScriptInit() before the map data is fully loaded (thus cp1 isn't laoded for your map).
1) Check the CP name
2) Make sure the CP is in a layer loaded for Conquest
What is your map name? Is there a reason why the map's folder is not named the same as the map itself?
1) Check the CP name
2) Make sure the CP is in a layer loaded for Conquest
What is your map name? Is there a reason why the map's folder is not named the same as the map itself?
