Bin Editing Tutorial

From NLSC Wiki
Jump to: navigation, search

This tutorial details the process of editing .bin files in NBA Live 2000 and NBA Live 2001, for use in court patching. It was originally contributed by Thuan Vuu.

Basics

Here are the basics of the crt.bin editing:

Download Hex Workshop or a similar Hex Editor. Next, when you open up the file in Hex Workshop you'll see each section in text. Check the bottom of this tutorial to see what each section represents on the court.

'xxxxxhrd' is for when 'textured key' is on and 'xxxxxsft' is for when it is off. I write xxxxx because it is sometimes different, just check out San Antonio's bin file. By the way, San Antonio's bin file is the easiest to change, because it has a separate section for the key and a separate section for the area around the court.

So back to the editing, under each heading there's a bunch of junk that I don't know about and then there's another bunch of 00s and 01s and 02s (hex form) and then there's another piece of junk that I also don't know what it does (haven't experimented). Immediately following that there are repeating sets of hex values that is the part you want to change.

If you're confused, then take a look at each section, and you'll see that at the end, there's a bunch of hex values that are repeating over and over, this is the section you want to change. The parts you want to change would be 3 sets of hex values followed by "FF".

For example:

60E528C3 00000000 00003CC5 00000000 214DC4FF 00000000 0000803B 0000803B
60E528C3 00000000 00003CC5 00000000 214DC4FF 00000000 0000803B 0000803B
60E528C3 00000000 00003CC5 00000000 214DC4FF 00000000 0000803B 0000803B
60E528C3 00000000 00003CC5 00000000 214DC4FF 00000000 0000803B 0000803B
60E528C3 00000000 00003CC5 00000000 214DC4FF 00000000 0000803B 0000803B

In this example the blocks you'd want to change would be the "214DC4FF".

Now, what do you do to these hex values?

Here's the BIG tip, exclude the "FF" and you'll have 3 hex values (21 4D C4). Simply, these hex values stand for the RGB values, the first for the BLUE value (in hex form, "21"), the second for the GREEN value (in hex form, "4D"), and the 3rd for the RED value (in hex form, "C4").

21 (hex form) = 33 (decimal form) 4D (hex form) = 77 (decimal form) C4 (hex form) = 196 (decimal form)

Use the "Base Converter" under "Tools" in Hex Workshop to convert the decimal forms to the hex forms.

For each section of the court you'll have to edit more than one block of hex values and all I can tell you about the sections is that you'll need to take a look at the hex blocks PRECEDING the "colour" section. For the key/surrounding area, the important ones are 2 blocks before (excluding the 00000000s).

In the above example the "60E528C3" is for the key area, so you'll change each "colour" block coming after each "60E528C3" block. For the court lines, the important hex values are one block before the colour block. In the above example, "00003CC5" would be for a specific line, like the centre line.

Court Sections

Here's a list of some of the blocks/sections I've discovered (some of these might not be the same in different bins):

For all the blocks

******44 ******45 ******43
Left half of the court

******C4 ******C5 ******C3
Right half of the court

The Floor

blnn4hrd, blnn4sft
1058FD** 60E528**
Main key area

0000C8** 000016** 5C8F87** 48E100** 000000**
The surrounding floor. The circle at the top of the key (free throw line) is within the **crt.fsh file, not the **crt.bin file.

The Floor Lines

ecnn7fla
Colour of the little lines on the side of the key

ehnn7flb, ghnn7flb
Colour of the 3pt lines and lines around court (sidelines, baseline), and the MAIN key lines (all the other key lines are following).

I've yet to discover which blocks stand for what!

ednn7fla, gcnn7fla
EE7C3F** E3A51B**
Centre line

0000B0** 0000B2** 000098** 000096**
Lines protruding from the side near the centre line

426010** 3FB50F** 175904** 14AE03** 3B5F20** 2F5D1C** 73682C** 71BD2B** 355E20**
Little lines on the side of the key

39343A** 3F353A** 3F353C** 46363C**
Little line on the baseline

1BAF0A** F85309**
Little line within the key

Links