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>
108 lines
4.2 KiB
Python
108 lines
4.2 KiB
Python
"""D4 Q1c/Q2/Q3: (a) map FutDataManagerImpl vtable slots to the settings gate bytes so
|
|
we can tell whether byte 0x1fd45 (packOpeningAnimationEnabled) has an accessor at all,
|
|
and (b) open the reveal path via the USE_ANIMATION_STYLE / gmLoadFUTPackOpenSublevel /
|
|
CREATE_PACK_STATUS strings.
|
|
|
|
HYPOTHESIS: FutDataManagerImpl publishes one bool accessor per settings gate byte in a
|
|
contiguous vtable band; the publisher FUN_18006cc60 uses slots 0x270..0x2f0. If a slot
|
|
returns [this+0x1fd45] then packOpeningAnimationEnabled is readable, and its call sites
|
|
tell us what it gates.
|
|
|
|
CONTROLS: slot +0x2b0 MUST decompile to a read of 0x1fd3a (IS_FRIENDLY_SEASON_ENABLED)
|
|
and slot +0x2c8 MUST read 0x1fd3d (IS_DRAFT_MODE_ENABLED). Those two are already proven
|
|
by FUN_18006cc60's string arguments. If the vtable I pick does not reproduce them, I
|
|
have the wrong vtable and every other slot reading is worthless.
|
|
"""
|
|
import traceback
|
|
|
|
OUT = "/tmp/claude-1000/-home-alex-Documents-OpenFUT/8e521ca1-ca3e-4138-bb96-df1744dd1d30/scratchpad/packres/"
|
|
BUF = []
|
|
|
|
|
|
def p(*a):
|
|
s = " ".join(str(x) for x in a)
|
|
print(s)
|
|
BUF.append(s)
|
|
|
|
|
|
try:
|
|
# ---- ctor, to find the vtable ----
|
|
ct = dec(0x18010CDC0, 300)
|
|
p("=== ctor FUN_18010cdc0 len=%d ; first 1200 chars ===" % len(ct))
|
|
p(ct[:1200])
|
|
with open(OUT + "d4_fdm_ctor.txt", "w") as f:
|
|
f.write(ct)
|
|
|
|
# candidate vtables: any .rdata address referenced by the ctor whose first
|
|
# two qwords are functions
|
|
cands = []
|
|
f0 = func(0x18010CDC0)
|
|
for ad in f0.getBody().getAddresses(True):
|
|
ins = listing.getInstructionAt(ad)
|
|
if ins is None:
|
|
continue
|
|
for r in ins.getReferencesFrom():
|
|
t = int(r.getToAddress().getOffset())
|
|
if 0x1801E5000 <= t <= 0x1802891FF:
|
|
try:
|
|
v0, v1 = qword(t), qword(t + 8)
|
|
except Exception:
|
|
continue
|
|
if fm.getFunctionAt(addr(v0)) and fm.getFunctionAt(addr(v1)):
|
|
if t not in cands:
|
|
cands.append(t)
|
|
p("=== vtable candidates from ctor: %s ===" % [hex(c) for c in cands])
|
|
|
|
for vt in cands:
|
|
try:
|
|
s2b0 = qword(vt + 0x2B0)
|
|
s2c8 = qword(vt + 0x2C8)
|
|
except Exception:
|
|
continue
|
|
if not (fm.getFunctionAt(addr(s2b0)) and fm.getFunctionAt(addr(s2c8))):
|
|
continue
|
|
d2b0 = dec(s2b0, 120)
|
|
d2c8 = dec(s2c8, 120)
|
|
ok = ("1fd3a" in d2b0.lower()) and ("1fd3d" in d2c8.lower())
|
|
p("--- vtable %#x : slot2b0=%#x slot2c8=%#x CONTROL_OK=%s ---" % (vt, s2b0, s2c8, ok))
|
|
p(" slot 0x2b0 body: %s" % d2b0.replace("\n", " ")[:300])
|
|
p(" slot 0x2c8 body: %s" % d2c8.replace("\n", " ")[:300])
|
|
if not ok:
|
|
continue
|
|
p("=== CONTROL PASSED for vtable %#x ; dumping slots 0x250..0x320 ===" % vt)
|
|
for off in range(0x250, 0x328, 8):
|
|
try:
|
|
t = qword(vt + off)
|
|
except Exception:
|
|
break
|
|
fn = fm.getFunctionAt(addr(t))
|
|
if fn is None:
|
|
p(" +%#05x %#x (not a function)" % (off, t))
|
|
continue
|
|
body = dec(t, 120).replace("\n", " ")
|
|
# squeeze
|
|
body = " ".join(body.split())
|
|
p(" +%#05x %#x %s :: %s" % (off, t, fn.getName(), body[:260]))
|
|
|
|
# ---- reveal-path strings ----
|
|
for sname, sva in (("USE_ANIMATION_STYLE", 0x1801FD580),
|
|
("gmLoadFUTPackOpenSublevel", 0x1801EE860),
|
|
("gmUnloadFUTPackOpenAnimation", 0x180208828),
|
|
("CREATE_PACK_STATUS", 0x180205F28),
|
|
("PACK_CREATE_UNOPENED_PACK", 0x1801EC1B8),
|
|
("NUM_RARES_IN_PACK", 0x1801EBF90)):
|
|
xs = xrefs_to(sva)
|
|
p("=== xrefs to %s (%#x): %d ===" % (sname, sva, len(xs)))
|
|
for frm, typ, fn, ent in xs:
|
|
p(" from %#x %s in %s @ %#x" % (frm, typ, fn, ent))
|
|
|
|
except Exception:
|
|
traceback.print_exc()
|
|
finally:
|
|
try:
|
|
with open(OUT + "d4_vtable_and_xrefs.txt", "w") as f:
|
|
f.write("\n".join(BUF))
|
|
print("WROTE d4_vtable_and_xrefs.txt")
|
|
except Exception:
|
|
traceback.print_exc()
|