afdbb364ca
A twelve-agent pass over the parts of pack opening we did not understand, run against
the live client (CardsDLL slide proven, not assumed) plus static CardsDLL. Findings
below survived an adversarial verification round that corrected several of them; where
a verifier and a finder disagreed, the verifier won.
THE HEADLINE IS A NEGATIVE, and it deletes work rather than creating it. There is no
pack-inventory endpoint in FIFA 17 and there never was. Proven three independent ways:
the 48-entry UTAS route template array at 0x18021df80, a regex for "ut/" over the whole
PE, and the 125-row client action table at 0x1802caa20, which is the complete set of
requests the client can originate. "Serve the pack inventory" comes off the backlog.
The unclaimed-pack tile and My Packs are two fields on responses we already build.
Corrections to ENDPOINT_MAP.md, both freeze-risky as written:
* duplicateItemIdList is an array of OBJECTS (element parser 0x180138e10: itemId
0x16d, duplicateItemId 0xeb, itemLoans 0x16f, duplicateItemLoans 0xed), not the
int list documented at :1095 and :218. Control that this is not a misread:
dreamSquads 0xe9 in FutMoveCard genuinely is a bare int array and parses with no
inner object loop. We serve [], so this is a docs bug today and a live freeze the
moment somebody implements it from the map as written.
* FutDiscardCardServerResponse is {"items":[{"id":N}],"totalCredits":N}. There is no
top-level id. :968-971 is wrong twice over.
packContentInfo is DECORATIVE. It is read only into a store-tile view model, and
nothing compares the declared counts against the delivered itemList, so open_pack()
does not have to honour the distribution.
The reveal is entirely CLIENT-SIDE. Walkout, tiering, colours and ordering are
arithmetic over fields we already send. Genuine outstanding server work reduces to
three items: duplicates, quick-sell credit, unopenedPacks.
Perishable intel captured: the real FIFA 17 retail pack catalogue, 41 SKUs with Origin
offer ids, recovered from the client heap as a parsed copy of data/store/storecfg.xml.
It is in no file on disk, only in a running process.
futmem/ is a standalone read-only Rust crate for this kind of work (maps, find,
strings, read). Read-only by construction: it opens /proc/<pid>/mem with File::open
and there is no code path in it that can write to another process, because a live game
session depends on that. Its own [workspace] table keeps it out of the parent
workspace. Chunked scanning overlaps by pattern_len-1 so a match spanning a chunk
boundary is still found.
utas_server.py gains FUT_PORT/FUT_LOG so a throwaway instance can be started without
bouncing the one the live client is using. Defaults unchanged (8099, /tmp/utas_server.log).
Noted for the record: this edit came from a research agent that had been told not to
touch server code. It is benign and useful, but it was out of scope.
Not committed: the doc proposes ENDPOINT_MAP.md changes as pasteable text rather than
applying them, and every proposed server change defaults off per the house rule.
Nothing in this commit changes a response the client sees.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
69 lines
2.7 KiB
Python
69 lines
2.7 KiB
Python
"""DIMENSION 2 batch 9: the pile enum, the discard request class, and the
|
|
duplicate-field reader.
|
|
|
|
HYPOTHESES
|
|
H1 FUN_180142650 is the pile string->enum for atom 0x226 in the MoveCard
|
|
verdict record. Its table names every destination a move can target, which
|
|
is exactly the value 'send to transfer list' has to carry.
|
|
H2 The .rdata block 0x180220470-0x180220780 holds both the FutDiscardCard
|
|
request vtable and the response vtable; a slot on the request side is the
|
|
completion handler that reads totalCredits.
|
|
H3 DAT_1802def18's concrete class is installed by a caller of FUN_180039b40 /
|
|
FUN_180039ba0; its vtable slot +0x18 is GetCardDuplicate, the only reader of
|
|
the card field that duplicateItemIdList writes.
|
|
|
|
CONTROL: FutSquadSaveServerResponse -> 0x180171a60.
|
|
"""
|
|
import traceback, os
|
|
|
|
OUT = "/tmp/claude-1000/-home-alex-Documents-OpenFUT/8e521ca1-ca3e-4138-bb96-df1744dd1d30/scratchpad/packres"
|
|
|
|
try:
|
|
print("CONTROL FutSquadSaveServerResponse ->",
|
|
[hex(a) for a, v, e in class_deser("FutSquadSaveServerResponse")])
|
|
|
|
print("=" * 78)
|
|
print("SECTION 1 -- pile enum FUN_180142650")
|
|
s = dec(0x180142650)
|
|
print(s)
|
|
# try to find the table it walks
|
|
for ln in s.splitlines():
|
|
if "PTR_" in ln or "DAT_" in ln:
|
|
print(" >>", ln.strip())
|
|
|
|
print("=" * 78)
|
|
print("SECTION 2 -- .rdata 0x180220470-0x180220790")
|
|
for va in range(0x180220470, 0x180220790, 8):
|
|
q = qword(va)
|
|
note = ""
|
|
if 0x1801E5000 <= q <= 0x180290000:
|
|
t = rd_str(q, 60)
|
|
if t and all(0x20 <= ord(c) < 0x7F for c in t):
|
|
note = "STR %r" % t
|
|
if not note and 0x180001000 <= q < 0x1801E5000:
|
|
f = fm.getFunctionAt(addr(q))
|
|
note = "FUNC %s" % (f.getName() if f else "(mid)")
|
|
print(" %#x : %#018x %s" % (va, q, note))
|
|
|
|
print("=" * 78)
|
|
print("SECTION 3 -- discard request/response class functions")
|
|
for lbl, va in (("0x180127160", 0x180127160), ("0x180127630", 0x180127630),
|
|
("0x180126f00 dtor", 0x180126F00)):
|
|
print("---- %s ----" % lbl)
|
|
print(dec(va))
|
|
|
|
print("=" * 78)
|
|
print("SECTION 4 -- who installs DAT_1802def18")
|
|
for setter in (0x180039B40, 0x180039BA0):
|
|
print(" setter %#x:" % setter)
|
|
print(dec(setter))
|
|
for r in xrefs_to(setter):
|
|
print(" caller %#x %s %s %#x" % (r[0], r[1], r[2], r[3]))
|
|
for e in sorted({r[3] for r in xrefs_to(setter) if r[3]}):
|
|
s = dec(e)
|
|
print(" ---- caller %#x len=%d ----" % (e, len(s)))
|
|
print(s if len(s) < 5000 else s[:5000] + "\n...TRUNCATED len=%d" % len(s))
|
|
|
|
except Exception:
|
|
traceback.print_exc()
|