AI units aren't showing up in map

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

Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

im sry, i tweaked the LUA and my map stopped crashing :wink: but there is still the problem with no AI units showing up on the map :x (for both eras)
fat_walrus

Post by fat_walrus »

It has to be something wrong in ZE. Of course, my frail mind could be dying and I might of missed something wrong in your LUA....
t551
General
General
Posts: 791
Joined: Sat Jul 16, 2005 3:23 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by t551 »

Code: Select all

ReadDataFile("dc:SIDE\\rep.lvl", 
"rep_inf_ep3_rifleman", 
"rep_inf_ep3_rocketeer", 
"rep_inf_ep3_engineer", 
"rep_inf_ep3_sniper", 
"rep_inf_ep3_officer", 
"rep_inf_ep3_jettrooper", 
"rep_hover_fightertank", 
"rep_hero_anakin", 
"rep_hover_barcspeeder")
Have you actually created an entire republic custom side? If not, then take away the dc:

Copying and pasting an entire shipped side is an extremely inefficient way to add custom units into a map.

I doubt that this is causing the problem, though.
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

i already deleted that dc: :wink: And AI still don't show up. :x
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

Start commenting out parts of your lua. Comment out all but one unit for each team (use official sides, not DC ones). See it it works. Comment out all the CPs. See if it works (note should load and start Victory timer). You need to remove features until your map stats working again. When it starts working, you know the problem is with the last feature set you removed. Narrow down the possibilites of the error.
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

commenting? So you're saying i have to delete parts of my LUA? I'm sure it's not a problem with my LUA because i didn't even touch the GCW one and AI don't show up in GCW. And yeah, what do you mean by commenting?
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

//commenting things out like so
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

Post by Teancum »

Actually in lua you use -- :P
Elmo
Field Commander
Field Commander
Posts: 962
Joined: Wed Nov 08, 2006 5:13 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Elmo »

ahhh. ok, but i still don't see how Zerted's method is supposed to work. Ok, I start the map. It doesn't crash *whew* And then there are 2 cps. One rep, one CIS, or one imp or one reb (for GCW) I can spawn from one of the cps :wink: I spawn, I look around the battlefield, find no AI units. :wink: That's the problem I'm trying to figure out. So, what would Zerted's method do to help toward finding a way to make the AI appear on the map? :wink:
Post Reply