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

NLSC Forum

Patchmaking tutorials for NBA 2K12.
Post a reply

Hex Editing: Stadium "Shaders"

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

Re: Hex Editing: Stadium "Shaders"

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?

Re: Hex Editing: Stadium "Shaders"

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!

Re: Hex Editing: Stadium "Shaders"

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.

Re: Hex Editing: Stadium "Shaders"

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.

Re: Hex Editing: Stadium "Shaders"

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.

Re: Hex Editing: Stadium "Shaders"

Thu Oct 20, 2011 9:51 am

thanks for the tip dbzx!

Re: Hex Editing: Stadium "Shaders"

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.

Re: Hex Editing: Stadium "Shaders"

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.

Re: Hex Editing: Stadium "Shaders"

Thu Oct 20, 2011 10:28 am

I can vouch for HxD, it's served me well. (Y)

Re: Hex Editing: Stadium "Shaders"

Thu Oct 20, 2011 10:30 am

Awesome thanks! Downloading now :)

Re: Hex Editing: Stadium "Shaders"

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

Re: Hex Editing: Stadium "Shaders"

Fri Oct 21, 2011 7:59 pm

unfortunately no, i dont know how the jerseys and global were modded last year.

Re: Hex Editing: Stadium "Shaders"

Sat Oct 22, 2011 1:43 am

oh ok I see..
thanks Jao! :)

Re: Hex Editing: Stadium "Shaders"

Thu Jan 05, 2012 9:49 am

hey jao, do you know if this method works on the classic courts too?

Re: Hex Editing: Stadium "Shaders"

Thu Jan 05, 2012 9:54 am

if its a stadium file, it works

Re: Hex Editing: Stadium "Shaders"

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.

Re: Hex Editing: Stadium "Shaders"

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.
Post a reply