Change Units Spawned Limit?

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
SG-17
Second Lance Corporal
Second Lance Corporal
Posts: 106
Joined: Wed Mar 26, 2008 7:36 pm
Contact:

Change Units Spawned Limit?

Post by SG-17 »

Is there a way to change how many of a unit can be spawned in at once? Like how the max for special classes is 4. Is there any way for me to increase that?
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: Change Units Spawned Limit?

Post by computergeek »

In your mode's lua, look at the setup teams, the second number is the max
SG-17
Second Lance Corporal
Second Lance Corporal
Posts: 106
Joined: Wed Mar 26, 2008 7:36 pm
Contact:

Re: Change Units Spawned Limit?

Post by SG-17 »

Well I want to make it so it is more than 4 in the regular game, not a mod map.
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: Change Units Spawned Limit?

Post by [RDH]Zerted »

Without munging a new mission.lvl or hex editing, the answer is no. With a new mission.lvl or hex editing, then sure you can change almost anything (anything thats not done in ZE). However, some of the special units require extra memory pool stuff. If you increase the unit counts above the memory limits, the map should crash.
SG-17
Second Lance Corporal
Second Lance Corporal
Posts: 106
Joined: Wed Mar 26, 2008 7:36 pm
Contact:

Re: Change Units Spawned Limit?

Post by SG-17 »

Ok I can hex edit, I just need to know what to look for.
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: Change Units Spawned Limit?

Post by [RDH]Zerted »

Download and install the mod tools. Create a blank map, then follow computergeek's advice.

Tip: Munge a blank map, then change the value in the source and munge again. Hex edit the mission.lvls and see where/what changed. This should help show you where the shipped mission.lvl needs changed.
Post Reply