How many units...?

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
Guest

How many units...?

Post by Guest »

How to add more than 8 unit slots to the map. I've added 9th slot but map crashes. I know that on Mos Eisley Hero Assault there's 9 slots, but LUA has different SetupTeams structure. Any help?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Post by MercuryNoodles »

There are only 8 slots programmed into the game. These are pilot, marine, soldier, assault, sniper, engineer, officer, and special. However, you can use this:

AddUnitClass(3letterside, "unit_odf",min#,max#)

This can be used multiple times, but I must warn that space on the screen is limited, even if the actual line usage may not be. The more classes you use, the smaller the classes' description box becomes, and I think the bottom class(es) might get kicked off the screen if you add too many.
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:

Post by [RDH]Zerted »

If you want to add your extra units like all the other units, just edit your data_XXX\Common\scripts\SetupTeams.lua and add a few more entries to typeList. There is a limit to the amount of units which can be displayed on the selection screen. I tried to change it, but the .exe controls too much in that section. Too many units will also crash the game, but I can never remember what those max values are.
Guest

Post by Guest »

[RDH]Zerted

so, I added +2 new units (total 8). Today I added 9th unit...map crahsed... :O
I hate this limit! :x

problem solved. thx for help :)
Post Reply