Hex Editing: Changing global like 2k11 help and mvp mode

Patchmaking tutorials for NBA 2K12.

Hex Editing: Changing global like 2k11 help and mvp mode

Postby michaelvlutz49 on Mon Jan 02, 2012 3:54 pm

i know why the global is messed up i think. the player lod settings is mixed with high and low settings that's why a lot of cyber faces, arms and legs are off. If there is a way to disable low settings or turn both on. If you turn on low lod player settings and look at the players skin tones on replay you will see what I mean. The skin tone has that glow light reflecting off the skin effect.

and i put some .exe and gamedate mod changers .




you need this first http://mh-nexus.de/en/downloads.php?product=HxD

nba2k12.exe

changes cloth size jerseys and net first four 80 3b change to 903b will tight and lower will make bigger

81 80 80 3B 81 80 80 3B 81 80 80 3B 81 80 80 3B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81 80 00 39 81 80 00 39 81 80 00 39 81 80 00 39 00 FE FF 46 00 FE FF 46 00 FE FF 46 00 FE FF 46 FF 0F 00 00 FF 0F 00 00 FF 0F 00 00 FF 0F 00 00 FF FF 00 00 FF FF 00 00 FF FF 00 00 FF FF 00 00

chnages running speed 803f will change to 903f to make faster or 703f to make slower


48 42 00 00 C6 42 33 33 73 3F 00 00 80 3F 66 66 86 3F 19 00 00 00 3E 00 00 00 63 00 00 00 00 00 00 00 00 00 00 3F 00 00 80 3F 26 53 55 3F 00 00 80 3F 9A 99 99 3F

chnges skin tone lighting 803f all 5 in a row lower will make darker raise to make lighter

BC E9 D0 01 CC E9 D0 01 D8 E9 D0 01 E8 E9 D0 01 F4 E9 D0 01 00 EA D0 01 0C EA D0 01 18 EA D0 01 28 EA D0 01 40 EA D0 01 60 EA D0 01 7C EA D0 01 84 EA D0 01 8C EA D0 01 A4 EA D0 01 60 2A 25 01 8C 2A 25 01 B8 2A 25 01 08 2A 25 01 00 00 00 00

gamedata

icon remover this one is complicated if you remove 803f to 0000 it will remove it but if you go up and down will make it bigger or smaller



64 65 72 20 43 6F 6D 70 69 6C 65 72 20 39 2E 32 34 2E 39 34 39 2E 32 33 30 37 00 AB 51 00 00 05 04 00 0F A0 00 00 80 3F



20 43 6F 6D 70 69 6C 65 72 20 39 2E 32 34 2E 39 34 39 2E 32 33 30 37 00 51 00 00 05 04 00 0F A0 00 00 40 40 00 00 80 3F
Last edited by michaelvlutz49 on Wed Jan 11, 2012 1:48 pm, edited 7 times in total.
User avatar
michaelvlutz49
 
Posts: 302
Joined: Wed Nov 24, 2010 3:26 pm
Location: Cleveland,OH

Re: how to change 256 to 1024 by 512 AND 512 BY 512 dds hex

Postby Dmayne on Mon Jan 02, 2012 4:56 pm

Thanks for trying this... I changed the color on the shoe file to 512x512, inserted texture but in game it doesn't hold like you said. Keep trying bro you will get it. (Y)
User avatar
Dmayne
 
Posts: 440
Joined: Mon Oct 12, 2009 11:08 pm
Location: Michigan, US

Re: how to change 256 to 1024 by 512 AND 512 BY 512 dds hex

Postby JaoSming on Thu Jan 05, 2012 4:09 am

moved to tutorials

the main thing to change are the 0001 and 0002's

0001 = 256
0002 = 512
8000 = 128


the reason it doesnt work is because the file calls out where the texture starts and ends, hence why the green texture appears in the "color" texture of a shoe. in shoe files, look for at offset 00000270, you can see that the "color" texture starts there. If you look above the top DXT5 hex portion you will see 70020000 which is the file calling out where that texture begins. I dont know where to find the 2nd texture's start point or either of their ends though.

never the less, here is a shoe file with a 512 512 color texture and a 0x0 green texture
http://nba-live.com/jaosming/2K12/pshoe ... 20Copy.iff

no idea if it will work or not though.
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: Changing Texture Sizes

Postby maumau78 on Thu Jan 05, 2012 5:43 am

Hi Jao
on a 256x256 texture the "green texture" start @ 0x157E0 while the "color texture" start @ 0x270


I think that we need to find the way to specify in the header a new starting position for the green one (or maybe they store the size in byte of the color texture).

Hope I contribuited to the tutorial...I'll also perform some test
"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: Hex Editing: Changing Texture Sizes

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

you did, I found that same offset when i did a compare after changing that texture, but I can't find it in the headers

Image

1 are the headers I was looking at. Remember to reverse the byte order, so the offsets we have are
0000 0001 - 0020 AAE0 - for one of the textures
0000 0270 - 0020 AAE0 - for the other texture

we know 270 is the start of one of them, maybe pat could take a look at this and make more sense of it


#2 & #3 is what I changed to get different sized textures i.e. 128x128, 256x256. But it doesnt help the file size issue
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: Changing Texture Sizes

Postby maumau78 on Thu Jan 05, 2012 6:36 am

JaoSming wrote:you did, I found that same offset when i did a compare after changing that texture, but I can't find it in the headers

Capture.JPG


1 are the headers I was looking at. Remember to reverse the byte order, so the offsets we have are
0000 0001 - 0020 AAE0 - for one of the textures
0000 0270 - 0020 AAE0 - for the other texture

we know 270 is the start of one of them, maybe pat could take a look at this and make more sense of it


#2 & #3 is what I changed to get different sized textures i.e. 128x128, 256x256. But it doesnt help the file size issue


mmmmm.....256x256=65536 or in HEX value=10000

header it's full of those values....

maybe they store texture size? If yes we need to change this in (512x512=262144 ):40000 ?????

regards

p.s.
I'm trying now....
"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: Hex Editing: Changing Texture Sizes

Postby DiegoM on Thu Jan 05, 2012 2:45 pm

Hi (Y)

I´m Diego from ModdingWay. I´ve created most stuff for PES but now playing NBA :)
Here I´ve created 1024 x 1024 shoes.
http://downloads.moddingway.com/file/18740.html :D

If you need help understanding files let me know.
DiegoM
 
Posts: 1
Joined: Thu Jan 05, 2012 2:39 pm

Re: Hex Editing: Changing Texture Sizes

Postby maumau78 on Thu Jan 05, 2012 6:25 pm

DiegoM wrote:Hi (Y)

I´m Diego from ModdingWay. I´ve created most stuff for PES but now playing NBA :)
Here I´ve created 1024 x 1024 shoes.
http://downloads.moddingway.com/file/18740.html :D

If you need help understanding files let me know.

Thank you Diego!

Yes I need explanation and I've some requests

-I'm still playing NBA 2k11 a lot....do you think you can create a template also for 2k11 shoes?
-Do you think you can "hack" resolution also for jersey and CF?

Best Regards
"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: Hex Editing: Changing Texture Sizes

Postby JaoSming on Thu Jan 05, 2012 10:47 pm

I dont think Jerseys need it since they have a mesh "texture" applied to them automatically in the global.iff

CFs though, that would be awesome if we could really HD them. I'd love to know how you hacked this up (Y)
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: Changing Texture Sizes

Postby Patr1ck on Fri Jan 06, 2012 1:35 am

Like you said earlier, it's about changing the offsets. Ifyou change one, you have to change all the other ones to account for the change since new data was added. You also have to change something or somethings at the beginning of the file to make up for the filesize change.

Having a template for cyberfaces wouldn't work since some have hair textures. It's not even that hard to program this, it's just some math and applying it to the other offsets if needed. The trick is getting the texture to import without overwriting into any other texture data since they are stacked on top of one another. It would have to work similar to FSHx where you double the texture size so it fixes the other offsets, and then import the texture. Otherwise a program would have to export all textures each time you wanted to import one so that it could fix the offsets when it rebuilds the file, like fshline(i think it was called fshline).
Patr1ck
Administrator
Administrator
 
Posts: 13323
Joined: Thu May 19, 2005 5:54 pm
Location: Pasadena, California, US

Re: Hex Editing: Changing global like 2k11 help and mvp mode

Postby michaelvlutz49 on Wed Jan 11, 2012 1:51 pm

mvp instructions : hex editing
User avatar
michaelvlutz49
 
Posts: 302
Joined: Wed Nov 24, 2010 3:26 pm
Location: Cleveland,OH

Re: Hex Editing: Changing global like 2k11 help and mvp mode

Postby tatlopuyo on Wed Jan 11, 2012 4:09 pm

where is the tutorial for global hex editing?
User avatar
tatlopuyo
 
Posts: 768
Joined: Thu May 19, 2011 6:20 pm

Re: Hex Editing: Changing global like 2k11 help and mvp mode

Postby JaoSming on Wed Jan 11, 2012 11:54 pm

michaelvlutz49, in the future please don't delete a tutorial you already made. If you wanted to have another tutorial for this new information that would have been easier than wiping your original first post about texture sizes.
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: Changing global like 2k11 help and mvp mode

Postby michaelvlutz49 on Thu Jan 12, 2012 12:12 am

JaoSming wrote:michaelvlutz49, in the future please don't delete a tutorial you already made. If you wanted to have another tutorial for this new information that would have been easier than wiping your original first post about texture sizes.

i know but the information was wrong and didn't work. DiegoM addressed this issue correctly .
User avatar
michaelvlutz49
 
Posts: 302
Joined: Wed Nov 24, 2010 3:26 pm
Location: Cleveland,OH


Return to NBA 2K12 Tutorials & FAQs

Who is online

Users browsing this forum: No registered users and 1 guest