"Mask" Value Within .SCNE, .TXTR, etc. Files

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

"Mask" Value Within .SCNE, .TXTR, etc. Files

Postby ksmiz on Sun May 26, 2019 7:34 am

I always wondered what the "Mask" value was that I saw inside files like .SCNE and .TXTR

After looking through many of these files I noticed that number was always within a certain range and using cheat engine a lot I just kinda had a hunch that these were just decimal values but usually turning them to hex would look like FFFFFF or FFFFFFFF

So after a few more examples I concluded these are color values that sometimes have alpha values too

"Mask":
4294967295 -> FFFFFFFF
Image
16777215 -> FFFFFF (no alpha)
Image

Some examples of where there are actual colors:
Cavs Home Font Color .txtr
Image
Atl Secondary Font Color .txtr
Image
Memphis Away Font Color .txtr
Image

I don't know how much of an impact this value makes and not really sure how to use it or when to use it but I thought this information would be helpful.

The Min and Max values seen above do matter a lot however. But these are also just color values sometimes with alpha values.
With these the colors are (R, G, B, A) and the 0.0 to 1.0 means 0 to 255 just like a hex value of 00 to FF
you don't have to stop at 1.0 though since putting them at 4.0 for example can make the led lights on the shot clock or backboard really bright however this doesn't often look great but you can try it
User avatar
ksmiz
 
Posts: 655
Joined: Mon Mar 13, 2017 4:51 am

Re: "Mask" Value Within .SCNE, .TXTR, etc. Files

Postby RobDavis on Mon May 27, 2019 2:41 am

Thanks took this info and fixed the grey sock issue I had with my team accessories. Changed min to make it transparent then changed the color of the texture to make it all black. Looks like 2k used like a matte black color code. Wish there was a away to use the actual accessory colors I set for the socks. That goes out the window once you change make a team a user edited team in cheat engine.

Image

Image
Producer | YouTuber
Creator of Fictional College Hoops PC Mod NBA 2K19/20/21
Sub to My Youtube Channel Below
YouTube


Fictional College Hoops 2K23 Mod
Fictional College Hoops 2K21 Mod
Fictional College Hoops 2K20 Mod
Fictional College Hoops 2K19 Mod
User avatar
RobDavis
 
Posts: 839
Joined: Fri Sep 21, 2007 4:49 am
Location: Detroit/Chicago

Re: "Mask" Value Within .SCNE, .TXTR, etc. Files

Postby SGee on Sat Jan 18, 2020 4:09 am

Thanks for the clarification on mask and min/max. I'm trying to resize a texture rn and thought at first these min max values are mapping coordinates in space, lately came to the conclusion that they must have something to do with the shading process but wasn't sure.
User avatar
SGee
 
Posts: 17
Joined: Thu Jan 09, 2020 8:48 am
Location: Germany


Return to NBA 2K19 Modding

Who is online

Users browsing this forum: No registered users and 3 guests