Adding Cloth (FAQ)

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

RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Adding Cloth (I did it)

Post by RepSharpshooter »

It works just fine, in most humanoids, the skeleton it the same, so it has the same effect. Just a thing, when I did it, just remember to add all the assets for the guy who has the cape, I even read the original unit in the LUA just to make sure.
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Re: Adding Cloth (I did it)

Post by Darth_Z13 »

Cape for Commander Keller? :)

Image
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Adding Cloth (I did it)

Post by Caleb1117 »

I have a question.
Is it remotely possable to do the same thing, but with the "belts" that are draped across the Republic sniper unit?
{501st}Commander_Appo
1st Lieutenant
1st Lieutenant
Posts: 441
Joined: Thu Jun 14, 2007 2:40 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: Earth
Contact:

Re: Adding Cloth (I did it)

Post by {501st}Commander_Appo »

Well,that cape do look very awsome

- :clone:
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Adding Cloth (I did it)

Post by RepSharpshooter »

@Caleb1117 Yes, it is. I'm working on it right now, however, that belt, unlike the cloth does not have its texture built into the MODL chunk. At the beginning there are MATD chunks, which are the materials. In normal MODL chunks, there is a number that tells which material to use.

You'd have to add another material, add the new MODL, (make sure to change the old mat number) and then, taking in account for the added material and modl, you'd need to re-encode the HEDR, MSH2, and MATL headers.

It's a little tricky, I'm working on it, its my next project. There are some vars in the MATL header I'm not sure of.

But overall, yes I think it is possible (along with anything else that has its own MODL, heads, some helmets, accesories, etc. The separate modl's can be viewed in 3DOC.)
Syth
General
General
Posts: 784
Joined: Thu Apr 13, 2006 8:46 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: happy fun island

Re: Adding Cloth (I did it)

Post by Syth »

:eek: YAH! so this will have the capes animated? Ill have to take a wack at this sometime...
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Adding Cloth (I did it)

Post by AceMastermind »

RepSharpshooter wrote:It works just fine, in most humanoids, the skeleton it the same, so it has the same effect.
Yes, i'm aware that almost all units/heroes/villains have the same skeletal hierarchy, they just use different baseposes, but only the units that originally have cloth attached use cloth collision primitives (c_somename) which are made children to their respective bones so as to keep the cloth from penetrating the unit mesh ingame.
Example: When a unit stops running the cloth continues to flow forward without penetrating the unit mesh, but instead wrapping around the unit mesh and then returning to it's "basepose".
The question remains, were you able to extract the cloth collision from the original caped unit's skeleton and re-insert them back into the new unit's skeleton that originally had no cloth collision at all?
lieutenantcoda

Re: Adding Cloth

Post by lieutenantcoda »

Teancum wrote::eek: Dude! Spill the beans. I gotta know so I can add that to the 327th in the SWBF pack.
WOW, ur going to do that!

@RepSharpshooter: Super Congrats! you have now opened the gate way to more units!
Last edited by lieutenantcoda on Wed Sep 12, 2007 8:03 am, edited 1 time in total.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Adding Cloth (I did it)

Post by Teancum »

Yeah, the collision files are primitives, but can be copied and pasted in the same way.
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Adding Cloth (I did it)

Post by RepSharpshooter »

The cape's modl chunk includes which collision primitives to use, the cloth does not go through the legs.
somen00b

Re: Adding Cloth (I did it)

Post by somen00b »

Will this work on other stuff besides cloth, (i.e. Jango, Boba, Jettrooper, or Dark trooper's jetpacks) or do you need more steps?

edit: oops, didn't notice all 3 pages...

edit2: I read the other pages, nevermind, it's been answered
Alpha-17
Master Sergeant
Master Sergeant
Posts: 165
Joined: Mon Jan 22, 2007 2:26 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Adding Cloth (I did it)

Post by Alpha-17 »

Is it possible to give the stormtrooper-han dooku's cape and anakins skirt ??
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Adding Cloth (I did it)

Post by Caleb1117 »

You could give him one, but I'm not sure if both are possable.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding Cloth (I did it)

Post by Maveritchell »

Alpha-17 wrote:Is it possible to give the stormtrooper-han dooku's cape and anakins skirt ??
But if you're trying to make Obi-Wan in clonetrooper armor (a la Muunilist) you might want to use Vader's cape.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Adding Cloth (I did it)

Post by Teancum »

Hmmm.... You know, theoretically you could also do this with jetpacks.... :yes:
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: Adding Cloth (I did it)

Post by Caleb1117 »

what about backpacks? like the rebel engineer?
Or would that not work because of it not having its own seperate tga?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding Cloth (I did it)

Post by Maveritchell »

Caleb1117 wrote:what about backpacks? like the rebel engineer?
Or would that not work because of it not having its own seperate tga?
Not every cloth piece has a separate .tga. The real question is whether it has a separate model chunk, not a separate .tga.

But no, I don't think we can do this with the backpack on the Rebel engineer; I'm pretty sure that's not a separate chunk.
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: Adding Cloth (I did it)

Post by RepSharpshooter »

Yep IN THEORY (I haven't tried it yet), any MODL chunk can be swapped between msh's. However, different modl's from different msh's use different matd's. If you were to want to use the original texture, you'd have to add the matd chunk under the matl chunk, resize all the affected headers (HEDR MSH2 MATL, which would be original + new MODL + new MATD), and then change the material index number that the modl chunk references. Its kind of a long and complicated process, so I have not attempted it yet.

A easy way to view what is under what modl chunks is 3DOC. If you click the button to the right of the save button, you'll get a scene info tab on the left, which you can see all the different MODL's.
falcon2005

Re: Adding Cloth (I did it)

Post by falcon2005 »

Hey thanks for the tutorial,

I followed your steps posted on the first page and it worked for adding the sniper cape to my trooper. :D

Then I tried adding the darth vader cape to another trooper and it didn't work, like nothing shows up after i munged it. I noticed there is no vader cape's tga in the assets...is that the reason it doesnt work? anyone know?
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Adding Cloth (I did it)

Post by MandeRek »

Men!!! This won't do! I tried this tut a million times, still i can't do it! Can someone mail me a ep3sniper .msh with a vader cape? if it is possible btw. Old cape has to be removed i think.... pleas! mail to [email protected] :duel:

EDIT
:eek: Wait a sec! Isn't it also possible to add Aayla's tenticle's to other characters? If i add this to a clone, it wont be animated, so it would be large hornes right? Men, if this works i can use this for my Paladin Clone! Real cool Rep
Post Reply