How do I add more units to space battle? [Solved]
Moderator: Moderators
-
1234567890
- Recruit Womprat Killer
- Posts: 12
- Joined: Tue Aug 27, 2013 10:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
How do I add more units to space battle? [Solved]
Hi, I am trying to make a new space map, but i want to add more units to the map. In the lua, it says pilot: cis_... and marine cis_... (you get the picture) I want to add other units like jedi. Do you have to load the units into the sides folder manually? I tried just putting things like jedi1: cis_hero_countdooku etc below the pilot and marine choices, and of course loading the from side\\cis and side\\rep. any suggestions?
Also, in ground maps, i cant get atats to spawn, other vehicles will but not atats any suggestions
in space maps, I cant seem to change the default sky, i tried getting the sky file i wanted and changing the name to abc.sky but it didnt work
one more thing, how do you get more units to spawn at once? I know in the lua you can change the number of reinforcements and how many ai there are, but it does not seem to change the actual number of units that are on a battle field at a given time.
thanks for reading this even if you have no answers
Also, in ground maps, i cant get atats to spawn, other vehicles will but not atats any suggestions
in space maps, I cant seem to change the default sky, i tried getting the sky file i wanted and changing the name to abc.sky but it didnt work
one more thing, how do you get more units to spawn at once? I know in the lua you can change the number of reinforcements and how many ai there are, but it does not seem to change the actual number of units that are on a battle field at a given time.
thanks for reading this even if you have no answers
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: help adding more units to space battle
Welcome to GT! A lot of your questions are actually answered in the FAQ topic at the top of the Modding section. In particular, here are the ones you'll want:
How to Add More than 6 selectable Units to a Map (FAQ)
Having more AI on the battlefield than just 32... (FAQ)
As for your other questions, I'd definitely recommend using the search function. It really helps with little issues like that! For command vehicles like atat's and atte's, you need to add a line to your lua.
where * is the number of atats you have.
Also, if you look 4 posts down from yours, you'll find a topic all about setting up sky files.
How to Add More than 6 selectable Units to a Map (FAQ)
Having more AI on the battlefield than just 32... (FAQ)
As for your other questions, I'd definitely recommend using the search function. It really helps with little issues like that! For command vehicles like atat's and atte's, you need to add a line to your lua.
Code: Select all
SetMemoryPoolSize("CommandWalker", *)Also, if you look 4 posts down from yours, you'll find a topic all about setting up sky files.
-
1234567890
- Recruit Womprat Killer
- Posts: 12
- Joined: Tue Aug 27, 2013 10:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: help adding more units to space battle
thank you, you helped in every question
EDIT
I got more units to spawn, but I could not get the extra ones to spawn. attached is my lua, any suggestions?
also, I still cant seem to get the sky to work, it is always tatooine sky. I searched for help with sky files, and I only get help with ground sky. Is it different for space sky?
also, now that more units have spawned (again this is a space map) very few of them seem to enter the vehicles, what do i do?
thanks
lua:
Double posting is against the RULES; please EDIT your post instead -Staff
EDIT
I got more units to spawn, but I could not get the extra ones to spawn. attached is my lua, any suggestions?
also, I still cant seem to get the sky to work, it is always tatooine sky. I searched for help with sky files, and I only get help with ground sky. Is it different for space sky?
also, now that more units have spawned (again this is a space map) very few of them seem to enter the vehicles, what do i do?
thanks
lua:
Code: Select all
myTeamConfig = {
rep = {
team = REP,
units = 100,
reinforcements = -1,
pilot = { "rep_inf_ep3_pilot",48},
marine = { "rep_inf_ep3_marine",48},
},
cis = {
team = CIS,
units = 100,
reinforcements = -1,
pilot = { "cis_inf_pilot",48},
marine = { "cis_inf_marine",48},
}
}
AddUnitClass(CIS, "cis_hero_countdooku",1,4)
AddUnitClass(REP, "rep_hero_anakin",1,4)
AddUnitClass(CIS, "cis_hero_grievous",1,4)
AddUnitClass(REP, "rep_hero_obiwan",1,4)- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: help adding more units to space battle
Can't really help you with space maps, sorry. I've never actually made one. In that thread I linked you to though, he managed to use a space sky in a ground map, so I can't see why it wouldn't work in reverse (unless the space skies need extra files or details in the mesh). Someone actually released a custom space skydome over in the asset release thread. You should give that a try...
As far as your units not spawning, did you add them to the list in your ReadDataFile section? I'm guessing you're trying to use them without first having told the game to load them. To fix it find
And under that line (somewhere before the brackets close) add a new line and add your hero units to the list (don't forget the comma afterwards!). So as an example, it might look something like this (except with different units called):
Just do the same for the republic heroes, except they should go in the rep.lvl section. 
As far as your units not spawning, did you add them to the list in your ReadDataFile section? I'm guessing you're trying to use them without first having told the game to load them. To fix it find
Code: Select all
ReadDataFile("SIDE\\cis.lvl",
Code: Select all
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_hero_grievous",
"cis_hero_countdooku")
-
1234567890
- Recruit Womprat Killer
- Posts: 12
- Joined: Tue Aug 27, 2013 10:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: help adding more units to space battle
thanks so much for your help so far, but I still am unable to get the extra units to spawn, i loaded them like you said, I know its possible since other maps ive played have it, but I cant seem to get it. Any other suggestions? thanks again!
o and i got the sky working!
o and i got the sky working!
- lucasfart
- Sith

- Posts: 1440
- Joined: Tue Feb 24, 2009 5:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Australia
Re: help adding more units to space battle
Good to hear.
Post your lua, and we'll see if we can spot the problem. Also, have there been any error messages that pop up when you munge the lua? If you made a grammar mistake, you can usually tell from the munge...
-
1234567890
- Recruit Womprat Killer
- Posts: 12
- Joined: Tue Aug 27, 2013 10:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: help adding more units to space battle
here is most of my lua (excluding sound and stuff)
you might see a few repeats because i tried a couple different stuff
you might see a few repeats because i tried a couple different stuff
Hidden/Spoiler:
-
ARCTroopaNate
- Jedi

- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: help adding more units to space battle
Hidden/Spoiler:
Battle of Coruscant?
-
1234567890
- Recruit Womprat Killer
- Posts: 12
- Joined: Tue Aug 27, 2013 10:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: help adding more units to space battle
yes it is the battle of coruscant,
Yesssss, they spawn!! thanks!
I only have two more problems. I tried searching for them and found nothing.
First, I have a lot of units spawning, most of them just stand there and they dont enter the ships,
how can i make more of them enter ships (there are plenty of ships)
Second, The jedis spawn, but their lightsabers do no damage. (unless you do saber throw) other than force powers, there is no lightsaber damage.
Yesssss, they spawn!! thanks!
I only have two more problems. I tried searching for them and found nothing.
First, I have a lot of units spawning, most of them just stand there and they dont enter the ships,
how can i make more of them enter ships (there are plenty of ships)
Second, The jedis spawn, but their lightsabers do no damage. (unless you do saber throw) other than force powers, there is no lightsaber damage.
-
ARCTroopaNate
- Jedi

- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: help adding more units to space battle
You might have to do something with the combos for the jedi, I've had similar problems with jedi in space battles.
Try putting that before
ReadDataFile("ingame.lvl")
Hidden/Spoiler:
ReadDataFile("ingame.lvl")
-
1234567890
- Recruit Womprat Killer
- Posts: 12
- Joined: Tue Aug 27, 2013 10:32 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: help adding more units to space battle
it worked, thanks
