59934b4ef0
The client now issues PUT /squad and the hub renders coins, record and the
squad roster. Three separate root causes, all verified live.
Squad blocker (the long-standing "client never sends PUT /squad"):
AddPlayerToSquad, GetSquads and SelectSquadById issue ZERO network requests
(pure local model reads/mutations, FutSquadServiceImpl vtable 0x180233ff0);
only SaveCurrentSquad writes, and it is unguarded. The client simply needed a
populated ACTIVE squad model, which arrives via the massinfo `squad` member.
No response of ours was ever being rejected.
userMassInfo is NOT required to be {}:
0x180174630 is a FLAT {userInfo, squad, settings, userData} body -- the old
"wrapper key is user" note was wrong, and the historical freeze was the
malformed squad member, not the envelope.
clubNameChangeAllowed must be false:
sending true advertises a club-rename flow whose UI model is never populated;
the client shows a naming prompt and dies confirming it (ACCESS_VIOLATION
reading 0x0 at FIFA17.exe+0x71b8651, 4/4 runs, no CardsDLL frame and no request
in flight). Isolated by a single-variable run; guarded by a contract check.
Endpoint/schema corrections found in live traffic, invisible to static analysis:
* GET ut/%s/squad/list is a real endpoint and must return {"squad":[...]},
not the active-squad object (the /list suffix is appended by the caller, so
it never appeared in the request table)
* PUT lands on ut/%s/squad/<id>, not a bare ut/%s/squad
* userInfo currencies are read as name/funds/finalFunds/active -- there is no
"value" key, so coins always rendered 0
* squad-list elements take STRING formation/squadType, not ints
* the CardsDLL script-API thunk<->name table was off by one (AddPlayerToSquad
is 0x18004aa70; 0x18004aff0 is GetPotentialChemistry_Club)
FUT_MASSINFO / FUT_USERINFO ladders keep every step of the bisect reproducible.
Contract suite 311 -> 358 checks. Tooling added: PyGhidra harness (Ghidra's
Java/OSGi script path is broken on this box), minidump reader, live code grabber.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUT92pz6RWKih9dSr8ZpxW
56 lines
2.0 KiB
Python
56 lines
2.0 KiB
Python
#!/usr/bin/env python3
|
|
"""Summarise /tmp/utas_server.log since the last MARKER line: one row per request
|
|
(verb, path, status), plus the squad/massinfo detail lines. Keeps the transcript
|
|
small instead of dumping the raw log."""
|
|
import re, sys, collections
|
|
|
|
LOG = "/tmp/utas_server.log"
|
|
raw = open(LOG, errors="replace").read().splitlines()
|
|
# start after the last marker (or the last server banner)
|
|
start = 0
|
|
for i, l in enumerate(raw):
|
|
if "=== MARKER" in l or "=== utas_server" in l:
|
|
start = i
|
|
lines = raw[start:]
|
|
|
|
REQ = re.compile(r"^\[[\d:]+\] (GET|PUT|POST|DELETE|HEAD|PATCH) (\S+)")
|
|
RESP = re.compile(r"^\[[\d:]+\] -> (\d+) (.*)")
|
|
rows, counts, pending = [], collections.Counter(), None
|
|
notes = []
|
|
for l in lines:
|
|
m = REQ.match(l)
|
|
if m:
|
|
pending = (m.group(1), m.group(2).split("?")[0], m.group(2))
|
|
continue
|
|
m = RESP.match(l)
|
|
if m and pending:
|
|
rows.append((pending[0], pending[1], m.group(1), len(m.group(2))))
|
|
counts[(pending[0], pending[1])] += 1
|
|
pending = None
|
|
continue
|
|
if "UNMAPPED" in l or "SQUAD:" in l or "STORE:" in l or "MARKET:" in l or "ITEM:" in l:
|
|
notes.append(l.strip())
|
|
|
|
print(f"{len(rows)} requests since marker\n")
|
|
print("verb path n")
|
|
for (v, p), n in counts.most_common():
|
|
print(f"{v:6} {p:48} {n}")
|
|
|
|
squad = [r for r in rows if "/squad" in r[1]]
|
|
print(f"\n--- squad family ({len(squad)}) ---")
|
|
for r in squad:
|
|
print(" ", r[0], r[1], "->", r[2], f"({r[3]}b)")
|
|
# the live URL is /squad/<id> (e.g. /squad/0), not a bare /squad -- match on the
|
|
# segment, not endswith, or the headline result reads as a false negative.
|
|
print("\nPUT /squad seen:", any(r[0] == "PUT" and "/squad" in r[1] for r in rows))
|
|
mi = [r for r in rows if "userMassInfo" in r[1]]
|
|
print("userMassInfo requests:", len(mi), [r[2] for r in mi])
|
|
if notes:
|
|
print("\n--- notes ---")
|
|
for n in notes[-25:]:
|
|
print(" ", n)
|
|
last = rows[-6:]
|
|
print("\n--- last 6 requests (where it stopped) ---")
|
|
for r in last:
|
|
print(" ", r[0], r[1], "->", r[2])
|