You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Meaning the data is stored incorrectly and the in-game BFHQ will show the reversed data. To fix this, the mismatch should be addressed when processing snapshots. Note that this will only fix future data, existing data will need to be migrated.
foreach ($player->weaponDataas$object) {
// Claymore (12/13) and hand grenade (13/12) are swapped in ASP/database compared to the Python constantsswitch ($object->id) {
case12:
$weaponId = 13;
break;
case13:
$weaponId = 12;
break;
default:
$weaponId = $object->id;
}
// ...
}
The text was updated successfully, but these errors were encountered:
In the Python world, weapon type 12 refers to claymores while 13 represents handgrenades.
asp/src/python/bf2/stats/constants.py
Lines 51 to 52 in df86f71
In the database, however, the meaning is reversed.
asp/src/ASP/system/sql/data.sql
Lines 219 to 220 in df86f71
Yet the mismatch is not resolved when processing snaphots, the weapon ids are used as-is.
asp/src/ASP/system/framework/Snapshot.php
Lines 738 to 746 in df86f71
Meaning the data is stored incorrectly and the in-game BFHQ will show the reversed data. To fix this, the mismatch should be addressed when processing snapshots. Note that this will only fix future data, existing data will need to be migrated.
The text was updated successfully, but these errors were encountered: