Cloth Hex Editing Does Not Work

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

User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

I read RepSharpshooters adding capes hex editing tutorial, but every time I try to do it my map
crashes. Can somebody write an easier to understand tutorial with pictures fo a numbskull like me? It would be very helpful.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Cloth Hex Editing Does Not Work

Post by Deviss »

StarkillerMarek wrote:I read RepSharpshooters adding capes hex editing tutorial, but every time I try to do it my map
crashes. Can somebody write an easier to understand tutorial with pictures fo a numbskull like me? It would be very helpful.
yeah you say kama cloth?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Cloth Hex Editing Does Not Work

Post by Fiodis »

That sounds a lot like a request, for which GT has a special thread.

Deviss, kama isn't much different than most other cloths. I suppose that's what he means.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

I'm very sorry. I'm new here.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Cloth Hex Editing Does Not Work

Post by [RDH]Zerted »

If you want help fixing your problem, then you need to post what you think might be wrong (which steps confused you the most) and your debug log (see the FAQ topic on how to create the log).

If you don't want help fixing it and instead continue in the request thread, then this topic will be locked and/or deleted.

Everyone can see your join date in each post. There isn't a reason to post 'I'm new'.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

I know how to make a log, but the Bf2log did not show anything above a message severity of 2. I downloaded the Caped Trooper Assets and compared them to my hexedited versions of Ep3 trooper with sniper cape and they did not match. The steps that confused me the most were the ones about longints.
I'm not a hex editor, so would it be easier to download XSI and add cloth?


I'm not new at modding.
Last edited by StarkillerMarek on Thu Aug 13, 2009 2:36 pm, edited 1 time in total.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Cloth Hex Editing Does Not Work

Post by Deviss »

StarkillerMarek wrote:I can't find how to create a debug log in th FAQ, but I downloaded the Caped Trooper Assets and compared them to my hexedited versions of Ep3 trooper with sniper cape and they did not match. The steps that confused me the most were the ones about longints. I have the mod tools obviously, and ran the aplication Modtools.exe in the SWBF2 folder.
The Bf2log did not show anything above a message severity of 2. I'm not a hex editor, so would it be easier to download XSI and add cloth?


I'm not new at modding.
i understand you, i take very time for learn/understand the repsharpshooter tutorial XD, PM me i help you with hex editing things :wink:
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Cloth Hex Editing Does Not Work

Post by Fiodis »

For the record, it would not be worth it to download and pay for the full version of XSI just to add/remove cloth. Hexing is easier.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Cloth Hex Editing Does Not Work

Post by AceMastermind »

Fiodis wrote:For the record, it would not be worth it to download and pay for the full version of XSI just to add/remove cloth. Hexing is easier.
You can't purchase the XSI versions that work with the Pandemic Tools anyway since they're no longer available, you can however download one of the four old XSI Foundation trials that do work with the Pandemic Tools then make your cloth look like whatever you want instead of using the same tired shape. :wink:
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

I tried hex-editing something after DEVISS-REX helped me and it still crashed and the log still says it can not find the msh.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Cloth Hex Editing Does Not Work

Post by Maveritchell »

The most likely error giving you a crashing error is going to be an incorrect header length (meaning somewhere along the line you did your math wrong). You can check this before you munge by using the Unwrap 3D demo, which will tell you when you try to load the mesh if it has a non-matching header length.

Without seeing the mesh itself, we can't really nail down what your problem is; all we can say is try doing the tutorial more carefully and try again - it does work, but you have to follow the steps carefully.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

Maveritchell wrote:The most likely error giving you a crashing error is going to be an incorrect header length (meaning somewhere along the line you did your math wrong). You can check this before you munge by using the Unwrap 3D demo, which will tell you when you try to load the mesh if it has a non-matching header length.

Without seeing the mesh itself, we can't really nail down what your problem is; all we can say is try doing the tutorial more carefully and try again - it does work, but you have to follow the steps carefully.

Well, I'll try!

This is what my HEDR and MSH2 look like
Hidden/Spoiler:
HEDRïÌ MSH2Á
I was trying to add anakin's cloak to stormtrooper han solo.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Cloth Hex Editing Does Not Work

Post by Maveritchell »

StarkillerMarek wrote:This is what my HEDR and MSH2 look like
Hidden/Spoiler:
HEDRïÌ MSH2Á
I was trying to add anakin's cloak to stormtrooper han solo.
That doesn't tell us anything, really. If you want to upload your msh file somewhere and post the link I'll take a look at it.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

Where could I upload it?
Master_Ben
Lieutenant General
Lieutenant General
Posts: 675
Joined: Wed Nov 12, 2008 9:50 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: Watching your PC over your shoulder. No, the other sholder....

Re: Cloth Hex Editing Does Not Work

Post by Master_Ben »

Search File hosting. ( :google: )
:P

At GT we mostly use http://www.filefront.com/ (Click)
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

Here is the link:

http://www.filefront.com/14320887/all-i ... nsolo.msh/

I really appreciate you guys helping me with this :D .
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Cloth Hex Editing Does Not Work

Post by Maveritchell »

StarkillerMarek wrote:Here is the link:

http://www.filefront.com/14320887/all-i ... nsolo.msh/

I really appreciate you guys helping me with this :D .
For starters, I can tell you that your HEDR isn't the correct length, as mentioned above (it was 29 units too low, note that these will always be numbers divisible by four anyway). Probably as a result, your MSH2 was too small as well. Another problem you have (and would have noticed ingame) is that you didn't copy over the cloth collision chunks the cape references (c_ribcage, c_l_thigh, c_l_calf, c_r_thigh, c_r_calf). The tutorial doesn't mention it, but you'll always want to copy over cloth collision chunks because usually the model you're adding it to doesn't have any (and they will need to be there for the new model to work right). All of the necessary cloth collision chunks are referenced in the "COLL" section of the cloth's MODL chunk.

Because it is easier than trying to talk you through adding in all those cloth collisions, please look at this model for a reference. I went ahead and added in the cape and cloth collisions for you:
http://www.filefront.com/14325093/all_i ... n_cape.msh
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Cloth Hex Editing Does Not Work

Post by Fiodis »

As an addendum to Mav's post, if you don't copy over the collisions correctly, I understand that the cape flys over the character's head and get stuck there, as if it were being blown up.
User avatar
StarkillerMarek
Rebel Colonel
Rebel Colonel
Posts: 611
Joined: Wed Aug 12, 2009 4:42 pm
Location: I may be back.

Re: Cloth Hex Editing Does Not Work

Post by StarkillerMarek »

How was it 29 units too small :? ? Was it because it has to be divisible by four?

The CL12 number was the same as the number I encoded.

Thank you anyway.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Cloth Hex Editing Does Not Work

Post by Maveritchell »

StarkillerMarek wrote:How was it 29 units too small :? ? Was it because it has to be divisible by four?

The CL12 number was the same as the number I encoded.

Thank you anyway.
You did your math wrong, that's all it was. Like I said, download the one I posted and compare it. Make sure when you are following the tutorial that you do it carefully, and also like I said, use the Unwrap 3D demo to check your work (it will spit out an error if your HEDR or MSH2 size is wrong). Seeing that it wasn't divisible by four is just a really easy catch, because you know you've done something wrong if that pops up.
Post Reply