Hex Editing Resource Center - Jerseys w/ More&Less Movement

A hub for everything related to NBA 2K11 modding. Releases, previews, requests, and other modding discussion belongs here.

Hex Editing Resource Center - Jerseys w/ More&Less Movement

Postby JaoSming on Wed Aug 24, 2011 8:06 am

Introductory Rant (optional read)

Even if you guys don't like me for not knowing immediately who is stealing patches from other sites or enforcing our zero tolerance piracy policy to your friends/mentors you should recognize that I do everything I can to help anyone patch NBA PC games to their liking. If you don't believe me go look in the Patching Help or Tutorials sections or even the REDitor thread.

My biggest pet peeve with this community is when someone figures something out, and instead of sharing what they did, they just whore it out and create a monopoly on that specfic patch. For the people who haven't been around for more than 3 years, imagine if Pat didn't come and save the day here. Who knows how long it would have taken for someone else to figure out how to edit the lighting files of the PC NBA Live games. The hundreds of released lighting files are the reason why we have the best graphics possible for the Live PC games...now someone tell me a "shadowmod" for 2K that wasn't released through Johndoe22/terrybgood/larrylicker.

Imagine what we as a community could have been able to do with hundreds of global files released not with different accessory textures but with different lighting. Look at any default screenshot of Live 06 and then one with a custom lighting file. Look at the default 2K global and then one of the shadowmod files.

The positive effect of openly sharing hex editing techniques can already been seen. Look at how many court patchers are able to customize paint colors now after I redid johndoe22's half-assed tutorial. But he's banned here, that isn't going to change (again). Talent won't protect you when you harass other patchers, post cocks when you're unhappy, or distribute cracked exe files.


off the soapbox


This thread exists to try and figure out, as a community, how to do advanced hex editing in NBA 2K11. I respect johndoe22 & michaelvlutz49 for their talent and contributions, but not sharing their findings with the community makes them the worst type of patcher. michaelvlutz49 is not banned here, and I would fully accept offsets/tutorials from him to share with the rest of the community if he so chooses, but I'm not expecting any help from him.



Intro to Hex Editing

This thread is for advanced editing, I can't hold hands like I do with Mod Tool or REDitor issues. Wrapping your head around hex editing is difficult, but I'm going to do the best I can to help teach it.

    You're going to need a Hex Editor, I use Hex Workshop but any with a find/replace command will work fine.

    Take a look at some of the Hex Editing tutorials in the Tutorials Section, going through those will help you understand how to edit files through hex and give you something to see visually at the end.

    Always keep backups, Hex Workshop offers to create a backup file everytime you save which is why I continue to use it. You can easily fuck something up in hex editing causing a corrupted file, and remember, we do not allow distribution of original files here.

    Hex uses 0-F instead of 0-9. Meaning that in a given byte 0 is the lowest value and F is the highest. A Byte is made up of 2 characters in that range. From lowest to highest it goes; 0 1 2 3 4 5 6 7 8 9 A B C D E F. The "lowest" value byte is 00 and the highest is FF.

    I don't know how they work exactly but there are Signed and Unsigned Bytes, Short, and Long values. There is also the Float value which is touched on in the Court Colors tutorial. These are values added up from multiple bytes. A common one is 0000803F which equals 1.

    Offsets are just a simple way to tell you where information is in the file. They are usually listed on the left side of the hex editor and can be jumped to.

The #1 rule with Hex Editing is that you DO NOT change the filesize of the file you are editing. You can only replace values, NEVER add or delete information in a file.


Figuring Out Where to Edit

After looking at the tutorial on how to extract names from the iff files, you want to decompress the file and search for the name of the thing you want to edit.

For example, if I want to find the "fat" shorts in the cloth_shorts.iff file I need to do the following.

    "fat" in hex is 66 61 74
    names in the iff files have 00's in between them
    66 00 61 00 74 00 which in text form looks like f.a.t.
    So doing a search for 660061007400 will find all the "fat" jersey parts in the hex.

After finding what you want to edit, I've found that you usually want to look "up" in the file for values to edit. Figuring out what byte controls what in the game though is the hard thing to figure out.


Helpful Tutorials (more coming)



Additional 360 Hex Roster Stuff from OS that won't directly help PC users but could be applied to PC rosters to test. Be sure to follow the Checksum tutorial above if hex editing PC rosters



More Flowy and Stiffer Jerseys

These were created after looking at michaelvlutz49's net mod's gamedata.iff. You can find out how to do these edits in this tutorial.

The Flowy jerseys do just that, they move a lot more. Kinda like how they used to move in NBA 2K6 & 2K7. The Stiffer jerseys move less, and the shorts will actually "tear" into the player's legs when they run.

If you want a preview, my latest mix was created using the "Flowy" jerseys. Look for slow-mo parts to see the subtle differences. http://www.youtube.com/watch?v=n71z7ILi8vo

Download here - More Flowy or Stiffer Jersey Movement




So What's Next

I've only been "researching" this hex crap for the past two weeks. I'm working, starting school, and got a family to take care of, so I'm going to need help with deciphering the shadow mods on both the jersey and global iff files. Feel free to post anything you know, ask for help, or give support (but not through monetary donations!)



Todo List

  • Lighting changes in Global.iff
  • Lighting changes in Stadium files
  • Applying "Shadow Mod" to any Jersey file
  • Animation changes with Gamedata.iff
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby Andrew on Wed Aug 24, 2011 10:43 am

Good stuff Jon. (Y) I would recommend that everyone give the opening remarks a look however, as the sentiment is essential for any modding community to grow and thrive.
User avatar
Andrew
Retro Basketball Gamer
Administrator
 
Posts: 114790
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby patman8503 on Wed Aug 24, 2011 10:55 am

i have been waiting for this thread for so long. thanks man. this is great stuff. i definitely don't understand why they keep their stuff secret. the more people that learn, the more creative ideas we would have when it comes to modding.
patman8503
 
Posts: 16
Joined: Sun Jan 16, 2011 4:04 am

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby handlez362 on Wed Aug 24, 2011 1:16 pm

Can't wait to see what you accomplish because last year I saw persons hex editing jumpshots! Hopefully I can learn so I can speed up Durant's shot.
User avatar
handlez362
 
Posts: 420
Joined: Sun Feb 14, 2010 1:21 am
Location: Miami

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby flam1ng n1nja11 on Thu Aug 25, 2011 11:03 am

hey jao. I was just thinking. You know how the lakers stadium is a fair bit darker then the rest. If I wanted to change it so all the stadiums are that dark ( without just copying lakers stadium to every stadium) could we take a part the hex and just find the lighting?? I am sure it would be possible. because i find the crowds are way to bright..

Just an idea. All this stuff youre doing here.. Is fantastic!! Keep it up man!!
User avatar
flam1ng n1nja11
FN11
 
Posts: 2386
Joined: Sat Jun 06, 2009 9:04 pm
Location: QLD, Australia

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby JaoSming on Thu Aug 25, 2011 1:10 pm

it's possible, it's just a matter of finding it

I did a compare of something johndoe did back in January which controls the Gamma on the players, coaches, sideline people and the ball.

I first tried doing 0000 and FFFF like I did with the shorts, and got fully white and fully black players respectively, but through a PM, I think Pat was right, the game doesn't go by the the "short" values of hex, it goes by Float values (which I'll attempt to write up something about those so you guys can help and understand)

So basically, I found this 1 byte of data in the entire stadium file that controls the gamma, and if you click on the pictures, you will see what the players look like with the setting at 0.9, 1.0 (default), and 1.1

This one magical byte is located at 1DB0B2 in the s005.iff file (Celtics) The pictures were each taken with the exact same textures, no image editing either.
You do not have the required permissions to view the files attached to this post.
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby Bnicolas13 on Thu Aug 25, 2011 2:59 pm

Does anybody know if this (the darkened shadowmod for stadiums):

http://downloads.moddingway.com/file/13914.html

Is a result of hex editing? I really want to use Leon's stadiums but after having the darker toned players its hard to go back...
CPU: Intel i7 2600K OC'd @ 4.4GHZ
GPU: 2 GTX 570s in SLI
RAM: 16 GB Corsair RAM
MOBO: ASRock Z77 Extreme 4
PSU: Rosewill Lightning 1300W
User avatar
Bnicolas13
 
Posts: 306
Joined: Fri Sep 03, 2010 10:31 am

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby JaoSming on Thu Aug 25, 2011 9:49 pm

yep, it's hex editing, and its the same exact value edited that I just mentioned!


michael uses a gamma value of 1.0390625 so just slightly darker than the default. I'll try to figure out where that value is in other stadiums so I can write a tutorial on that shiz!
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby ChiTownOwns on Mon Sep 12, 2011 8:28 pm

Bro JaoSming jonhdoe22 is giving you a message here:

http://johndoe22.blogspot.com/2011/09/a ... l#comments

johndoe22 wrote:You say those who dont release their findings are the worst kind of patcher. You are a hypocrite and here is why. When NBA 2k11 first came out, there were only 4 people who knew how to change colors on the courts. 2 court patchers and 2 moderators. The moderators who knew were Jao Sming and Pdub. Both had knowledge of how to change colors on the courts dating back to NBA 2k10. Where was your tutorial, JaoSming? You knew how to do it 2 months before NBA 2k11 was even released. Again I ask where was your tutorial? Dont say you didn't have this knowledge. I have proof that you did. It takes 3 months to write a tutorial on how to change courts colors?? I did a "half-assed" one in 15 minutes. So dont fuckin tell me you were working on one.

the only thing you were working on was one of your "pointless blacktop mods" And your "always shitty" NCAA mod. The only thing Half-Assed is YOU!! Go ahead and do your research. Download my work, open with hex and masturbate. I dont give a shit. But you better thank me for inspiring you.
User avatar
ChiTownOwns
 
Posts: 120
Joined: Sun Jul 17, 2011 3:33 pm

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby Patr1ck on Mon Sep 12, 2011 9:39 pm

I did not know how to edit court colors, but I do know how to hex edit, so I could have learned if I had the time or interest. Also, Jaosming has taken the time to learn how it's accomplished from the modders who have not posted any tutorials or guides by comparing the modded files to the originals.
Patr1ck
Administrator
Administrator
 
Posts: 13335
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby JaoSming on Mon Sep 12, 2011 9:56 pm

the tutorial I got for 2k10 was the same the "half-assed" one that is locked in the 2k11 thread. He did not help me with figuring out how to apply the exact color you wanted for the out of bounds, so all I could do is replace the color of the court with the color of another court. That is the full extent of what I knew and could do in 2k10.
nba2k10U 2010-07-18 09-56-28-71.jpg

At that time, he and the other 2 patchers knew how to completely customize the colors but chose to not help out. If I made a tutorial for the above stuff, honestly, what good would it have done? Remember, 2k10 had 3D editable courts. We could move logos, lines, whatever we wanted. It was much easier to find a court that had the colors you wanted, and then move logos/lines to make it look the way you want. This year, since we dont have that option, it is easier to recolor the out of bounds.

It wasn't until this year, maybe "15 minutes" before I posted that colors tutorial, that I figured out how to fully customize the colors of the court. Without that knowledge his "half-assed" tutorial was fine, it told you where in the file the color and reflections were, and that's it. And if someone wants to tell him that it took me 11 months, not 3 to post that tutorial, that'd be great. He "taught" me in July last year, and I posted that in June.

The only thing Half-Assed is YOU!! Go ahead and do your research. Download my work, open with hex and masturbate. I dont give a shit. But you better thank me for inspiring you.

Sometimes it's good to have reminders that people never change.

He inspires no one. Even after being called out he will never share how he changed the lighting or anything, just so he can keep it to himself. I have no idea how anyone can be seen as inspiring while being so selfish.
You do not have the required permissions to view the files attached to this post.
Opinions are my own.

JaoSming
2KTV Producer
NBA 2K Developer
 
Posts: 29904
Joined: Tue Sep 13, 2005 12:45 am
Location: 2K

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby flam1ng n1nja11 on Tue Sep 13, 2011 4:25 pm

Hes just an angry kid.. Don't let him have any more ammo.. You did a good job with this Tutorial. Thanks heaps Jao. :)
User avatar
flam1ng n1nja11
FN11
 
Posts: 2386
Joined: Sat Jun 06, 2009 9:04 pm
Location: QLD, Australia

Re: Hex Editing Resource Center - Jerseys w/ More&Less Movem

Postby DVocShoeBox on Thu Oct 06, 2011 12:36 am

So I'm doing all this research trying to find a tutorial on how to change the shadow lighting, and after a while year, he never put a tutorial out? :eh: :doh:

People these days..... :facepalm2:
.....Retired Modder.......
..............Over 200,000 in downloads.............
.............NBA SummerTime 2k9, NBA Street 2k10 Vol.2..........
.............Precise Live 08, Precise Summer League07,08,09..................
User avatar
DVocShoeBox
Director | Designer | Developer
 
Posts: 834
Joined: Thu Mar 01, 2007 5:14 am


Return to NBA 2K11 Modding

Who is online

Users browsing this forum: No registered users and 1 guest