[Tutorial] Hex Edit .iff files

Patchmaking tutorials for NBA 2K16.

[Tutorial] Hex Edit .iff files

Postby maumau78 on 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
This topic was moved from NBA 2K16 Modding by Andrew on Fri Nov 13, 2015 9:26 am.
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Hex Edit .iff files

Postby seanjohn2525 on Thu Nov 12, 2015 10:37 pm

can you try the global.iff??
User avatar
seanjohn2525
 
Posts: 1410
Joined: Tue Oct 20, 2009 7:03 pm
Location: imus, cavite

Re: [Tutorial] Hex Edit .iff files

Postby maumau78 on 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
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Hex Edit .iff files

Postby Dee4Three on 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.
"I don't know if I practiced more than anybody, but I sure practiced enough. I still wonder if somebody - somewhere - was practicing more than me." - Larry Bird

Check out my YouTube channel

https://www.youtube.com/channel/UCvHJXrqit8Dc6HBY5P6EmAA


Follow me on Twitter

https://twitter.com/Dee4Three84
User avatar
Dee4Three
NLSC Team Member
NLSC Team Member
 
Posts: 9673
Joined: Sun Mar 30, 2014 12:34 pm
Location: New Hampshire, USA

Re: [Tutorial] Hex Edit .iff files

Postby maumau78 on 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....
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Hex Edit .iff files

Postby Manni Live on 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
Image

For all my patches for NBA 2K16 & NBA 2K14 Visit http://mannipatches.blogspot.ca/

Flickr Page https://www.flickr.com/photos/99620982@N03/


If your willing to support feel free to donate :)

Image
User avatar
Manni Live
Y'all spinning around like ballers. Seething with jealousy, I am.
Contributor
 
Posts: 3090
Joined: Wed Feb 22, 2012 12:24 am
Location: Toronto,Canada

Re: [Tutorial] Hex Edit .iff files

Postby maumau78 on 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....
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Hex Edit .iff files

Postby Manni Live on 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?
Image

For all my patches for NBA 2K16 & NBA 2K14 Visit http://mannipatches.blogspot.ca/

Flickr Page https://www.flickr.com/photos/99620982@N03/


If your willing to support feel free to donate :)

Image
User avatar
Manni Live
Y'all spinning around like ballers. Seething with jealousy, I am.
Contributor
 
Posts: 3090
Joined: Wed Feb 22, 2012 12:24 am
Location: Toronto,Canada

Re: [Tutorial] Hex Edit .iff files

Postby maumau78 on 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
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Hex Edit .iff files

Postby Manni Live on Fri Nov 13, 2015 8:57 am

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

For all my patches for NBA 2K16 & NBA 2K14 Visit http://mannipatches.blogspot.ca/

Flickr Page https://www.flickr.com/photos/99620982@N03/


If your willing to support feel free to donate :)

Image
User avatar
Manni Live
Y'all spinning around like ballers. Seething with jealousy, I am.
Contributor
 
Posts: 3090
Joined: Wed Feb 22, 2012 12:24 am
Location: Toronto,Canada

Re: [Tutorial] Hex Edit .iff files

Postby TBM on Fri Nov 13, 2015 8:58 am

Of course not.
Image
User avatar
TBM
Contributor
Contributor
 
Posts: 3654
Joined: Mon Dec 16, 2013 7:33 am

Re: [Tutorial] Hex Edit .iff files

Postby Manni Live on 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
Image

For all my patches for NBA 2K16 & NBA 2K14 Visit http://mannipatches.blogspot.ca/

Flickr Page https://www.flickr.com/photos/99620982@N03/


If your willing to support feel free to donate :)

Image
User avatar
Manni Live
Y'all spinning around like ballers. Seething with jealousy, I am.
Contributor
 
Posts: 3090
Joined: Wed Feb 22, 2012 12:24 am
Location: Toronto,Canada

Re: [Tutorial] Hex Edit .iff files

Postby maumau78 on 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
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Hex Edit .iff files

Postby seanbarkley on 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.
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 727
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: [Tutorial] Hex Edit .iff files

Postby seanbarkley on 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.
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 727
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: [Tutorial] Hex Edit .iff files

Postby TBM on 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.
Image
User avatar
TBM
Contributor
Contributor
 
Posts: 3654
Joined: Mon Dec 16, 2013 7:33 am

Re: [Tutorial] Hex Edit .iff files

Postby seanbarkley on 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.
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 727
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: [Tutorial] Hex Edit .iff files

Postby maumau78 on 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 :-(
"I open at the close"

Dumbledore

You like my works? Support me! Donations Link Below:
https://paypal.me/maumau78mods
https://twitter.com/MauroAnceschi
https://www.youtube.com/user/anceschmau78/videos
User avatar
maumau78
Contributor
Contributor
 
Posts: 3211
Joined: Mon Nov 01, 2010 6:26 pm
Location: Italy

Re: [Tutorial] Hex Edit .iff files

Postby Kevin on 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.
Rest In Peace Kobe
User avatar
Kevin
Fuck the Celtics
 
Posts: 8041
Joined: Sat Nov 16, 2013 9:47 pm
Location: Staples

Re: [Tutorial] Hex Edit .iff files

Postby seanbarkley on 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.
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 727
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: [Tutorial] Hex Edit .iff files

Postby seanjohn2525 on Thu Nov 19, 2015 4:54 pm

decompress or unpack?? cant turn it back to an .iff file
User avatar
seanjohn2525
 
Posts: 1410
Joined: Tue Oct 20, 2009 7:03 pm
Location: imus, cavite

Re: [Tutorial] Hex Edit .iff files

Postby seanbarkley on 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
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 727
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: [Tutorial] Hex Edit .iff files

Postby TBM on Sun Nov 22, 2015 1:24 pm

You don't have to rename the .iff to .zip BTW.
Image
User avatar
TBM
Contributor
Contributor
 
Posts: 3654
Joined: Mon Dec 16, 2013 7:33 am

Re: [Tutorial] Hex Edit .iff files

Postby Kevin on Sun Nov 22, 2015 8:32 pm

yes, opening it through winRAR is ok. No need for the renaming part.
Rest In Peace Kobe
User avatar
Kevin
Fuck the Celtics
 
Posts: 8041
Joined: Sat Nov 16, 2013 9:47 pm
Location: Staples

Re: [Tutorial] Hex Edit .iff files

Postby Dee4Three on Sun Dec 20, 2015 12:26 pm

TNT scoreboard Mod anyone? :cheeky:
"I don't know if I practiced more than anybody, but I sure practiced enough. I still wonder if somebody - somewhere - was practicing more than me." - Larry Bird

Check out my YouTube channel

https://www.youtube.com/channel/UCvHJXrqit8Dc6HBY5P6EmAA


Follow me on Twitter

https://twitter.com/Dee4Three84
User avatar
Dee4Three
NLSC Team Member
NLSC Team Member
 
Posts: 9673
Joined: Sun Mar 30, 2014 12:34 pm
Location: New Hampshire, USA

Next

Return to NBA 2K16 Tutorials & FAQs

Who is online

Users browsing this forum: No registered users and 2 guests