What is causing this?

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
User avatar
fai222
Command Sergeant Major
Command Sergeant Major
Posts: 254
Joined: Wed Jul 30, 2008 2:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Norway, Xfire: Fai222

What is causing this?

Post by fai222 »

Hi, I got a small problem. I have started on a map, and my problem is that no AI spawn in the map. Not in CW and not in GCW. Please, i need help. In one minute the map worked and AI spawned, then i placed a few objects and fixed some of my cp_capture regions (something was wrong with them). I munged and then i tried it, no AI spawned.
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: What is causing this?

Post by B.I.G_Cookie »

You have to move the path ( cp_spawns ) over the cp.
Region isjust the radius where you can capture the cp.

e.g. cp1_spawn to cp1
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

Re: What is causing this?

Post by Teancum »

Unlikely. What's more than likely is one of three things:

1-You added a CP
2-You deleted a CP
3-You renamed a CP

All of which require you to go into the lua and update it in this section:
Hidden/Spoiler:
cp1 = CommandPost:New{name = "CP1"}
cp2 = CommandPost:New{name = "CP2"}
cp3 = CommandPost:New{name = "CP3"}
cp4 = CommandPost:New{name = "CP4"}
cp5 = CommandPost:New{name = "CP5"}
cp7 = CommandPost:New{name = "CP7"}

--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF, textATT = "game.modes.con", textDEF = "game.modes.con2", multiplayerRules = true}

--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp7)
User avatar
fai222
Command Sergeant Major
Command Sergeant Major
Posts: 254
Joined: Wed Jul 30, 2008 2:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Norway, Xfire: Fai222

Re: What is causing this?

Post by fai222 »

Hmm... actually the problem showed up after i updated. Ill check the lua to see if i wrote something wrong or anything.

EDIT: I think i found the problem. I updated the GCW lua, but not the CW.
EDIT2: No, it wasnt that. AI still dont spawn.
EDIT3: I found the problem. I hadnt placed cp3 :oops: :runaway:
Post Reply