(Need Help) TF2ROTF: Unpack .dat file or convert to .str

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Metalado
ultra-n00b
Posts: 7
Joined: Thu Sep 27, 2018 11:36 pm
Has thanked: 1 time

(Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Metalado » Fri Sep 28, 2018 12:16 am

Hello Guys, I was visited by the thought of trying to adapt the dlc of console version game to the PC version of the game Transformers 2 revenge of the fallen. I took out all the files from the dlc that were packed in .pkg, but I was faced with one problem, all the files were in the .edat format which was suitable only for the console version of the game, as I understood it. I started looking for methods of decrypting this format, and converting it back to the familiar .str. For a very long time I wandered around the Internet in search of an answer, with help the program edat rebuilder I was convert .edat file into a .dat file format. On this I stopped, I was not able to convert this format into .str. However, I noticed that the file has magic strm (the code header) which is the reverse of the header of the .str - mrts format code. In general, I will be very grateful to people, or a person who will help me understand this, and I would not mind paying for assistance, thanks.

Metalado
ultra-n00b
Posts: 7
Joined: Thu Sep 27, 2018 11:36 pm
Has thanked: 1 time

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Metalado » Fri Sep 28, 2018 12:23 am


User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 409
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Bigchillghost » Fri Sep 28, 2018 12:56 am

The console systems(PS3/Xbox360) use big-endian as byte order, while PC is in little-endian. But I doubt it'll be as simply as a matter of endianness. Most likely they'll modify the format slightly for different platforms.
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

Metalado
ultra-n00b
Posts: 7
Joined: Thu Sep 27, 2018 11:36 pm
Has thanked: 1 time

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Metalado » Fri Sep 28, 2018 3:17 am

Bigchillghost wrote:The console systems(PS3/Xbox360) use big-endian as byte order, while PC is in little-endian. But I doubt it'll be as simply as a matter of endianness. Most likely they'll modify the format slightly for different platforms.
Very interesting! Thanks for the answer, but I do not understand much about it, unlike you)

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 409
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Bigchillghost » Fri Sep 28, 2018 4:44 am

You'll need to compare the differences between files of the same character from both PC & the console version so the files you uploaded doesn't help much actually. But to be honest, it's no picnic especially if there's no specification about the format.
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

Metalado
ultra-n00b
Posts: 7
Joined: Thu Sep 27, 2018 11:36 pm
Has thanked: 1 time

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Metalado » Fri Sep 28, 2018 5:58 am

Bigchillghost wrote:You'll need to compare the differences between files of the same character from both PC & the console version so the files you uploaded doesn't help much actually. But to be honest, it's no picnic especially if there's no specification about the format.
Okay, but I thought that these similarities of the strm mrts code meant something, um, for me it's complicated, I'm far from the code, I can hardly understand it myself, my direction is 3D modeling.

Metalado
ultra-n00b
Posts: 7
Joined: Thu Sep 27, 2018 11:36 pm
Has thanked: 1 time

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Metalado » Sat Sep 29, 2018 1:47 am

Bigchillghost wrote:You'll need to compare the differences between files of the same character from both PC & the console version so the files you uploaded doesn't help much actually. But to be honest, it's no picnic especially if there's no specification about the format.
Can I ask you for help? :(

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 409
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Bigchillghost » Sat Sep 29, 2018 3:11 am

Metalado wrote:Can I ask you for help? :(
I remember I tried to extract the character models from the PC version around two years ago, but I gave up eventually due to its messy format, and clearly you can get most of them from TF3. But anyway you'll have to upload the required samples first. I can have a check and see if there're merely changes about the endianness.
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

Metalado
ultra-n00b
Posts: 7
Joined: Thu Sep 27, 2018 11:36 pm
Has thanked: 1 time

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Metalado » Sat Sep 29, 2018 10:37 pm

Bigchillghost wrote:
Metalado wrote:Can I ask you for help? :(
I remember I tried to extract the character models from the PC version around two years ago, but I gave up eventually due to its messy format, and clearly you can get most of them from TF3. But anyway you'll have to upload the required samples first. I can have a check and see if there're merely changes about the endianness.
Good, then I attach the character file of the PC version of the .str format and from the dlc for the sony format .edat: https://drive.google.com/open?id=1X3Q7j ... aejNA4_IOn

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 409
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Bigchillghost » Sun Sep 30, 2018 3:16 am

Metalado wrote:Good, then I attach the character file of the PC version of the .str format and from the dlc for the sony format .edat
Well, I thought you knew what I was taking about. The files would be comparable only if they're of the SAME character, otherwise it's rather difficult without known the full structure of the file. And I need the decrypted str file of course, not the edat one.
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

User avatar
Bigchillghost
ultra-veteran
ultra-veteran
Posts: 409
Joined: Tue Jul 05, 2016 9:37 am
Has thanked: 18 times
Been thanked: 247 times

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Bigchillghost » Sun Sep 30, 2018 5:38 am

OK, I've just downloaded the PS3 version and compared the ratchet models. It seems there's mainly a difference of the endianness, except that the pc version has higher res of textures with slightly different headers.
But even so there're still a lot of work to do. You'll have to research the whole format and figure out all fields of variables, and/or at least their sizes. Working with both PC and PS3 version files can help you do it easier and faster, but it's still rather time consuming. And obviously I don't have the time and passion for it right now.
"No investigation means no right to speak."
- An Imitable Workflow for Reverse Engineering a Game Model
- Reverse Model Wireframe


Say it with action: click the Image when you get helped.:)

Metalado
ultra-n00b
Posts: 7
Joined: Thu Sep 27, 2018 11:36 pm
Has thanked: 1 time

Re: (Need Help) TF2ROTF: Unpack .dat file or convert to .str

Post by Metalado » Sun Sep 30, 2018 8:44 pm

Bigchillghost wrote:OK, I've just downloaded the PS3 version and compared the ratchet models. It seems there's mainly a difference of the endianness, except that the pc version has higher res of textures with slightly different headers.
But even so there're still a lot of work to do. You'll have to research the whole format and figure out all fields of variables, and/or at least their sizes. Working with both PC and PS3 version files can help you do it easier and faster, but it's still rather time consuming. And obviously I don't have the time and passion for it right now.
Thanks! As there will be time and desire, please write! In debt i will not stay :wink:

Post Reply