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

NLSC Forum

Talk about NBA 2K10 here.
Post a reply

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 2:21 am

Vl@d Zola Jr. wrote:Hmmm... I though, that paint areas are also represented as textures... There are many equal 4-integer (128-bit) sequence in the file, that means, all the pixels of that texture have the same colors.

PS: Remember, I can't use IFF-tool on my Win7 x64 :(



Hmmm.. so my guess that the 3 point line and the in + outbound area are vectors is wrong ?... i thought so because when you look to the western union forum thread and you change the numbers it comes out just like a vector subject which gets "opened" by deliting some of the points which keeps the vector object closed/in a whole. I thought that the entire texture part also the 16 x 16 pixel file which you can view with the iff editor (it's just a blank object) is sperated from the actual inbound & outbound area. ah wtf am i talking about haha i have no clue you

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 2:33 am

Nope, bro, maybe I'm wrong. I'm just guessing, because I can't view the textures.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 2:40 am

Vl@d Zola Jr. wrote:Nope, bro, maybe I'm wrong. I'm just guessing, because I can't view the textures.


i posted our concerns in another forum.

one guy told me to look for maya iff format

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 2:44 am

its not maya, that is just what pops up if you type iff into google

its a container file that contains models and textures, not a maya object. trust me on that, too many memories of trying to figure that out last year.

Vlad, have you had luck with the 3D editor?\

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 3:30 am

Just a question, i want to mod 2k9, and i'm wondering if these methods would work in 2k9?

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 10:48 am

okay guys call me crazy... but i looked up the credits in the nba 2k10 extra section and wrote down the name of that guy "jason dorie".. gotta homepage actually haha.. he was the tool enginer for 2k writing codes. i'm gonna ask this guy for help haha+

edit : wrote down some other names. i will google their a**es and annoy the shit out of them till we get answers haha

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 11:07 am

dolemitemoffo wrote:edit : wrote down some other names. i will google their a**es and annoy the shit out of them till we get answers haha


don't do that, we dont need that kind of reputation here

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 5:10 pm

JaoSming wrote:
dolemitemoffo wrote:edit : wrote down some other names. i will google their a**es and annoy the shit out of them till we get answers haha


don't do that, we dont need that kind of reputation here


uuuuh come ON dude, this is how you do it if you want to know something.. you ask ! haha of course i explained myself in an overdone way

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 5:26 pm

You can ask them but don't annoy them and ask repeatedly if they refuse the first time.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Fri May 21, 2010 7:39 pm

shadowgrin wrote:You can ask them but don't annoy them and ask repeatedly if they refuse the first time.



i just said i expressed myself overdone, of course i won't annoy them and trust me, i'm always polite

Edit : so i just wrote an email to this guy asking him if he can help us out on and posted our concerns
also in another forum for programming.

i spent a couple of hours yesterday playing around with the hex code with no result at all,
if anybody found something interesting let me know.
but overall i think we're on a good path


and @ jao, i know this doesn't belong in this thread since i opened another one for it.
but in the credit section i've read about "vc audio", Vc audio was also used in 2k9 right ?
The method to chop the beginning and ending of a song !?.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 1:11 am

I thought it over, and suppose, you are right about plain-colored vectors, at least, about the lines.
I also recommend you to delete all the textures from some floor iff or at least make them very small and black - after doing that it will be much easier to define the things, we all are looking for.

Jao, I'll take a look onto 3D-editor after releasing REDitor 1.0 .

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 1:25 am

Vl@d Zola Jr. wrote:I thought it over, and suppose, you are right about plain-colored vectors, at least, about the lines.
I also recommend you to delete all the textures from some floor iff or at least make them very small and black - after doing that it will be much easier to define the things, we all are looking for.

Jao, I'll take a look onto 3D-editor after releasing REDitor 1.0 .


Vlad,

i have some good news,

go to this homepage http://www.jasondorie.com/goinnovate.html

he's the guy who worked for 2k. when you're on that hompeage click : "image libary"

it's a zip download, and guess what... it's a DXTC compressor.
also there are some information about vectors. i didn't understand the whole thing but i'm sure you will.

i wrote him an email and asked him if he can help us out with the information on the inbound outbound etc.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 7:15 pm

Vl@d Zola Jr. wrote:I thought it over, and suppose, you are right about plain-colored vectors, at least, about the lines.
I also recommend you to delete all the textures from some floor iff or at least make them very small and black - after doing that it will be much easier to define the things, we all are looking for.

Jao, I'll take a look onto 3D-editor after releasing REDitor 1.0 .


Vlad,

Like you asked me to, i deleted the textures with the iff editor, i couldn't change the file size though, but i was able to deleted em all and pull the blank png's back in the iff file. so after testing the court with no textures, the court was pitch black, also those areas we want to edit. so i might was wrong about the vector thing, the empty texture fields def. have effect on the areas we try to edit.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 7:54 pm

Interesting discovery.

So, you should take a closer look on the textures, I suppose:
1. Check all the tetures for small plain-colored.
2. Try to swap some colors for completely others on all the textures (the easiest way is to just invert colors on each texture).
3. If step 2 leads to color changes in "needed areas", post this here. We will discuss our further steps.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 9:23 pm

OH GOOD GOD how stupid is this hahaha BREAKTHROUGH LADIES AND GENTLEMEN... thanks vlad because of your advice we made a giant step. i'm such a fool i haven't tried that before

So now i will document my steps via screenshots :

Step 1.

Like you asked me to, i inverted all colors of the texture in the IFF Editor.
It came out like this. AND DON'T GET CONFUSED BE CAUSE OF THE GREEN DOTS !!! there is an empty texture i have filled with color before and it overlayed half of the court with that color, so this time i just added green dots with space in between to see which areas are effects.

Image

Step 2. Now Vlad, i know IFF Editor doesn't work on your computer so i will tell what's inside the IFF files.
There are two textures. 0 and 9. Both are white !!!! And this is the important and interesting thing about it.
0 Has a small rectangular size. 9 is a little bit bigger. So in Step 2 i changed 0 and just made it red.
See what happened ! Now i don't know why the 3 Point line and the outbount area line isn't in the same
Red as the inbound and the mid court line.

Image

Step 3. I've done the same with the texture "9" and made it green. And seeee what happened haha.

Image

So Vlad, remember i wrote about DTXC ?? and the link i pasted here !?. The way how he described that method matches to what happened here. We have 2 white texture blocks and by a 3rd method they get a color overlay

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 9:34 pm

Not all courts' structure is the same, so you might be able to do all this in the post above only with that particular court.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 9:40 pm

dolemitemoffo,I really appreaciate your job.
As I know, someone has already knowed these things in this forum.I forget who he is.
When I try to make the old sixers's court, I found it in one thread in this forum.
What I want to say is, not all the courts are like lakers's court. Some still have a texture like a white circle.
But some are not. Also, some can't be changed the color just in this way.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 9:43 pm

I hope that someone can figure out the code to change the color like the logo color as vlad did.
In this way, I mean, we can change it without using PS.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 10:28 pm

yea an FYI mofo, the white wood texture is the texture that applies to the lane and out of bounds area, it's colored by the part we are looking for

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 10:29 pm

You probably define the structure your talked about by deleting/chaning some of the numbers.

look up the great western forum threat and you know what i mean.

i think there are enough courts in game to use them as a template. the only problem is the color that comes with the texture
which is in the code. you can see it if you take a look at the 3 point line of the lakers court. underneath, it's red and on top of
the red goes the purple. so the best you can do is taking a court with white lines. i tried it with the jordan court, and this structure
i can tell so far is not good because the black part can't be changed, it's different from the regular nba teams courts. in the "0"
texture i've talked about is white floor, on top of the white floor goes black. and it doesn't matter how bad you change this white
floor, it will appear to be black in game.

Here is also some information i copied out of the file you can download on Jason Dories homepage. It tells about DXTC which is in the .iff Files.

So i think we're close to a solution

"The guts of the DXTC/S3TC compressor is in DXTCGen.cpp - That's the class
that does the color selection given a block of pixels. The DXTCImage.cpp
class builds a DXTC texture from a source image, using the DXTCGen class to
map individual blocks, and check error amounts. (The two block encoding
routines return the amount of error introduced in the block, and the image
encoder attempts a 3 color and a four color block to see which is better."

"The DXTCGen encoder has been updated to use MMX instructions to improve
performance. The original code is preserved in nearby comment blocks.
The code is written to be readable, so it may not be as fast as some other
implementations, and it also uses an almost brute force algorithm to encode
the color blocks. This means excellent quality, but it sacrifices speed.
You can affect the speed by either removing the brute force search or by
reducing the radius through which this search happens. The variable
"ScanRange" at the top of DXTCGen.cpp controls this."

Maybe this is useful, i know it's not exactly what we're looking for but at least
its some good information about the coloring
Last edited by dolemitemoffo on Sat May 22, 2010 10:41 pm, edited 1 time in total.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 10:36 pm

dolemitemoffo, nicely done, bro! :) And I'm always ready to help. :)

So, the only thing left to be done is to write and publish an exact tutorial. :)

It is all really cool, actually! :)

==========================================

I hope that someone can figure out the code to change the color like the logo color as vlad did.
In this way, I mean, we can change it without using PS.

To do the same with floors, we should
1. Make the floor file the same format as those f8XXX.iff . I don't know, whether it is about those textures (their colors and alpha), found by dolemitemoffo, or there are some extra bytes inside the file. This should be checked. I suppose, dolemitemoffo can do this also. :) If he is unsuccessful at this point, I'll try to help in a month, after my exams.
2. Change some bytes in Roster files, so a team uses its colors as floor colors. I'll try to find this out in a month.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sat May 22, 2010 10:42 pm

We can define those things, which represent floor structure, by removing the textures to reduce file-size or to see, where they are placed, and after that comparing other bytes of some bunch of files.

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sun May 23, 2010 1:36 am

I've created two files. first, the lakers court with the 0 and 9 textures and the second one with the "0" and "9" texture from iff editor with no color, so i erased the white textures. the size of the squares stayed the same.

So i opened hex edit and copied parts of the untouched lakers court i work with and pasted them in the one with missing textures and kept doing it still i had a "no find".

this game out :

here is where the differences is about to start (a few lines above the screenshot) :

Untouched with 0 and 9 texture :

Image


changes with out 0 and 9 texture :

Image


from that point to the end of the file the structure changed

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sun May 23, 2010 6:11 am

Okay so like Vlad told me, i checked the F800_lo.iff file. I started with that file.

I don't know for what this file is good for, because it only contains a few textures but those are court textures which are like a template in every court. so i looked up the file via hex editor and tadaaa... at least i could find the following lines :

(remember the dashes are dots)

f-l-o-o-r-_-t-h-r-e-e-_-p-o-i-n-t-1

f-l-o-o-r-_-t-h-r-e-e-_-p-o-i-n-t-2

c-e-n-t-e-r-l-o-g-o---l-o-g-o-1

n-b-a-_-l-o-g-o-1

a-r-e-n-a-_-n-a-m-e-1

a-r-e-n-a-_-n-a-m-e-2

l-a-n-e-1

l-a-n-e-2

l-a-n-e-4

l-a-n-e-5

l-a-n-e-6

l-a-n-e-7

l-a-n-e-3

l-a-n-e-8

c-e-n-t-e-r-_-l-i-n-e-1

c-e-n-t-e-r-_-l-i-n-e-2

o-u-t-s-i-d-e-_-d-a-s-h-1

b-e-n-c-h-_-d-a-s-h-1

e-n-d-_-d-a-s-h-1

l-a-n-e-_-d-a-s-h-e-s-1-3

l-a-n-e-_-d-a-s-h-e-s-1-4

l-a-n-e-_-d-a-s-h-e-s-1-5

l-a-n-e-_-d-a-s-h-e-s-1-6

b-l-o-c-k-_-c-i-r-c-l-e-1-5

b-l-o-c-k-_-c-i-r-c-l-e-1-4

f-o-u-l-_-c-i-r-c-l-e-1-5

f-o-u-l-_-c-i-r-c-l-e-1-4

l-a-n-e-_-l-i-n-e-s-1-5

l-a-n-e-_-l-i-n-e-s-1-4

t-h-r-e-e-_-p-o-i-n-t-_-l-i-n-e-1-4

t-h-r-e-e-_-p-o-i-n-t-_-l-i-n-e-1-3

c-e-n-t-e-r-_-c-i-r-c-l-e-_-s-o-l-i-d-1-1

c-e-n-t-e-r-_-l-o-g-o-1

e-n-d-_-l-i-n-e-s-1

c-e-n-t-e-r-_-l-i-n-e-1-3

(there are a couple of more after the last one i wrote down)

and after a while ..here we go !

a-l-p-h-a-1

now, after alpha the entire row i wrote down reapeats BUT with "ff ff ff ff ff"'s connected before the word.

so i think we're a step closer now !

Re: Court Colors Hex Editor Help. Inbound, 3 Point Line etc.

Sun May 23, 2010 6:52 am

the 800s are the created team/generic practice courts for NBA teams, very good court to look at since it gets recolored for the team that uses it
Post a reply