Page 1 of 1

Changing Side Setups

Posted: Sat Oct 25, 2008 3:51 pm
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.

Re: Changing Side Setups

Posted: Sat Oct 25, 2008 9:29 pm
by woner11
Read the jedi creation guide, it goes over all of that.

Re: Changing Side Setups

Posted: Sun Oct 26, 2008 4:24 pm
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},
		},
	}

Re: Changing Side Setups

Posted: Sun Oct 26, 2008 11:40 pm
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.

Re: Changing Side Setups

Posted: Mon Oct 27, 2008 8:39 am
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.

Re: Changing Side Setups

Posted: Mon Oct 27, 2008 3:16 pm
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?