Strange AI and CP Capture Problem
Moderator: Moderators
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Strange AI and CP Capture Problem
Ok I finally got my first map munged thanks to the vista munge fix, but something's wrong. I added cp's to my lua's and ZE w/ spawn paths and capture reigions, but I am the only one on the battlefield. What is up with that? 
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Strange AI and CP Capture Problem
Please post your LUA(s) and the names of your CP's and their corresponding spawn paths and capture regions in ZE. Make sure that they match up correctly. Always post your LUA in situations like this.
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Strange AI and CP Capture Problem
Here are my lua's
Galactic civil war isn't working. It crashes.
Galactic civil war isn't working. It crashes.
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Strange AI and CP Capture Problem
?AQT wrote:and the names of your CP's and their corresponding spawn paths and capture regions in ZE
-
MrCrayon
- Jedi Knight

- Posts: 554
- Joined: Sat Apr 17, 2010 8:15 pm
- Projects :: Coruscant map Want to help PM me
- Location: Buried in homework, but getting better
Re: Strange AI and CP Capture Problem
Why did you give us the clone wars Lua if it is the GCW that is the problem?
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Strange AI and CP Capture Problem
yes please post this.AQT wrote:?AQT wrote:and the names of your CP's and their corresponding spawn paths and capture regions in ZE
What AQT is trying to find out is if you referenced the cps properly in your lua.
if you do not the game cant spawn the ai because it is not reading what cps are there. you have to be careful you reference them all properly
@Why did you give us the clone wars Lua if it is the GCW that is the problem?
GCW is crashing but thats not the prob he is haveing
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Strange AI and CP Capture Problem
Alright here is the gcw lua
Names: cp2, cp3, cp4, cp5, cp6, cp7.
cp2_spawn, cp3_spawn, cp4_spawn, cp5_spawn, cp6_spawn, cp7_spawn
cp2_capture, cp3_capture, cp4_capture, cp5_capture, cp6_capture, cp7_capture
What else?
Names: cp2, cp3, cp4, cp5, cp6, cp7.
cp2_spawn, cp3_spawn, cp4_spawn, cp5_spawn, cp6_spawn, cp7_spawn
cp2_capture, cp3_capture, cp4_capture, cp5_capture, cp6_capture, cp7_capture
What else?
Hidden/Spoiler:
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Strange AI and CP Capture Problem
change this
to this
Hidden/Spoiler:
Hidden/Spoiler:
-
Jaspo
- Command Sergeant Major

- Posts: 282
- Joined: Sun Mar 01, 2009 4:34 am
- Projects :: AotC DoW+++Boonta Eve Classic
- xbox live or psn: No gamertag set
- Contact:
Re: Strange AI and CP Capture Problem
Eh, read those scripts a little better, guys.
the cw script has CPs 1 through 6 listed, and the gcw script has CPs 1 through 4.
And, he told us that he has CPs 2 through 7 on the map.
so, he needs CPs 2 through 7 listed in the scripts as well. Not sure why he didn't start at 1, but whatever, I don't think that'll cause any problems, could be wrong though.
so for both scripts change it to
the cw script has CPs 1 through 6 listed, and the gcw script has CPs 1 through 4.
And, he told us that he has CPs 2 through 7 on the map.
so, he needs CPs 2 through 7 listed in the scripts as well. Not sure why he didn't start at 1, but whatever, I don't think that'll cause any problems, could be wrong though.
so for both scripts change it to
Hidden/Spoiler:
Last edited by Jaspo on Mon Nov 15, 2010 1:49 pm, edited 2 times in total.
-
THEWULFMAN
- Space Ranger
- Posts: 5557
- Joined: Tue Aug 17, 2010 3:30 pm
- Projects :: Evolved 2
- Location: Columbus, Ohio
- Contact:
Re: Strange AI and CP Capture Problem
yes, im sorry, listen to jaspo, but as a note, you cant do color inside
Code: Select all
lines-
Jaspo
- Command Sergeant Major

- Posts: 282
- Joined: Sun Mar 01, 2009 4:34 am
- Projects :: AotC DoW+++Boonta Eve Classic
- xbox live or psn: No gamertag set
- Contact:
Re: Strange AI and CP Capture Problem
I noticed...
*changed*
Aha! Found another problem.
You're loading snow units in GCW but then telling the game to spawn regular units...not going to work, because it didn't load the regular units. Also, I'm not sure if all those snow names are right, make sure you check the side odf files in the stock assets to be sure.
Make 'em match in these parts...
*changed*
Aha! Found another problem.
You're loading snow units in GCW but then telling the game to spawn regular units...not going to work, because it didn't load the regular units. Also, I'm not sure if all those snow names are right, make sure you check the side odf files in the stock assets to be sure.
Make 'em match in these parts...
Hidden/Spoiler:
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Strange AI and CP Capture Problem
I am amking a Rhen Var map so I want snow sides.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Strange AI and CP Capture Problem
Your SetupTeams section isn't referencing the correct loaded snow units.
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Strange AI and CP Capture Problem
It isn't? Then what is?
Ok so I go delete cps and I rename the paths, regions and cp names and with a fixed lua and the game crashes.
There are cw and gcw lua's here.
Please use Hide tags with large walls of code, -Staff
Ok so I go delete cps and I rename the paths, regions and cp names and with a fixed lua and the game crashes.
Hidden/Spoiler:
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Strange AI and CP Capture Problem
I'm not sure what you are asking, but if you take a look at the previous LUA you posted, the units referenced in the SetupTeams section do not match the ones being loaded from the imp and all side .lvls. You seem to have corrected it now based on the GCW LUA you just posted.modmaster13 wrote:It isn't? Then what is?
First off, did you get any errors while munging your map? You have a mistake with the following line in your GCW LUA:
Code: Select all
"imp_fly_destroyer_dome" )You have a mistake with the following section of your CW LUA:
Code: Select all
ReadDataFile("dc:SIDE\\dlc.lvl",
"dlc_hero_fistoBy the way, rep_hero_fisto is a nonexistent unit in the stock rep.lvl. Also, if this Rhen Var map you are making is a SWBF1 conversion, you are probably loading the incorrect layer/world .lvl.
-
modmaster13
- General

- Posts: 777
- Joined: Wed Aug 18, 2010 4:23 pm
- xbox live or psn: KrypticcElementt
- Location: Twitter @_KrypticElement
- Contact:
Re: Strange AI and CP Capture Problem
I am doing that and a custom one (both separate)
