Hex Editing Discussion: Shaders? What do we know?

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

Hex Editing Discussion: Shaders? What do we know?

Postby JaoSming on Tue Aug 14, 2012 4:42 am

So I finally got some free time, so of course I dive into researching crap about the game I don't know.

I did a hex compare with the modified crowd lighting I have and the default crowd file and saw he edited stuff under the "Shaders" parts seen all around iff files. I noticed the "Floats" work nicely, with whole numbers and such, and repeated other numbers.

Image

I loaded up a Uniform and played with them a bit. I was able to scale the Jersey top, in replay mode only, so we could technically do the uniform scaling stuff without a modified exe file (although, when I did this the game didn't know what to blur and not blur with depth of field, blurring the uniform when it was in focus)
Image

slight shrink for realism & comparison
http://nba-live.com/jaosming/2K12/Pics/ ... -27-39.jpg
http://nba-live.com/jaosming/2K12/Pics/ ... -34-87.jpg

http://nba-live.com/jaosming/2K12/Pics/ ... -18-60.jpg
http://nba-live.com/jaosming/2K12/Pics/ ... -27-15.jpg

Other values let me make the name on the back of the uniform disappear when in replay mode and other silly stuff.


So Global Lighting Guys, are these values what you are editing? I don't feel like syncing up textures and such in the globals to compare them....also, if you guys know this stuff, we could really do some amazing things with the uniforms (hopefully).

When you read this, Leftos, do you think you could make a little tool that searches for those Shader headers and then exports out the next 20-30 floats?
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 Discussion: Shaders? What do we know?

Postby Leftos on Tue Aug 14, 2012 9:28 am

Yeah, should be easy to make a tool that exports all shader floats to CSV and then allow you to import them back in after editing them in Excel or whatever.

Give me something more specific than "20-30", and I'll do it soon.
Eleftherios "Leftos" Aslanoglou
NBA 2K AI Software Engineer
Visual Concepts Entertainment / 2K Sports

Used to be "That Tools Guy" around here during the good ol' days. Although you probably remember me as your favorite Podcast host.
User avatar
Leftos
I'm The Pipeline, The Pipeline Is Me
NBA 2K Developer
 
Posts: 5223
Joined: Sun Jun 07, 2009 7:44 am
Location: Novato, CA, USA

Re: Hex Editing Discussion: Shaders? What do we know?

Postby seanjohn2525 on Tue Aug 14, 2012 9:46 am

now this is what were talkin^^ (Y) (Y)
User avatar
seanjohn2525
 
Posts: 1410
Joined: Tue Oct 20, 2009 7:03 pm
Location: imus, cavite

Re: Hex Editing Discussion: Shaders? What do we know?

Postby JaoSming on Tue Aug 14, 2012 10:11 am

seanjohn1414, are these the values you boys have been editing?


That Tools Guy, CSV would be awesome,

IMO, find
Code: Select all
20484C534C20536861646572

jump ahead 1C

then grab the float values for the next 2C of values, so, 11 floats. We can always mess with that later.

THanks
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 Discussion: Shaders? What do we know?

Postby seanjohn2525 on Tue Aug 14, 2012 2:22 pm

JaoSming, no bro.. not yet expermienting at those values.. but i will be ^^
User avatar
seanjohn2525
 
Posts: 1410
Joined: Tue Oct 20, 2009 7:03 pm
Location: imus, cavite

Re: Hex Editing Discussion: Shaders? What do we know?

Postby Lean on Tue Aug 14, 2012 6:56 pm

Man, Rondo has serious spine problems.
User avatar
Lean
The Artist Formerly Known as Crappystuff
NLSC Team Member
 
Posts: 7775
Joined: Mon Nov 13, 2006 8:49 pm
Location: Pilipinas

Re: Hex Editing Discussion: Shaders? What do we know?

Postby JaoSming on Fri Oct 05, 2012 10:17 am

bump so its easier to find


suck it, I'm an Admin :)
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 Discussion: Shaders? What do we know?

Postby wilson27 on Fri Oct 05, 2012 11:34 am

:turrible:
JaoSming wrote:bump so its easier to find


suck it, I'm an Admin :)
Your Tip Here :D
Image
User avatar
wilson27
 
Posts: 550
Joined: Thu Sep 08, 2011 6:23 pm

Re: Hex Editing Discussion: Shaders? What do we know?

Postby JaoSming on Fri Oct 05, 2012 11:40 am

JaoSming wrote:suck it, I'm an Admin :)
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 Discussion: Shaders? What do we know?

Postby wilson27 on Fri Oct 05, 2012 12:04 pm

JaoSming wrote:
JaoSming wrote:suck it, I'm an Admin :)


:lol:
Your Tip Here :D
Image
User avatar
wilson27
 
Posts: 550
Joined: Thu Sep 08, 2011 6:23 pm

Re: Hex Editing Discussion: Shaders? What do we know?

Postby Greatest N-G Maker on Mon May 05, 2014 5:26 pm

Jao,im really exited if you answer me Can you tell me how to hex edit the 2nd to 3rd row of the crowd to make it look brighter and the 4th to the last crowd darker.Thanks Man the thing is we are making a project a next gen project with the next gen scoreboard so we need the crowd look like this http://i.imgur.com/yPNuLOg.jpg thanks in advance man and we will put you in our credits if you help us my name in moddingway is Greatest N-G Maker :bowdown: :bowdown2: :lol: :roll: (Y)
Greatest N-G Maker
 
Posts: 18
Joined: Sun May 04, 2014 12:34 am

Re: Hex Editing Discussion: Shaders? What do we know?

Postby JaoSming on Mon May 05, 2014 9:42 pm

no hex editing, its the 3rd or 4th texture in the 2kx tool, it controls the crowd lighting. Experiment with that.

Image

2Kx wants it to be a "bmp" it is really a RGBA dds file. Upcoming RED MC iff support works with this file nicely 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 Discussion: Shaders? What do we know?

Postby Greatest N-G Maker on Mon May 05, 2014 10:09 pm

and I got a little problem I can't run the NBA2K tool I open it it shows a year I click 2012 and nothing happens I updated my java but it isnt working at all thanks tho!! :applaud: :bowdown2: :?
Greatest N-G Maker
 
Posts: 18
Joined: Sun May 04, 2014 12:34 am

Re: Hex Editing Discussion: Shaders? What do we know?

Postby Greatest N-G Maker on Mon May 05, 2014 10:12 pm

..
Last edited by Greatest N-G Maker on Tue May 06, 2014 12:00 pm, edited 1 time in total.
Greatest N-G Maker
 
Posts: 18
Joined: Sun May 04, 2014 12:34 am

Re: Hex Editing Discussion: Shaders? What do we know?

Postby JaoSming on Mon May 05, 2014 10:20 pm

2kx and Windows 8 have known issues, some people have solved it by updating Java, search the 2k14 help section for more info.

I dont even have time to work on my own projects, and this will require some research on how that texture actually works, so sorry, i can't help.


and please do not PM me after every reply. I check the forums, the PM on top is just annoying.
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 Discussion: Shaders? What do we know?

Postby Greatest N-G Maker on Tue May 06, 2014 11:28 am

Jao,sorry about earlier are you using s000.iff to change the crowd? :bowdown:
Greatest N-G Maker
 
Posts: 18
Joined: Sun May 04, 2014 12:34 am

Re: Hex Editing Discussion: Shaders? What do we know?

Postby JaoSming on Tue May 20, 2014 7:08 am

sorry for the late reply, I missed it

iirc most of my crowd edits used s569, but anything I did on it should apply to other files too
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 Modding

Who is online

Users browsing this forum: No registered users and 7 guests



cron