Team Stats Hex Editing Information

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

Team Stats Hex Editing Information

Postby Leftos on Sun Jan 08, 2012 1:17 am

I've started looking up the hex values in the FXG (Association) files in order to be able to correct the Team Stats after each game, in a semi-automatic way. The way the tool will work is that before the match you'll load up the Association save file, select the teams that are playing, and let it save the Team Stats. After the game, you re-load your Association file in the tool, give it the Team Box Scores for both teams, and it adds them to the previous Team Stats, replacing the corrupted ones that the game saved.

It's going to need some work, so be patient. I made this thread to announce that I'm working on it since this bug's pestering me like hell, ruining my Association. It won't be automatic, you'll have to manually enter the box scores (team ones, not from individual players) for the games you play, but it's better than being called the league's best with 95RPG and 82APG.

If anyone with Hex Editing experience wants to help, feel free.

The values are as usual in Little-Endian, and are in this order:
===============================
uint8 (single byte)
Wins
Losses
uint16 (double byte)
M
PF
PA
Hex 00 00
FGM
FGA
3PM
3PA
FTM
FTA
OREB
DREB
STL
TO
BLK
AST
FOUL
Unknown two-byte value (any ideas?)
Hex 01 00
======================================================

Whatever you don't see in the above list is calculated automatically.

Each team's offsets, starting with their Wins, in the order they appear in the file:
Order Name Hex Address Dec Address
0 Nuggets 317254 3240532
1 Trail Blazers 31727C 3240572
2 Pacers 3172A4 3240612
3 Pistons 3172CC 3240652
4 Heat 3172F4 3240692
5 Knicks 31731C 3240732
6 Grizzlies 317344 3240772
7 Clippers 31736C 3240812
8 Warriors 317394 3240852
9 Bucks 3173BC 3240892
10 Spurs 3173E4 3240932
11 Cavaliers 31740C 3240972
12 Celtics 317434 3241012
13 Kings 31745C 3241052
14 Suns 317484 3241092
15 Hornets 3174AC 3241132
16 Hawks 3174D4 3241172
17 Timberwolves 3174FC 3241212
18 Nets 317524 3241252
19 Wizards 31754C 3241292
20 76ers 317574 3241332
21 Raptors 31759C 3241372
22 Bobcats 3175C4 3241412
23 Magic 3175EC 3241452
24 Thunder 317614 3241492
25 Lakers 31763C 3241532
26 Rockets 317664 3241572
27 Jazz 31768C 3241612
28 Bulls 3176B4 3241652
29 Mavericks 3176DC 3241692
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

Return to NBA 2K12 Modding

Who is online

Users browsing this forum: No registered users and 2 guests