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>
67 lines
2.5 KiB
Python
67 lines
2.5 KiB
Python
"""D4 final: (1) who owns FUN_1800aa440 (the pack-open summary handler) and what the
|
|
0x33 / 0x34 state constants it pushes are; (2) the other seven indirect call sites
|
|
through vtable slot +0x2e0, to tell real packOpeningAnimationEnabled reads from
|
|
same-offset reads on unrelated objects; (3) FUN_1800d8330, the cardsubtypeid ->
|
|
cardtype map that decides item+0x4c (the ==1 player filter in the summary walk);
|
|
(4) the init constant at 0x1801f66a0 that seeds item+0x50/+0x54.
|
|
|
|
CONTROL for (2): FUN_1800aa440 is already PROVEN to call the FutDataManagerImpl
|
|
accessor at +0x2e0, because its object plVar6 comes from FUN_180009c80 (the same
|
|
getter FUN_18006cc60 uses for the IS_* publisher). Any classification rule I apply to
|
|
the other seven must classify FUN_1800aa440 as a true positive.
|
|
"""
|
|
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:
|
|
p("=== xrefs to FUN_1800aa440 ===")
|
|
for x in xrefs_to(0x1800AA440):
|
|
p(" %s" % (x,))
|
|
p("=== xrefs to FUN_18001eb90 (gmLoadFUTPackOpenSublevel owner) ===")
|
|
for x in xrefs_to(0x18001EB90):
|
|
p(" %s" % (x,))
|
|
|
|
p("\n=== init constant at 0x1801f66a0 ===")
|
|
p(" qword %#x bytes %s" % (qword(0x1801F66A0), read_bytes(0x1801F66A0, 16).hex()))
|
|
|
|
p("\n=== FUN_1800d8330 cardsubtypeid -> cardtype ===")
|
|
s = dec(0x1800D8330, 200)
|
|
p(s)
|
|
with open(OUT + "d4_cardsubtype_to_cardtype.txt", "w") as f:
|
|
f.write(s)
|
|
|
|
for va, nm in ((0x180051CD0, "site_180051cd0"),
|
|
(0x18006AC20, "site_18006ac20"),
|
|
(0x180088CB0, "site_180088cb0"),
|
|
(0x18008B6E0, "site_18008b6e0"),
|
|
(0x1800D0600, "site_1800d0600"),
|
|
(0x18011A5C0, "site_18011a5c0"),
|
|
(0x18011CFA0, "site_18011cfa0")):
|
|
src = dec(va, 300)
|
|
with open(OUT + "d4_%s.txt" % nm, "w") as f:
|
|
f.write(src)
|
|
# only report the lines around a +0x2e0 dispatch and whether FUN_180009c80 appears
|
|
p("\n--- %s len=%d uses_FUN_180009c80=%s ---"
|
|
% (nm, len(src), "FUN_180009c80" in src))
|
|
lines = src.split("\n")
|
|
for i, ln in enumerate(lines):
|
|
if "0x2e0" in ln:
|
|
p("\n".join(lines[max(0, i - 6):i + 4]))
|
|
p(" ...")
|
|
|
|
except Exception:
|
|
traceback.print_exc()
|
|
finally:
|
|
with open(OUT + "d4_final.txt", "w") as f:
|
|
f.write("\n".join(BUF))
|
|
print("WROTE d4_final.txt")
|