Page 1 of 1

How can I give the Clone-Pistol to Empire Troops? [Solved]

Posted: Tue Dec 15, 2009 10:51 am
by ShadowClaw
Hello there. ^^

I'm pretty new in modding and so on and I have got a simple (?) problem with my imperial side.

Well the thing is that i wanted to replace the imperial pistol with the republic one, cause I think it looks quiet cooler to my custom skins. But whatever I try, the weapon won't change. :(

These are the two things I already tried:

1. Replace the "odf", "msh" and of course the ".tga" files of the imperial pistol with the one of the clone pistol by changing the name of the files from (for exampel) "rep_weap_inf_pistol" to "imp_weap_inf_pistol" and replace with the *really* "imp_weap_inf_pistol" file and the others.

2. Copy all the Republic Pistol files to the "msh" and "odf" files from the imperial side (as shown in another topic) and replace the weapon via the "odf" file of the "imp_inf_default_rifleman":

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0


I also tried to get it working by putting the name of the weapon(s) in the ABCg_con.lua file:

ReadDataFile("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("dc:SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_weap_inf_pistol",
"imp_weap_inf_pistol_ord",
"imp_weap_award_pistol",
"imp_weap_award_pistol_ord")


Well, do you know how to change the imperial Pistol to the ones of the republic? (That would also help me to learn how to change all the other weapons cause i don't get any of the replaced / addet weapons working >_<')

I would be glad. ^^

And sorry that I'm stealing your time by posting a problem like this >_<

Re: How can I get the Clone-Pistol on the Empire Troops?

Posted: Tue Dec 15, 2009 11:40 am
by Deviss
well copy ths next files in your side msh folder:
rep_1st_weap_inf_pistol.msh
rep_1st_weap_inf_pistol.tga
rep_1st_weap_inf_pistol.msh.option
rep_1st_weap_inf_pistol.tga.option
rep_1st_weap_inf_pistol_bump.tga
rep_1st_weap_inf_pistol_bump.tga.option
rep_weap_inf_pistol.msh
rep_weap_inf_pistol.msh.option

and this is your imperial pistol odf award and inf:
AWARD
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_award_pistol"
GeometryName = "imp_weap_inf_pistol.msh"

[Properties]

GeometryName = "imp_weap_inf_pistol"
HighResGeometry = "imp_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_award_pistol_ord"


//******************************************************
//*************** SOUND ****************
//******************************************************

FireSound = "imp_weap_inf_pistol_fire"
FireEmptySound = "com_weap_inf_weapon_empty"
FireLoopSound = ""
ReloadSound = ""
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChargeSound = ""
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
INF
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "imp_weap_inf_pistol.msh"

[Properties]

GeometryName = "imp_weap_inf_pistol"
HighResGeometry = "imp_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_inf_pistol_ord"


//******************************************************
//*************** SOUND ****************
//******************************************************

FireSound = "imp_weap_inf_pistol_fire"
FireEmptySound = "com_weap_inf_weapon_empty"
FireLoopSound = ""
ReloadSound = ""
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChargeSound = ""
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
and change them to

AWARD
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_award_pistol"
GeometryName = "rep_weap_inf_pistol.msh"

[Properties]

GeometryName = "rep_weap_inf_pistol"
HighResGeometry = "rep_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_award_pistol_ord"


//******************************************************
//*************** SOUND ****************
//******************************************************

FireSound = "imp_weap_inf_pistol_fire"
FireEmptySound = "com_weap_inf_weapon_empty"
FireLoopSound = ""
ReloadSound = ""
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChargeSound = ""
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
INF
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "rep_weap_inf_pistol.msh"

[Properties]

GeometryName = "rep_weap_inf_pistol"
HighResGeometry = "rep_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_inf_pistol_ord"


//******************************************************
//*************** SOUND ****************
//******************************************************

FireSound = "imp_weap_inf_pistol_fire"
FireEmptySound = "com_weap_inf_weapon_empty"
FireLoopSound = ""
ReloadSound = ""
OverheatSound = "com_weap_energy_depleted"
OverheatSoundPitch = "0.5"
OverheatStopSound = "com_weap_energy_refilled"
ChargeSound = ""
ChangeModeSound = "com_weap_inf_equip_sm"
WeaponChangeSound = "com_weap_inf_equip_sm"
JumpSound = "com_weap_inf_pistol_mvt_jump"
LandSound = "com_weap_inf_pistol_mvt_land"
RollSound = "com_weap_inf_pistol_mvt_roll"
//ProneSound = "com_weap_inf_pistol_mvt_lie"
SquatSound = "com_weap_inf_pistol_mvt_squat"
//StandSound = "com_weap_inf_pistol_mvt_getup"
so you don't need modify units odfs :wink:

Re: How can I get the Clone-Pistol on the Empire Troops?

Posted: Tue Dec 15, 2009 11:52 am
by (Anonymous)
ShadowClaw wrote:ReadDataFile("dc:SIDE\\imp.lvl",
""imp_inf_rifleman",
imp_weap_inf_pistol",
"imp_weap_inf_pistol_ord",
"imp_weap_award_pistol",
"imp_weap_award_pistol_ord")
AAA = Unessacary
ShadowClaw wrote: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" )
dc: should be there

1. Copy the rep pistol msh and tga into the imperial side folder, msh dierectory
2. In the imperial pistol odf (imp_weap_inf_pistol) change it so it looks like this:
Before:
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "rep_weap_inf_pistol.msh"

[Properties]

GeometryName = "rep_weap_inf_pistol"
HighResGeometry = "imp_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_inf_pistol_ord"
After:
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "imp_weap_inf_pistol.msh"

[Properties]

GeometryName = "imp_weap_inf_pistol"
HighResGeometry = "imp_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_inf_pistol_ord"
GREEN = What ever the rep pistol's msh name is


If that doesn't work look at the Everything You Need to Know Topic 2.0, you'll get the idea after reading a few tutorials

EDIT: Oh, I posted right after you I guess :lol: well this way is less "advanced" lets say, you wouldn't change the first person veiw of the pistol but from third person it would be the rep pistol

Enjoy your stay!

Re: How can I get the Clone-Pistol on the Empire Troops?

Posted: Tue Dec 15, 2009 12:00 pm
by Deviss
(Anonymous) wrote:
ShadowClaw wrote:ReadDataFile("dc:SIDE\\imp.lvl",
""imp_inf_rifleman",
imp_weap_inf_pistol",
"imp_weap_inf_pistol_ord",
"imp_weap_award_pistol",
"imp_weap_award_pistol_ord")
AAA = Unessacary
ShadowClaw wrote: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" )
dc: should be there

1. Copy the rep pistol msh and tga into the imperial side folder, msh dierectory
2. In the imperial pistol odf (imp_weap_inf_pistol) change it so it looks like this:
Before:
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "rep_weap_inf_pistol.msh"

[Properties]

GeometryName = "rep_weap_inf_pistol"
HighResGeometry = "imp_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_inf_pistol_ord"
After:
Hidden/Spoiler:
[WeaponClass]
ClassParent = "com_weap_inf_pistol"
GeometryName = "imp_weap_inf_pistol.msh"

[Properties]

GeometryName = "imp_weap_inf_pistol"
HighResGeometry = "imp_1st_weap_inf_pistol"
OrdnanceName = "imp_weap_inf_pistol_ord"
GREEN = What ever the rep pistol's msh name is


If that doesn't work look at the Everything You Need to Know Topic 2.0, you'll get the idea after reading a few tutorials

EDIT: Oh, I posted right after you I guess :lol: well this way is less "advanced" lets say, you wouldn't change the first person veiw of the pistol but from third person it would be the rep pistol

Enjoy your stay!
lol i said better explained XD

Re: How can I get the Clone-Pistol on the Empire Troops?

Posted: Tue Dec 15, 2009 12:31 pm
by CodaRez
Whats the matter?

If he wants to just have the unit get the gun, just list under the UNIT'S .odf like so:
WEAPONSECTION = 1
WeaponName = "rep_weap_inf_pistol"
WeaponAmmo = 0
Such walls of text....oh dear :faint:

I believe *supposedly* that calling stock weapons need not require getting the files into ur custom sides folders. Just do above.

(unless, you don't want award weapons, in which case the walls of text become the degree of modding rights, if u get my gist :quotes: )

In fact, changing weapons of units can only be done with a custom side. And what (Anonymous) meant by saying:
If that doesn't work look at the Everything You Need to Know Topic 2.0, you'll get the idea after reading a few tutorials
For this problem, he meant specifically THIS topic:

http://www.gametoast.com/forums/viewtop ... 27&t=12729

Read it, custom side making is the first step to changing ur guy's weapon. And if you think you've read it, read it again! Cus by the way ur jumping around messing with the LUA, I don't think you read it thru and thru yet.

Re: How can I get the Clone-Pistol on the Empire Troops?

Posted: Tue Dec 15, 2009 1:26 pm
by ShadowClaw
GREAT! It's working! :thumbs:

Thank you, guys. ^^

Oh, and thank you for showing me the "Custom Side: How To" and the "Everything You Need to Know Topic 2.0".

Now I should be able to bring my Plans to Maps. :D

Thanks!