Same team on both sides, but texture 1 team differently?

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

Private Recruit
User avatar
Posts: 21
Joined: Fri Mar 16, 2018 6:27 pm
Projects :: TF2 mod for BF2
Games I'm Playing :: BF2+a little of BF1

Same team on both sides, but texture 1 team differently?

Postby LordVGames » Sat May 18, 2019 12:51 pm

For my mod, the sides are the same exact team. In fact, both sides use the 1 custom team files I've made. A problem with this, though, is that the unit textures are the same for both. So, my idea is to make alternate textures (the same but re-colored) and apply them to one team's units as override textures. I know override textures are used for different unit textures on certain maps, but is this possible to accomplish? Or will I have to make a copy of the team's files entirely, and go from there?

Jedi
User avatar
Posts: 1189
Joined: Wed Aug 21, 2013 3:55 pm
Location: San Diego
Projects :: SWBF2 PSP+PS2 Conversion

Re: Same team on both sides, but texture 1 team differently?

Postby AnthonyBF2 » Mon May 20, 2019 2:58 pm

You'll have to create two sets of SIDE files and then edit the character MSH files in one of the sides to look for different texture names.

Example:
Edit rep_inf_ep3trooper.msh and change all of the texture file references from rep_inf_ep3trooper.tga to something else, like rep_inf_ep9trooper.tga
Then you'd take a copy of rep_inf_ep3trooper.tga and rename it to rep_inf_ep9trooper.tga

From here the clone trooper on each side would be using a different texture and you're free to edit each texture as you want.

If you want to go a step farther to ensure better functionality, edit rep_inf_ep3_rifleman.odf and change the MSH file references from rep_inf_ep3trooper.msh
You'd then take a copy of rep_inf_ep3trooper.msh and rename it to something else like rep_inf_ep9trooper.msh and make sure the ODF is referencing it.

At this point the normal side one would look like rep_inf_ep3_rifleman.odf > rep_inf_ep3trooper.msh > rep_inf_ep3trooper.tga
and the modded side would look like rep_inf_ep3_rifleman.odf > rep_inf_ep9trooper.msh > rep_inf_ep9trooper.tga

Private Recruit
User avatar
Posts: 21
Joined: Fri Mar 16, 2018 6:27 pm
Projects :: TF2 mod for BF2
Games I'm Playing :: BF2+a little of BF1

Re: Same team on both sides, but texture 1 team differently?

Postby LordVGames » Fri May 24, 2019 10:46 pm

AnthonyBF2 wrote:You'll have to create two sets of SIDE files and then edit the character MSH files in one of the sides to look for different texture names.

Example:
Edit rep_inf_ep3trooper.msh and change all of the texture file references from rep_inf_ep3trooper.tga to something else, like rep_inf_ep9trooper.tga
Then you'd take a copy of rep_inf_ep3trooper.tga and rename it to rep_inf_ep9trooper.tga

From here the clone trooper on each side would be using a different texture and you're free to edit each texture as you want.

If you want to go a step farther to ensure better functionality, edit rep_inf_ep3_rifleman.odf and change the MSH file references from rep_inf_ep3trooper.msh
You'd then take a copy of rep_inf_ep3trooper.msh and rename it to something else like rep_inf_ep9trooper.msh and make sure the ODF is referencing it.

At this point the normal side one would look like rep_inf_ep3_rifleman.odf > rep_inf_ep3trooper.msh > rep_inf_ep3trooper.tga
and the modded side would look like rep_inf_ep3_rifleman.odf > rep_inf_ep9trooper.msh > rep_inf_ep9trooper.tga


I was hoping there was an easier way, but oh well :)
I'll do something similar: copying/renaming each unit, making their alternate texture, and editing their ODFs to change their normal .msh texture to the new one, then adding them onto one team. I don't believe there's a limit to the amount of units that can be made and loaded into a mission, so...
Also, if you were to make a copy of the SIDE files, wouldn't you have to change the 3 letter name?

Jedi
User avatar
Posts: 1189
Joined: Wed Aug 21, 2013 3:55 pm
Location: San Diego
Projects :: SWBF2 PSP+PS2 Conversion

Re: Same team on both sides, but texture 1 team differently?

Postby AnthonyBF2 » Sat May 25, 2019 10:08 am

You either have two SIDE files with different names or you can load differently titled classes (ODFS/REQS) from one SIDE file.
Also while it is true that you can load lots of classes, the display limit in the spawn menu is 10 per side, or 9 per side with a hero.

Recruit Womprat Killer
Posts: 11
Joined: Thu Jan 24, 2019 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I havenae listed any
xbox live or psn: No gamertag set

Re: Same team on both sides, but texture 1 team differently?

Postby Sporadia » Tue Jun 25, 2019 4:52 pm

Isn't the easiest thing to do just to make a new odf for each new textured character? The only thing that the new odf would need to contain is an override texture or a new character geometry if the msh doesn't have override texture set up (the latter would require a new altered msh for each texture). And then make the new odf use the old odf as a class parent. Making a new SIDE folder for reskins of the same units is overkill.

Private Recruit
User avatar
Posts: 21
Joined: Fri Mar 16, 2018 6:27 pm
Projects :: TF2 mod for BF2
Games I'm Playing :: BF2+a little of BF1

Re: Same team on both sides, but texture 1 team differently?

Postby LordVGames » Tue Jun 25, 2019 10:15 pm

Sporadia wrote:Isn't the easiest thing to do just to make a new odf for each new textured character? The only thing that the new odf would need to contain is an override texture or a new character geometry if the msh doesn't have override texture set up (the latter would require a new altered msh for each texture). And then make the new odf use the old odf as a class parent. Making a new SIDE folder for reskins of the same units is overkill.

Exactly. That's how I did it.

Return to SWBF2 Modding

Who is online

Users browsing this forum: No registered users and 2 guests