Main Site | Forum | Rules | Downloads | Wiki | Features | Podcast

NLSC Forum

Patchmaking tutorials for NBA 2K16.
Post a reply

[Tutorial] Hex Edit .iff files

Thu Nov 12, 2015 9:50 pm

Hi All,

I received many PM on how to hex edit stuff like cloth or stadium...thanks to Greg for suggestion I'm gonna share the method:


1. Rename cloth_net.iff file to cloth_net.zip
2. Use 7-zip (http://www.7-zip.org/) and decompress the file into cloth_net folder
3. Inside the folder you'll find all the uncompressed .iff archive files (images , scene description and model files)
4. If for example you want hex edit net physics parameters (cloth file ) use a hex editor like http://www.hexworkshop.com/.....then save the file
5. Once finished just use 7-zip again and compress the files back into a .zip archive using LZMA compression

Image

6. Rename compressed .zip file back to .iff
7. Use external file loader to load archive (or Greg explorer tool)

I know a lot of modder from past 2K are really good @ Hex Edit....hope this will help them!

Regards


EDIT: I set compression to ULTRA

Re: [Tutorial] Hex Edit .iff files

Thu Nov 12, 2015 10:37 pm

can you try the global.iff??

Re: [Tutorial] Hex Edit .iff files

Thu Nov 12, 2015 11:03 pm

seanjohn2525 wrote:can you try the global.iff??

Well stadium too works...global I didn't try.....but it should work too :o

Re: [Tutorial] Hex Edit .iff files

Thu Nov 12, 2015 11:38 pm

Does this mean.. you could possibly do a TNT scoreboard and change the 2k wipe?? :)

This would be HUGE for the community. There were no scoreboard mods for last years game, a TNT scoreboard would make this game pop and add to the realism.

Re: [Tutorial] Hex Edit .iff files

Thu Nov 12, 2015 11:42 pm

Dee4Three wrote:Does this mean.. you could possibly do a TNT scoreboard and change the 2k wipe?? :)

This would be HUGE for the community. There were no scoreboard mods for last years game, a TNT scoreboard would make this game pop and add to the realism.


I'm not experienced on this kind of stuff sorry....let's wait for some other expereinced modders to reply you....

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 6:33 am

I tried todo this with the floor iffs i change the .iff to zip then use 7zp to decompress it but nothing happens for me

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 8:10 am

Manni Live wrote:I tried todo this with the floor iffs i change the .iff to zip then use 7zp to decompress it but nothing happens for me


Ok can you explain better?

It will decompress all the iff files into a folder....

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 8:22 am

Ok this si what i did i use the fXXX.iff added it to the 7zip archive made sure its on ultra and LZMA and on 7z then i clicked ok

it made a fxxx.zip so i renamed it to fxxx.iff that was what i was suppose todo right?

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 8:29 am

Manni Live wrote:Ok this si what i did i use the fXXX.iff added it to the 7zip archive made sure its on ultra and LZMA and on 7z then i clicked ok

it made a fxxx.zip so i renamed it to fxxx.iff that was what i was suppose todo right?



no :

fxxx.iff -> fxxx.zip
then decompress with 7zip to a folder

then look inside the folder and eventually hex edit files
once finished repack with LZMA and rename to .iff

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 8:57 am

ok with this method will i be able to add files to an archive?

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 8:58 am

Of course not.

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 9:01 am

TBM wrote:Of course not.


Should've been more specific i mean replace files with the same filename

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 9:11 am

Manni Live wrote:
TBM wrote:Of course not.


Should've been more specific i mean replace files with the same filename

yes

Re: [Tutorial] Hex Edit .iff files

Fri Nov 13, 2015 11:20 pm

Hey, 1st of all thanks for this tutorial maumau, it's been really helpful! Maybe I've found something:

- In 2Z there's a roster.iff and I used your method of compression - decompression with 7zip.
- The result of this is a roster.RDAT that, guess what, it's completely readable with a hex editor; in fact it resembles in some strings to our missed rosters from previous years.

Please tell me what do you think about it.

BTW, in 2Z there's also a injuryfree_roster.iff.

Eit: it seems as if the code were aligned at some points and not in others. I'm taking a look near the beginning and I see M.i.d.d.l.e.t.o.n. k.h.r.i.s., 7 players in the middle not aligned and the next one aligned is c.o.p.e.l.a.n.d. C.h.r.i.s.. It seems the file starts with a list of players by team (76ers, bucks...), but it seems that some bit-alignment work has to be done.

Re: [Tutorial] Hex Edit .iff files

Sat Nov 14, 2015 1:21 am

familiar?

2.PNG


1.PNG
You do not have the required permissions to view the files attached to this post.

Re: [Tutorial] Hex Edit .iff files

Sat Nov 14, 2015 1:53 am

I don't think that roster is used by the game at all. Could be wrong, but yeah.

Re: [Tutorial] Hex Edit .iff files

Sat Nov 14, 2015 3:49 am

I know it's not the current roster, but I was trying to figure out why it was there together with a injuryfree_roster and both of them hex-readable. Advances on hex editing are not very prolific nowadays, so I'm just trying to contribute a little bit.

Re: [Tutorial] Hex Edit .iff files

Sun Nov 15, 2015 6:54 pm

seanbarkley wrote:Hey, 1st of all thanks for this tutorial maumau, it's been really helpful! Maybe I've found something:

- In 2Z there's a roster.iff and I used your method of compression - decompression with 7zip.
- The result of this is a roster.RDAT that, guess what, it's completely readable with a hex editor; in fact it resembles in some strings to our missed rosters from previous years.

Please tell me what do you think about it.

BTW, in 2Z there's also a injuryfree_roster.iff.

Eit: it seems as if the code were aligned at some points and not in others. I'm taking a look near the beginning and I see M.i.d.d.l.e.t.o.n. k.h.r.i.s., 7 players in the middle not aligned and the next one aligned is c.o.p.e.l.a.n.d. C.h.r.i.s.. It seems the file starts with a list of players by team (76ers, bucks...), but it seems that some bit-alignment work has to be done.

Really no idea on how to use it :-(

Re: [Tutorial] Hex Edit .iff files

Sun Nov 15, 2015 9:18 pm

I've actually seen that one before when maumau posted this tutorial. I changed some values but there really wasn't any changes that I can see off the bat.

I do remember modders from 2k14 who modded the roster.iff files. Still not sure what they changed there either.

Re: [Tutorial] Hex Edit .iff files

Mon Nov 16, 2015 12:17 am

Same here, I've tried different stuff but there's no way I can see any change in the game. Same happened with some files in the shoe_global; I've edited some shoe colors but don't see the changes in the game.

BTW, was somebody able to open the SYNC.BIN file?

Hope somebody will figure this out.

Re: [Tutorial] Hex Edit .iff files

Thu Nov 19, 2015 4:54 pm

decompress or unpack?? cant turn it back to an .iff file

Re: [Tutorial] Hex Edit .iff files

Thu Nov 19, 2015 5:44 pm

seanjohn2525 wrote:decompress or unpack?? cant turn it back to an .iff file


Hey, I'm gonna post you some tips maumau has given me yesterday. It worked for me:

1. Extract the .iff to your desktop
2. Rename the .iff to .zip
3. Right click on the file --> 7zip --> extract to folder
4. Hex edit the files you want inside the folder.
5. Once done select all the files and right click on them --> 7zip --> create archive
6. In the menu select --> FORMAT: .zip compression method: LZMA
7. That will generate a .zip, just change that .zip with .iff
8. Done

Re: [Tutorial] Hex Edit .iff files

Sun Nov 22, 2015 1:24 pm

You don't have to rename the .iff to .zip BTW.

Re: [Tutorial] Hex Edit .iff files

Sun Nov 22, 2015 8:32 pm

yes, opening it through winRAR is ok. No need for the renaming part.

Re: [Tutorial] Hex Edit .iff files

Sun Dec 20, 2015 12:26 pm

TNT scoreboard Mod anyone? :cheeky:
Post a reply