[Help] Hex2obj

Read or post any tutorial related to file format analysis for modding purposes.
ekmek
ultra-n00b
Posts: 8
Joined: Mon Nov 28, 2016 7:53 pm

Re: [Help] Hex2obj

Post by ekmek » Tue Dec 13, 2016 6:31 pm

I replicated what you did fine.

But when messing with other chunk files I was trying to figure our how you got:

"5CCE0: start of face indices (FI) list"


It's not clear in the tutorial to me. How did you get that number?

As I go through this I plan on helping out on your tutorial for noobs. written by a noob for noobs!

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2612
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 642 times
Been thanked: 1339 times

Re: [Help] Hex2obj

Post by shakotay2 » Tue Dec 13, 2016 11:56 pm

ekmek wrote:But when messing with other chunk files I was trying to figure our how you got:

"5CCE0: start of face indices (FI) list"
Assumed first face to consist of 0, 1, 2 (-> 1, 2, 3 in one based wavefront format)
so search for 000001000200 (little endian of 0000 0001 0002).

Doesn't work always because the first face might consist of other vertices, may 3,4,5 or something else.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

ekmek
ultra-n00b
Posts: 8
Joined: Mon Nov 28, 2016 7:53 pm

Re: [Help] Hex2obj

Post by ekmek » Wed Dec 14, 2016 12:07 am

shakotay2 wrote:
ekmek wrote:But when messing with other chunk files I was trying to figure our how you got:

"5CCE0: start of face indices (FI) list"
Assumed first face to consist of 0, 1, 2 (-> 1, 2, 3 in one based wavefront format)
so search for 000001000200 (little endian of 0000 0001 0002).

Doesn't work always because the first face might consist of other vertices, may 3,4,5 or something else.

ah, ok. I guess this where the hex editor comes in.


Do you recommend one?

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2612
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 642 times
Been thanked: 1339 times

Re: [Help] Hex2obj

Post by shakotay2 » Wed Dec 14, 2016 4:08 am

My most preferred one is WinHex. But any other should do which has a decent search feature.

For me a byte grouping of 8 plus 8 is totally important (which HxD v 1.7.70 for example lacks of).
WinHex.JPG
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

thunderkai
ultra-n00b
Posts: 3
Joined: Fri Dec 09, 2016 1:09 am

Re: [Help] Hex2obj

Post by thunderkai » Thu Dec 15, 2016 2:57 am

I can not get any mesh to display on the attached file
some screenshots: http://imgur.com/a/kdUBC
You do not have the required permissions to view the files attached to this post.

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 2612
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 642 times
Been thanked: 1339 times

Re: [Help] Hex2obj

Post by shakotay2 » Thu Dec 15, 2016 9:05 am

face indices start address is correct; but it's 5 submeshes, search for 000001000200 to find the different startaddresses
next find: 0xFF04 (delta 0x2FF4 related to 0xCF10-> delta/2= 6138 face indices; vertex count= 1180)

Why set start of vertices to 0x1387? That's not senseful.

calculation CF10 + 35934x2= 0x1E7CC shows where to search for vertices.
knyitm001.JPG
You do not have the required permissions to view the files attached to this post.
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

Post Reply