1/5 Locals Spawn [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
User avatar
AgentSmith_#27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 302
Joined: Thu Feb 11, 2010 3:10 pm
Projects :: No Projects I am ready to unveil
Games I'm Playing :: SWBF2-MW2-Madden 08
xbox live or psn: No gamertag set
Location: Zeroeditor
Contact:

1/5 Locals Spawn [Solved]

Post by AgentSmith_#27 »

I have a local team set up, and it appears to work, accept that I have 5 path nodes and 5 units specified to spawn in my LUA, yet only 1 unit is on the field at one time. Here are the defining LUA lines:

-------------------------------------------
ReadDataFile("dc:SIDE\\alc.lvl",
"alc_inf_geonosian")
-------------------------------------------

-------------------------------------------
SetTeamName (4, "Aliens")
AddUnitClass (4, "alc_inf_geonosian", 5,5)
SetUnitCount (4, 5)
AddAIGoal(4, "Deathmatch", 100)
SetTeamAsEnemy(ATT,4)
SetTeamAsEnemy(4,ATT)
SetTeamAsEnemy(DEF,4)
SetTeamAsEnemy(4,DEF)
-------------------------------------------

anyone notice any inconsistencies?

EDIT: Well, I solved it all by myself. What I did was swap it with local team 3 (which I only wanted one of anyway) so that it was team 3 and the other one was team 4, and changed this:
AddUnitClass (3, "alc_inf_geonosian", 5,5)
to this:
AddUnitClass (3, "alc_inf_geonosian", 1,5)
Last edited by AgentSmith_#27 on Thu Jul 08, 2010 2:53 pm, edited 1 time in total.
Darth_Squoobus
General
General
Posts: 760
Joined: Mon Aug 03, 2009 3:21 am
Projects :: No Mod project currently.
Location: over the hills and far away

Re: 1/5 Locals Spawn

Post by Darth_Squoobus »

AgentSmith_#27 wrote:I have a local team set up, and it appears to work, accept that I have 5 path nodes and 5 units specified to spawn in my LUA, yet only 1 unit is on the field at one time. Here are the defining LUA lines:

-------------------------------------------
ReadDataFile("dc:SIDE\\alc.lvl",
"alc_inf_geonosian")
-------------------------------------------

-------------------------------------------
SetTeamName (4, "Aliens")
AddUnitClass (4, "alc_inf_geonosian", 5,5)
SetUnitCount (4, 5)
AddAIGoal(4, "Deathmatch", 100)
SetTeamAsEnemy(ATT,4)
SetTeamAsEnemy(4,ATT)
SetTeamAsEnemy(DEF,4)
SetTeamAsEnemy(4,DEF)
-------------------------------------------

anyone notice any inconsistencies?
I don't see anything, but you might want to raise the reinforcement count. Otherwise they won't last long.
User avatar
AgentSmith_#27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 302
Joined: Thu Feb 11, 2010 3:10 pm
Projects :: No Projects I am ready to unveil
Games I'm Playing :: SWBF2-MW2-Madden 08
xbox live or psn: No gamertag set
Location: Zeroeditor
Contact:

Re: 1/5 Locals Spawn

Post by AgentSmith_#27 »

They're a local team so they're unlimited. I've tryed lots of things but nothing works, any ideas anyone? this local team is vital to my map, which is very near release.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 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: Atlanta, GA xfire=myers73 IngameName=mYers

Re: 1/5 Locals Spawn

Post by myers73 »

when you launch the map are yo u setting certain modes to have a different number than the default bots?
User avatar
AgentSmith_#27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 302
Joined: Thu Feb 11, 2010 3:10 pm
Projects :: No Projects I am ready to unveil
Games I'm Playing :: SWBF2-MW2-Madden 08
xbox live or psn: No gamertag set
Location: Zeroeditor
Contact:

Re: 1/5 Locals Spawn

Post by AgentSmith_#27 »

For now the map is planned on being Clone Wars Conquest only, and no, I don't believe so. I do change it from 16 to 32 once in a while if that's what you mean.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 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: Atlanta, GA xfire=myers73 IngameName=mYers

Re: 1/5 Locals Spawn

Post by myers73 »

yes it is, because if you lowered it to say 5, then only one local would no be surprising.
User avatar
AgentSmith_#27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 302
Joined: Thu Feb 11, 2010 3:10 pm
Projects :: No Projects I am ready to unveil
Games I'm Playing :: SWBF2-MW2-Madden 08
xbox live or psn: No gamertag set
Location: Zeroeditor
Contact:

Re: 1/5 Locals Spawn

Post by AgentSmith_#27 »

Well... This wouldn't be the problem since I've only moved the counter up, and not down (you'd think) And now that I think about it, this has happened before on the same map with another local team (which has been since removed, it didn't fit)
Post Reply