Leftos wrote:http://forums.nba-live.com/viewtopic.php?f=149&t=88245
A lot of information to help you there. In short, Cheat Engine using the Player ID address will let you get the Player ID of any player as soon as you get them in the Edit Player screen.
Leftos wrote:Player Entry Length
Player entries, for whatever reason (to save size, most probably), aren't byte-aligned, which will be a bitch for people looking to hex-edit, as they'll have to take this into account. You can't just type byte values and be done with it, you'll have to edit the binary data starting at a certain point inside a byte and ending at another point at another byte.
However, with a hint from hyperballer21 about the player order in the roster, I've managed to find that player entries have a consistent size of 477 bytes and 5 bits. Just 3 damn bits away from being byte-aligned. Wouldn't imagine 2K would make it easy for us to hex-edit... But with this information in mind, we can break down the player table portion of the roster down in player entries, and try to crack more information in them.
<?php
$data = file_get_contents('binary_data.txt');
// The hex from the roster already converted to binary base.
// I start in offset 40271 (500 before the a know data from Holiday) and 15500 bytes after that.
for ($cont_b = 1; $cont_b <= 256; $cont_b++) {
$could = 0;
for ($cont_a = 0;$cont_a < 1000;$cont_a++) {
$datum = substr($data,$cont_a);
for ($i=0;$i<30;$i++) {
$address[$i] = substr($datum, 3821*$i,$cont_b);
}
//Array with locked id players in the range 0 - 30.
$locked_array = array(0,4,25,26);
$unlocked = $address[1];
// If the id is from a locked players, check that the value is the same as the other unlocked player. If not, check that is different. $could is only a flag var.
foreach ($address as $id => $valor) {
if (!in_array($id,$locked_array)) {
if ($valor == $unlocked) {
$could = $could;
} else {
$could++;
}
} else {
if ($valor != $unlocked) {
$could = $could;
} else {
$could++;
}
}
}
// If the tool found something, show the lenght of the code, the relative address and the values
if ($could == 0) {
echo $cont_b;
echo '<br />';
echo $cont_a;
echo '<br />';
foreach ($address as $add) {
echo $add.'<br />';
}
}
$could = 0;
}
}
Leftos wrote:Hmmm, interesting. Are we sure that ID doesn't affect anything else player-wise? Well, even if it does, we can just make a roster that has all the players unlocked for Blacktop and be done with it.
Return to NBA 2K13 Tutorials & FAQs
Users browsing this forum: No registered users and 1 guest