help?
switching troopers?
Moderator: Moderators
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
switching troopers?
erm, how do i switch ALL units to CIS units? I've tried doing that in ABC_cmn.lua but the game crashes when i play.
help?
help?
-
Commander_Fett
- High General

- Posts: 847
- Joined: Fri Oct 17, 2008 9:59 pm
- Projects :: No Mod project currently.
Re: switching troopers?
So is this for a space map?
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
Re: switching troopers?
yesCommander_Fett wrote:So is this for a space map?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: switching troopers?
What did you do exactly? Post any error logs you may have.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: switching troopers?
1) Edit the ReadDataFile section of your lua to only read in the units you plan to use.
2) Change the SetupTeams section of your lua to only use the units you want.
2) Change the SetupTeams section of your lua to only use the units you want.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: switching troopers?
If you do what Zerted said, it will work but I think it's worth mentioning that the sounds would be off. You'd have to take some sound lines from a CW script for the CIS side and paste them over your ALL sound lines.
I think.
I think.
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
Re: switching troopers?
sorry, where are those scripts located? I can't find them[RDH]Zerted wrote:1) Edit the ReadDataFile section of your lua to only read in the units you plan to use.
2) Change the SetupTeams section of your lua to only use the units you want.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: switching troopers?
data***/Common/Scripts/***, then pick ***c_con.LUA or ***g_con.LUA. Con stands for conquest, c and g for the two eras, pick which one you want to modify.
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
Re: switching troopers?
ok here's what I did...
is this right?
Hidden/Spoiler:
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: switching troopers?
Possibly; there are elements that I don't recognize. What is this "MyTeamConfig = {" code for? Otherwise it looks ok, except for the sounds. Does it work in-game? The MyTeamConfig thing might throw it off.
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
Re: switching troopers?
the myteamconfig was there from the startFiodis wrote:Possibly; there are elements that I don't recognize. What is this "MyTeamConfig = {" code for? Otherwise it looks ok, except for the sounds. Does it work in-game? The MyTeamConfig thing might throw it off.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: switching troopers?
Seriously? I have SetupTeams { instead.
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
Re: switching troopers?
no it only says setupteams in a ground map. Space maps say myteamconfigFiodis wrote:Seriously? I have SetupTeams { instead.
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
Re: switching troopers?
The game is trying to find game files "cis_inf_pilot" & "cis_inf_marine". It is referenced in the .lua file but not loaded in the script.
Edit -- As far as I know, "cis_fly_droidfighter_sc" does not exist in all.lvl either.
Edit -- As far as I know, "cis_fly_droidfighter_sc" does not exist in all.lvl either.
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
Re: switching troopers?
okay should it look like this then?
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: switching troopers?
"cis_inf_pilot" and "cis_inf_marine" don't exist in all.lvl but rather cis.lvl.
- JawaTrooper
- Private First Class
- Posts: 79
- Joined: Mon Jan 26, 2009 8:35 pm
Re: switching troopers?
so your saying i should just switch the all.lvl with cis.lvl?AQT wrote:"cis_inf_pilot" and "cis_inf_marine" don't exist in all.lvl but rather cis.lvl.
-
Commander_Fett
- High General

- Posts: 847
- Joined: Fri Oct 17, 2008 9:59 pm
- Projects :: No Mod project currently.
Re: switching troopers?
@-_-Yes, cis_fly_droidfighter_sc is the correct name.
You'd set up the LUA like this:
Also, you'd have to edit the vehicle spawns in the map to read cis_fly_droidfighter_sc instead of the xwing/whatever.
You'd set up the LUA like this:
Hidden/Spoiler:
Hidden/Spoiler:
