AI not spawning [solved]

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

Post Reply
ZoomV
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 308
Joined: Thu Aug 15, 2013 11:27 am
Projects :: Old Republic Map pack
Games I'm Playing :: BF2 SWTOR and GW2
xbox live or psn: No gamertag set
Location: Belsavis, Maximum Security Ward

AI not spawning [solved]

Post by ZoomV »

So I changed around some things with my map where now it loads all but one command post from the conquest layer, and then I have another layer that has the final command post. This is so I can have the last command post owned by locals in one era but not in the other.

However when I ran it, none of the units spawned. The locals spawned fine and I the player can spawn and run around and cap all of the command posts and spawn from them fine but no trace of AI.

The only error I could find in my BF2logfile that seemed possibly related was this

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\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'
Last edited by ZoomV on Fri Jun 27, 2014 6:54 pm, edited 1 time in total.
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:

Re: AI not spawning

Post by [RDH]Zerted »

At least one of your CP names is wrong. Depending on if you deleted the CP or renamed it, you'll have to remove or edit a couple lines in your lua file.
Post Reply