How do I change the CP number?
Moderator: Moderators
- Filipinio
- Master Sergeant

- Posts: 178
- Joined: Fri Jan 22, 2010 3:29 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mygeeto's Bridge Battle's
How do I change the CP number?
Is there anyway of changing the cp number, like, when i add a cp to a shipped map and i munge, the number i made the cp is always wrong ingame, is their anyway of changing it? (E.G i named my cp in zeroeditor CP6 and ingame it is like CP8 or CP7 ot any other one but not CP6 )
- Filipinio
- Master Sergeant

- Posts: 178
- Joined: Fri Jan 22, 2010 3:29 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mygeeto's Bridge Battle's
Re: Cp's
well its becuase my map when i play it there are like two CP3's and CP4's and i want them to have thier own number
- Filipinio
- Master Sergeant

- Posts: 178
- Joined: Fri Jan 22, 2010 3:29 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mygeeto's Bridge Battle's
Re: Cp's
Adding on to my old post, is thier anyway of making differant amount of AI units spaen from differant cp's like 20 spawn in CP1 and 35 spawn in CP2?
- 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: Cp's
I think it has something to do with goal weight
Not sure if this will work but try:
SetProperty("cp#", "AiSpawnWeight", ####)
SetProperty("cp#", "AiGoalWeight", ####)
Not sure if that'll wrk but i think its something like that...
Not sure if this will work but try:
SetProperty("cp#", "AiSpawnWeight", ####)
SetProperty("cp#", "AiGoalWeight", ####)
Not sure if that'll wrk but i think its something like that...
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: How do I change the CP number?
I'm betting the problem is in your lua (in the part where it defines the names of the CP's). Can we see your lua?
- 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: How do I change the CP number?
If you're talking about changing the cp's name from the lua, i don't think it will work at all. the lua doesn't set the names of the cp's just the fact that they exist.......Fierfek wrote:I'm betting the problem is in your lua (in the part where it defines the names of the CP's). Can we see your lua?
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: How do I change the CP number?
Actually, the lua does set the cp's names. Trust me - I wrote the beginner's guide for moddinglucasfart wrote:If you're talking about changing the cp's name from the lua, i don't think it will work at all. the lua doesn't set the names of the cp's just the fact that they exist.......Fierfek wrote:I'm betting the problem is in your lua (in the part where it defines the names of the CP's). Can we see your lua?
Anyway, your problem is near the beginning of your lua. Here is what a standard, unchanged lua looks like (with ICH as the 3-letter code):
Hidden/Spoiler:
Hidden/Spoiler:
- Filipinio
- Master Sergeant

- Posts: 178
- Joined: Fri Jan 22, 2010 3:29 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mygeeto's Bridge Battle's
Re: How do I change the CP number?
ok this is my lua ( its bfx ) but i use it instead of the original CW most of the time
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: How do I change the CP number?
a bit offtopic but why are you trying to load the common.lvl twice?Filipinio wrote:ok this is my lua ( its bfx ) but i use it instead of the original CW most of the time
Hidden/Spoiler:
- Filipinio
- Master Sergeant

- Posts: 178
- Joined: Fri Jan 22, 2010 3:29 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Mygeeto's Bridge Battle's
Re: How do I change the CP number?
oh and sorry for bringing this old topic a bit forward but i found out how to change the cp number ingame, in zerodeitor click the cp and keep clicking pg down untill you get to the last page, were it says:
HUDindex
this defines what the cp will be called ingame, example:
in HUDindex i put 4, the cp you wrote it in will be called cp 4 ingame...
HUDindex
this defines what the cp will be called ingame, example:
in HUDindex i put 4, the cp you wrote it in will be called cp 4 ingame...
- 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: How do I change the CP number?
Thats handy. Thanks Filipino. i was pretty sure it had nothing to do with fierfeks way.......
-
RogueKnight
- Space Ranger
- Posts: 2512
- Joined: Sat Nov 22, 2008 1:50 pm
- Projects :: Life. Work.
- xbox live or psn: No gamertag set
- Location: Washington, US
Re: How do I change the CP number?
Actually, Fierfek is right, if the CP names in the .lua don't match the ones in ZE, your game will crash.lucasfart wrote:Thats handy. Thanks Filipino. i was pretty sure it had nothing to do with fierfeks way.......
- 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: How do I change the CP number?
i know he was right in that regard, but in order to change the number of the cp which shows up ingame, filipino just posted the correct way. i know you need to define the cp there, but that doesn't affect what it is called ingame does it?RogueKnight wrote:Actually, Fierfek is right, if the CP names in the .lua don't match the ones in ZE, your game will crash.lucasfart wrote:Thats handy. Thanks Filipino. i was pretty sure it had nothing to do with fierfeks way.......

