1888 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
29 lines
2.1 KiB
Python
29 lines
2.1 KiB
Python
from pathlib import Path
|
|
import sys,json,secrets,time
|
|
sys.path.insert(0,'ops')
|
|
from client_session import Session
|
|
from native_engine_character_test import Controller,local_listeners
|
|
from native_test_guard import require_authenticated_turtle_realm,require_local_turtle_ports
|
|
from native_item_metadata_test import persist_probe
|
|
from console_report import parse
|
|
W=Path(__file__).resolve().parent;pid=int(Path('runtime/native-client.pid').read_text());c=Controller(pid);run=secrets.token_hex(4)
|
|
require_local_turtle_ports(local_listeners());require_authenticated_turtle_realm(c.rpc('inspect-wire-account'))
|
|
saved=Path('runtime/native-client/_classic_beta_/WTF/Account/SavedVariables/GatewayDiagnostics.lua')
|
|
with Session(pid)as s:
|
|
s.wait_world(15);s.macro('/turtletalents');time.sleep(1)
|
|
s.macro('/run local f=PlayerSpellsFrame;f:SetTab(f.talentTabID);ShowUIPanel(f)')
|
|
s.macro('/run GatewayDiagnosticsSaved.talentTokenProbe={run="'+run+'",nodes={}}')
|
|
s.macro('/run GWTP=GatewayDiagnosticsSaved.talentTokenProbe')
|
|
for ident,name in [(103,'ravager'),(71,'improved-slam'),(62,'master-strike'),(107,'flurry-control')]:
|
|
commands=['/run GWTB=PlayerSpellsFrame.TalentsFrame:GetTalentButtonByNodeID('+str(ident)+');GWTP.nodes['+str(ident)+']={button=not not GWTB};if GWTB then GWTB:SetTooltipInternal()end','/run local t={};for i=1,GameTooltip:NumLines()do local f=_G["GameTooltipTextLeft"..i];local v=f and f:GetText();if type(v)=="string"and not issecretvalue(v)then t[#t+1]=v end end;GWTP.nodes['+str(ident)+'].lines=t']
|
|
assert max(map(len,commands))<=255
|
|
for command in commands:s.macro(command)
|
|
s.shot(W/('native-'+name+'.png'))
|
|
s.macro('/run HideUIPanel(PlayerSpellsFrame);GWTB=nil;GWTP=nil')
|
|
def observed():
|
|
r=parse(saved.read_text()).get('talentTokenProbe',{})
|
|
return r if r.get('run')==run else None
|
|
r,warning=persist_probe(s,c,observed)
|
|
report=dict(kind='native-source-talent-token-and-icon-presentation',pid=pid,probe=r,reload_warning=warning,local_only=True,talents_purchased_or_reset=False,server_writes=False,damage_verified=False)
|
|
(W/'native-talent-tooltips.json').write_text(json.dumps(report,indent=2)+'\n');print(json.dumps(r),flush=True)
|