8cba70dc90
- Add 8 files present in docker/fifa17-python/tools but missing from the top-level tree: fut_accounts.py + 7 test_*.py contracts (all committed in the server's docker tree; byte-identical to the running image). - Preserve newer responder work already matching the running container: utas_server.py (offlineSeason), lsx_responder_v2.py (OPENFUT_BIND), blaze_responder_v3b.py, autopatch.py, pow_server.py, fut_store.py, test_fut_contract.py, fifa17-hook-m1.sh. - Add 30 newer ghidra_queries (draft purchase/state, SBC 9-26, runtime registries). Local tree is now a strict superset of B with all shared files byte-identical.
22 lines
639 B
Python
22 lines
639 B
Python
"""Resolve draft-state atom IDs to their authoritative wire strings."""
|
|
|
|
ATOM_TABLE = 0x1802D2760
|
|
|
|
def atom_name(index):
|
|
pointer = qword(ATOM_TABLE + index * 8)
|
|
return rd_str(pointer, 96)
|
|
|
|
groups = {
|
|
"squadState values": (0x1AC, 0x6A, 0x9C, 0x12C, 0x169, 0x225, 0x23E, 0x277, 0x278),
|
|
"stateParam1 values": (0x169, 0x1AA, 0x22D),
|
|
"entranceCriteria keys": (0x96, 0xDF, 0x241),
|
|
"top-level keys": (0x108, 0x13B, 0x293, 0x2CD, 0x2D5, 0x2EE, 0x2EF),
|
|
}
|
|
|
|
for group, indices in groups.items():
|
|
print("\n===", group, "===")
|
|
for index in indices:
|
|
print(hex(index), repr(atom_name(index)))
|
|
|
|
print("QUERY_DONE")
|