Using the same skin on different units

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
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Using the same skin on different units

Post by EGG_GUTS »

How would you for example a tatooine or mygeeto map all the skins have to
be Marines and Sandtroopers. So how would you do it?

thanks :)
SymbolS

RE: Using th same skin on diffrent units

Post by SymbolS »

It would be easiest to just make another of what u want, and then give them that gun
Last edited by SymbolS on Fri Jan 19, 2007 5:53 pm, edited 1 time in total.
User avatar
Gogie
Modeling Master
Modeling Master
Posts: 708
Joined: Fri Mar 31, 2006 11:02 pm
Projects :: Tinkering away with LEGO
Location: alberta, canada

Post by Gogie »

you just place the units inside the map, creat diffrent odf and .req files for them, and in the odf put the Class parent as the class you want it to be.

Example:

If I wanted to have and a jungle rifleman skin as a sniper I would go into the odf. you would edit the ClassParent to be a sniper, then add the unit's "all_inf_rifleman_jungle" file into the .lua file.
[GameObjectClass]
ClassParent = "all_inf_default_sniper"

[Properties]
GeometryName = "all_inf_soldier"
GeometryLowRes = "all_inf_soldier_low1"
OverrideTexture = "all_inf_soldierjungle"
FirstPerson = "all\alltroop;all_1st_trooper"
ReadDataFile("dc:SIDE\\xxx.lvl",
"all_inf_rifleman_jungle",
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_rifleman_jungle",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Post by Karnage »

You could do any of the above, or you could copy the units msh file, rename it, then hex-edit the units .tga file name in the msh.

When you hex-edit the units .tga name, the new name of the .tga has to have the same amount of characters as the default .tga file. (I.E.: all_inf_rifleman.tga - bob_inf_rifleman.tga - they each have 16 characters).

Doing this, you would have to copy the unit's .odf, .msh, low1.msh, and texture files; .tga and rename them.
  • bob_inf_rifleman.odf
  • bob_inf_rifleman.msh
  • bob_inf_rifleman_low1.msh
  • bob_inf_rifleman.tga
You would also have to list your new renamed units in your map's .lua file.

I believe i've covered everything.
User avatar
phazon_elite
Rebel Colonel
Rebel Colonel
Posts: 597
Joined: Tue Jan 16, 2007 9:10 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: I'm sorry Link, I can't give the location. Come back when you're a little...mmmh...RICHER!
Contact:

Post by phazon_elite »

Funny how this works for me on units, but not on weapons.
I think you missed one little thing: if the new name for the texture is shorter, then fill the gap with spaces.

- EP-000782
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Post by Maveritchell »

@ Karnage & phazon:

Don't confuse the man. He didn't ask how to have a map with two of the same model, each with a different texture. He asked how to have multiple units using the same model and texture. For example, having a Galactic Marine (rep_inf_ep3_commander) as both his rifleman and his rocketeer.

And all you have to do to do that is to edit the .odfs of your rocketeer to call for "rep_inf_clonecommander" instead of "rep_inf_ep3heavytrooper" wherever it mentions geometry. Much more simple than hex-editing to use different skins on the same model.
EGG_GUTS
Master Bounty Hunter
Master Bounty Hunter
Posts: 1626
Joined: Thu Dec 07, 2006 7:38 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: CANADA!

Post by EGG_GUTS »

Yes thank you marvel I'lll try that and post back
Dragon93
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 315
Joined: Tue Mar 14, 2006 2:55 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by Dragon93 »

ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
Look Here.
ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
- Dragon93
User avatar
Karnage
Commander Randomtoast
Posts: 947
Joined: Sun Oct 23, 2005 9:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: Overwatch
xbox live or psn: No gamertag set
Location: Wherever there is shenanigannery.

Post by Karnage »

EGG_GUTS wrote:Yes thank you marvel I'lll try that and post back
Make that Maver and you'll be on the right track. :P
Post Reply