Changing Side Setups

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
Null_1138
Jedi
Jedi
Posts: 1192
Joined: Thu Oct 16, 2008 4:05 pm

Changing Side Setups

Post by Null_1138 »

I hate to see the death star engineer in my custom map, and I want to change it. I know you have to edit the lua, but what do you edit and how? I'd also like to know how to get the snow sides in as well.

My lua, for now, has been left alone, except for [ ReadDataFile("dc:SIDE\\imp.lvl", ] I changed the skin on the stormtrooper.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 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: The lost world of pickels
Contact:

Re: Changing Side Setups

Post by woner11 »

Read the jedi creation guide, it goes over all of that.
Null_1138
Jedi
Jedi
Posts: 1192
Joined: Thu Oct 16, 2008 4:05 pm

Re: Changing Side Setups

Post by Null_1138 »

I looked through it, but it doesn't say anything about changing the person the imp engineer is. I even looked in the mission lua guide, nothing. You mean this set of lines, right?

Code: Select all

ReadDataFile("sound\\tat.lvl;tat2gcw")
    ReadDataFile("SIDE\\all.lvl",
                    "all_inf_rifleman",
                    "all_inf_rocketeer",
                    "all_inf_sniper",
                    "all_inf_engineer",
                    "all_inf_officer",
                    "all_inf_wookiee",
                    "all_hero_hansolo_tat")
                    
    ReadDataFile("dc:SIDE\\imp.lvl",
                    "imp_inf_rifleman",
                    "imp_inf_rocketeer",
                    "imp_inf_engineer",
                    "imp_inf_sniper",
                    "imp_inf_officer",
                    "imp_inf_dark_trooper",
                    "imp_hero_bobafett",
                    "imp_fly_destroyer_dome" )

	ReadDataFile("SIDE\\tur.lvl",
						"tur_bldg_tat_barge",	
						"tur_bldg_laser")	
 
	SetupTeams{
		all = {
			team = ALL,
			units = 20,
			reinforcements = 150,
			soldier	= { "all_inf_rifleman",9, 25},
			assault	= { "all_inf_rocketeer",1,4},
			engineer = { "all_inf_engineer",1,4},
			sniper	= { "all_inf_sniper",1,4},
			officer	= { "all_inf_officer",1,4},
			special	= { "all_inf_wookiee",1,4},

		},
		imp = {
			team = IMP,
			units = 20,
			reinforcements = 150,
			soldier	= { "imp_inf_rifleman",9, 25},
			assault	= { "imp_inf_rocketeer",1,4},
			engineer = { "imp_inf_engineer",1,4},
			sniper	= { "imp_inf_sniper",1,4},
			officer	= { "imp_inf_officer",1,4},
			special	= { "imp_inf_dark_trooper",1,4},
		},
	}
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Changing Side Setups

Post by Sky_216 »

Do you want a custom unit (ie not a stock one) or just one of the other stock units instead. If it's the later then do this (for snow units):
Hidden/Spoiler:
ReadDataFile("sound\\tat.lvl;tat2gcw")
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman_snow",
"all_inf_rocketeer_snow",
"all_inf_sniper_snow",
"all_inf_engineer_snow",
"all_inf_officer_snow",
"all_inf_wookiee_snow",
"all_hero_hansolo_tat")

ReadDataFile("dc:SIDE\\imp.lvl",
"imp_inf_rifleman_snow",
"imp_inf_rocketeer_snow",
"imp_inf_engineer_snow",
"imp_inf_sniper_snow",
"imp_inf_officer_snow",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"imp_fly_destroyer_dome" )

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_tat_barge",
"tur_bldg_laser")

SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "all_inf_rifleman_snow",9, 25},
assault = { "all_inf_rocketeer_snow",1,4},
engineer = { "all_inf_engineer_snow",1,4},
sniper = { "all_inf_sniper_snow",1,4},
officer = { "all_inf_officer_snow",1,4},
special = { "all_inf_wookiee_snow",1,4},

},
imp = {
team = IMP,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman_snow",9, 25},
assault = { "imp_inf_rocketeer_snow",1,4},
engineer = { "imp_inf_engineer_snow",1,4},
sniper = { "imp_inf_sniper_snow",1,4},
officer = { "imp_inf_officer_snow",1,4},
special = { "imp_inf_dark_trooper",1,4},
I'm assuming your custom imp side has got all the stock imp stuff in it? imp_inf_engineer_snow is the pilot guy from hoth.
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Changing Side Setups

Post by MercuryNoodles »

You are just interested in changing appearance, right? You can change the geometry the engineer's odf calls for, if that's what you mean. Since you already know enough to make a side to change a skin, I'll leave you to it.
Null_1138
Jedi
Jedi
Posts: 1192
Joined: Thu Oct 16, 2008 4:05 pm

Re: Changing Side Setups

Post by Null_1138 »

Skyhammer: Other stock units, but at least I know now how to get snow sides, thanks.

Mercury Noodles: I actually want to change the engineer from a death star gunner to an at-st pilot, and the at-at commander (officer) to the actual officer unit, as seen in the 1.2 / 1.3 patch.

And I actually have no idea how to edit odf and geometry, but I'll read the docs. Thanks.

EDIT: I think I got the hang of it, but in the odf (which I've changed):

Code: Select all

[GameObjectClass]
ClassParent         = "imp_inf_default_engineer"


[Properties]

GeometryName        = "imp_inf_atstpilot"
GeometryLowRes      = "imp_inf_atstpilot_low1"
FirstPerson         = "IMP\imppilot;imp_1st_pilot"

Do I need to change "default" in the ClassParent?
Post Reply