Hex Editing: Stadium "Shaders"

Patchmaking tutorials for NBA 2K12.

Hex Editing: Stadium "Shaders"

Postby JaoSming on Tue Oct 18, 2011 11:06 am

This was originally found by larrylicker aka terrybgood aka johndoe22, someone who is banned here.

Open the an uncompressed stadium of your choosing with your hex editor.

Run a Find command for the text string "c.a.m.e.r.a.s.". Remember to search for it using Unicode String or manually add the 00's between the letters yourself.
Image

We want to jump to the last instance of "c.a.m.e.r.a.s" in the file.
Image

Be sure to note where you are in the file. This location changes for each stadium.
Image

We want to look "down" in the file 5A3 bytes. If you don't want to be so precise, you can simply scroll down until you see the majority of 0000's turn into a majority of gibberish.
Image

These are the 8 bytes we are after. This bytes change the shading on the players while they are playing in that stadium. The 0000 003F also plays a roll in this, but I think it only controls the "shading" during the Sprite Slam Dunk replays (untested). The value is controlled by the "Float (32)" value. Default is "1" or "0000 803F".
Image

Use the Hex Workshop Base Converter or some other means to convert decimal values into floats.
Image


The first image is with this float value at "0.9". Second at the default "1.0". And Third at "1.1". These images are from NBA 2K11.
Image
Image
Image
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: Stadium "Shaders"

Postby Push on Tue Oct 18, 2011 2:59 pm

Do I only need to change the last instance or all of them?

BTW, can you make a global shadow mod tutorial?
User avatar
Push
 
Posts: 176
Joined: Tue Oct 11, 2011 4:23 pm
Location: Pilipinas

Re: Hex Editing: Stadium "Shaders"

Postby Bnicolas13 on Tue Oct 18, 2011 3:24 pm

WOW! Thank you so much! This is literally my favorite mod, but I hated not being able to use the custom stadiums made by Mythbuster. Thanks a lot Jao!
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: Stadium "Shaders"

Postby JaoSming on Tue Oct 18, 2011 10:47 pm

Bnicolas13 wrote:WOW! Thank you so much! This is literally my favorite mod, but I hated not being able to use the custom stadiums made by Mythbuster. Thanks a lot Jao!

what you should do is open up one of michaelutz's stadiums, get the value he uses and simply paste that into the mythbuster stadiums.

Push wrote:Do I only need to change the last instance or all of them?

BTW, can you make a global shadow mod tutorial?

It's only that one instance for this kind of mod. If I knew how to do the shadow mods in the global, I'd share that too, but I dont.
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: Stadium "Shaders"

Postby Bnicolas13 on Wed Oct 19, 2011 4:11 am

JaoSming wrote:
Bnicolas13 wrote:WOW! Thank you so much! This is literally my favorite mod, but I hated not being able to use the custom stadiums made by Mythbuster. Thanks a lot Jao!

what you should do is open up one of michaelutz's stadiums, get the value he uses and simply paste that into the mythbuster stadiums.

Thank you, I'll do that.
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: Stadium "Shaders"

Postby dbzx on Wed Oct 19, 2011 5:23 am

for every ones information, michaelutz change the 80 00 3F to 83 00 3F. Higher you increase the "80" the darker it gets. 88+ = verry verryy dark. personally i use 84.
Last edited by dbzx on Mon Oct 24, 2011 1:18 pm, edited 1 time in total.
dbzx
 
Posts: 345
Joined: Fri Jun 04, 2010 7:58 am

Re: Hex Editing: Stadium "Shaders"

Postby JaoSming on Thu Oct 20, 2011 9:51 am

thanks for the tip dbzx!
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: Stadium "Shaders"

Postby Bnicolas13 on Thu Oct 20, 2011 10:18 am

Do you have any recommendation for a good free hex editor? I see you use Hex workshop but I don't want to pay 80 bucks for something, I won't really use too much.
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: Stadium "Shaders"

Postby JaoSming on Thu Oct 20, 2011 10:25 am

HxD looks pretty good
http://download.cnet.com/HxD-Hex-Editor ... 91068.html

played around with it for a few minutes. Find/Replace functionality, compare files etc.
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: Stadium "Shaders"

Postby Andrew on Thu Oct 20, 2011 10:28 am

I can vouch for HxD, it's served me well. (Y)
User avatar
Andrew
Assist Enthusiast
Administrator
 
Posts: 113903
Joined: Thu Aug 22, 2002 8:51 pm
Location: Australia

Re: Hex Editing: Stadium "Shaders"

Postby Bnicolas13 on Thu Oct 20, 2011 10:30 am

Awesome thanks! Downloading now :)
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: Stadium "Shaders"

Postby matt219 on Fri Oct 21, 2011 5:15 pm

I've tried this and it works!
but I still wanna know something, can I also edit shaders for jerseys by doing this method?
I'm curious about it :D
Image
User avatar
matt219
 
Posts: 82
Joined: Sun Jan 30, 2011 11:43 am
Location: Singapore

Re: Hex Editing: Stadium "Shaders"

Postby JaoSming on Fri Oct 21, 2011 7:59 pm

unfortunately no, i dont know how the jerseys and global were modded last year.
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: Stadium "Shaders"

Postby matt219 on Sat Oct 22, 2011 1:43 am

oh ok I see..
thanks Jao! :)
Image
User avatar
matt219
 
Posts: 82
Joined: Sun Jan 30, 2011 11:43 am
Location: Singapore

Re: Hex Editing: Stadium "Shaders"

Postby dbzx on Thu Jan 05, 2012 9:49 am

hey jao, do you know if this method works on the classic courts too?
dbzx
 
Posts: 345
Joined: Fri Jun 04, 2010 7:58 am

Re: Hex Editing: Stadium "Shaders"

Postby JaoSming on Thu Jan 05, 2012 9:54 am

if its a stadium file, it works
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: Stadium "Shaders"

Postby dbzx on Thu Jan 05, 2012 10:11 am

hmm, doesnt seem to work with the bulls 97-98 stadium, i havent checked other classic courts though.



EDIT: on second thought , nvm it works, but instead of going down 5A3 bytes, i think you go down to about 4C1 bytes or something, I dont remember the exact values.
dbzx
 
Posts: 345
Joined: Fri Jun 04, 2010 7:58 am

Re: Hex Editing: Stadium "Shaders"

Postby JaoSming on Thu Jan 05, 2012 11:40 am

its there for all the stadiums its just a matter of finding them

in the future, dont PM me at the same time as replying. I'm not onliny 100% of the time but trust me, I'll come back and check the threads.
Opinions are my own.

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


Return to NBA 2K12 Tutorials & FAQs

Who is online

Users browsing this forum: No registered users and 1 guest