Hex editing with Excel??

Talk about NBA 2K14 here.

Hex editing with Excel??

Postby seanbarkley on Tue Oct 08, 2013 6:39 am

Sup guys, until we have a roster editor I'm thinking of hex editing through excel formulas. The idea is copy the code in hex, align it in binary, transform it to hex aligned to edit the file easily, and put it back in the not aligned original way. If it works (I think it will) hex editing won't be a pain in the ass. I'm used to hex editing uniforms and I know perfectly how strings are structured, so if somebody can tell me where can I find an original roster file (the first one) and tell me the offset were uniforms start (being the first the 76ers home uniform) would be a great help for me to start with the research.
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 746
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: Hex editing with Excel??

Postby JaoSming on Tue Oct 08, 2013 7:06 am

beginning of uniforms in the first roster is right around 1550315 and it is shifted +1 bit. I am having difficulty finding the jump values for the uniform and logo names though, which begin each entry.

Find that hex, (searching for ED174C which is a 76ers color) found multiple bit alignments though, some at +1, some at +5. So it isn't consistent throughout the entire "tab".
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 with Excel??

Postby seanbarkley on Tue Oct 08, 2013 7:31 am

Thanks for the info Jao!Let's see what I can find, I'll keep you updated.
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 746
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: Hex editing with Excel??

Postby JaoSming on Tue Oct 08, 2013 8:09 am

sure thing, and while I am not going to spearhead this, I am more than happy to help. So stay in touch if you need more info (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 with Excel??

Postby seanbarkley on Wed Oct 09, 2013 5:58 am

GOT IT Jao! :cheeky:

Just found out how to decipher the whole uniforms string (thousands of bits) with just one bit alignment. Man, it's great to see all that stuff the way we saw it a couple of years ago!

I don't have time now (my GF is getting angry) but I'll post a complete tut on how to do it tomorrow. I'm quite sure that if this has worked for uniforms also will for the rest. Stay tuned!
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 746
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: Hex editing with Excel??

Postby JaoSming on Wed Oct 09, 2013 6:10 am

awesome man! can't wait to see what you came up with (Y) (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 with Excel??

Postby seanbarkley on Thu Oct 10, 2013 3:59 am

Tutorial to align the whole uniforms string with a few steps

First of all I selected what I thaugh it was the whole uniforms string (don't know for sure if there are some left before the one I chose). I selected from offset 17A6C0 (00) to offset 182117 (00) I selected 2 offsets with "00" (0000 0000 in binary) because those will be easier to align after the editing.

Image

Image

As you can see the string I selected starts with 00 03; I translated it to binary code (which is 0000 0000 0000 0011) and started with the trial and error method; that's to say, I moved 1 bit to the right (0000 0000 0000 0011 - deleted the first 0) selected the whole string again (without the 0) and translated it back to hex to see if it had more sense. Ater 6 misses I finded that if I moved 6 bits, that's to say, I deleted the first 6 "0s" and translated it back to hex, something very familiar appeared before my eyes:

Image

As you can see in the picture now we can see the FF shoe color, FF team color 1, FF team color 2, FF HB color and more data I still haven't found what means, but I'm quite sure we'll find out pretty soon (like the team code or sock color). Now I have 11 pages of code like this, completelly aligned and very editing friendly. Once you do all the changes yo wish, just:

!. select the whole edited string, copy it, paste it in this page (http://redir.dasumo.com/hex/) in the hexadecimal box, press translate.
2. Copy the whole string that appears in the "binario" box and paste it in a word file
3. Add the first 6 "0"s we deleted previously, and copy it again.
4. Paste it in the "binario" box and press translate
5. Copy the string that appears in the haxadecimal box and paste it in the hex editor starting in the offset we started to copy the code (17A6C0)
6. Done. Everything is edited and aligned back to the way it was previosly.

I'll post the 11 pages of aligned code tomorrow with color guides so you can see clearly where each uniform info starts and ends (HB color is underlined in the example, there're 403 word characters between the end of this and the beginning of the HB color of the next uniform). As I stated before, if this method works for uniforms I'm sure it will also work for the rest.

It's pretty hard to explain this in english because it's not my native language so if you have some doubts (I'm sure you will) I'll answer them here.
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 746
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: Hex editing with Excel??

Postby JaoSming on Thu Oct 10, 2013 6:01 am

i think it would be much easier to use Find That Hex by Leftos, which can shift entire files by a binary offset automatically.
http://www.youtube.com/watch?v=WFL6pzyhJwU
phpBB [video]
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 with Excel??

Postby seanbarkley on Thu Oct 10, 2013 6:49 am

I didn't even know that tool existed!lol!

I've taken a quick look at the video but I've found all that stuff a little bit complicated. I'll try to do the same tomorrow with this tool and see what happens.

What I don't know is why people are still strugglin with not aligned bytes if the whole file can be easily aligned with this! :doh:
If you like my work I appreciate any help: https://www.paypal.me/s3anbarkl3y
User avatar
seanbarkley
 
Posts: 746
Joined: Tue Sep 23, 2008 8:10 pm
Location: SCQ. Spain

Re: Hex editing with Excel??

Postby Devilish on Wed Dec 18, 2013 12:40 am

Can i find CAT front jersey numbers with this?I want to have matching colors for front and back
and how can i replace an originaln team with a CAT one?Instead of adding it to the game?And removing logos from front of jerseys or at least changing them.I cant seem to find much on these topics
~~~~~People down here need ice water..For more of my mods and junk visit here...! ~~~~~~
(Y) https://www.facebook.com/ICanModByDevilishNLSC/ (Y)
User avatar
Devilish
 
Posts: 1196
Joined: Fri Jun 15, 2012 4:12 pm
Location: Hell's Kitchen


Return to NBA 2K14

Who is online

Users browsing this forum: No registered users and 4 guests