Locals/units not spawning problem

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
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Locals/units not spawning problem

Post by ARCTroopaNate »

So I'm trying to add locals and it wasn't working so I tried making their CP capturable and the CP is now capturable but now the AI don't spawn! I'm not getting any errors or warnings. Can someone please help me.

BTW I was following Firefeks 3.5 tutorial.

CW lua
Hidden/Spoiler:
--This defines the CPs. These need to happen first
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"}
cp6 = CommandPost:New{name = "cp6"}
cp7 = CommandPost:New{name = "localcp1"}

--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(cp6) conquest:AddCommandPost(cp7)

conquest:Start()

EnableSPHeroRules()

end

ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep2_rifleman",
"rep_inf_ep2_engineer",
"rep_fly_gunship_sc")

ReadDataFile("SIDE\\imp.lvl",
"imp_walk_atst")

ReadDataFile("SIDE\\vehicle.lvl",
"rep_walk_atxt")

ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_marine",
"cis_inf_rocketeer")

ReadDataFile("SIDE\wok.lvl",
"wok_inf_mechanic",
"wok_inf_rocketeer")
GCW lua
Hidden/Spoiler:
--This defines the CPs. These need to happen first
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"}
cp6 = CommandPost:New{name = "cp6"}
cp7 = CommandPost:New{name = "localcp1"}

--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(cp6)
conquest:AddCommandPost(cp7)

conquest:Start()

EnableSPHeroRules()

end

ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_rifleman_fleet",
"all_inf_rocketeer_fleet")

ReadDataFile("dc:SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_officer",
"imp_walk_atst",
"imp_fly_trooptrans")

ReadDataFile("SIDE\wok.lvl",
"wok_inf_mechanic",
"wok_inf_rocketeer")
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: Locals/units not spawning problem

Post by acryptozoo »

did you add the part that goes after the hero setup?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Locals/units not spawning problem

Post by AQT »

Try following a more comprehensive tutorial:
Post Reply