Port the AVA2 switchbot window and switchbot module
PythonSwitchbot + PythonNetworkStreamPhaseGameSwitchbot from AVA2 (CG/GC 171, SWITCHBOT window 7, SLOT_TYPE_SWITCHBOT), uiswitchbot.py verbatim in SwitchbotScript.inc plus its ENABLE_SWITCHBOT glue (tooltip, mouse/inventory drag-back, interface/game hooks, zh strings, server switchbot_* messages). Entry is the minimap 洗练 button; F9 stays with auto-hunt. The client version timestamp is now "mt20261016" so the server enables the switchbot. 50348/50349 no longer open the window. Adds docs/AVA2-PARITY-PLAN.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
e70a6abf7a
commit
fc98e6e2b4
@@ -634,6 +634,10 @@ void CPythonNetworkStream::GamePhase()
|
||||
ret = RecvSashPacket();
|
||||
break;
|
||||
|
||||
case HEADER_GC_SWITCHBOT: // PORT: AVA2 switchbot
|
||||
ret = RecvSwitchbotPacket();
|
||||
break;
|
||||
|
||||
default:
|
||||
ret = RecvDefaultPacket(header);
|
||||
break;
|
||||
@@ -4184,7 +4188,9 @@ bool CPythonNetworkStream::SendClientVersionPacket()
|
||||
TPacketCGClientVersion kVersionPacket;
|
||||
kVersionPacket.header = HEADER_CG_CLIENT_VERSION;
|
||||
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
|
||||
strncpy(kVersionPacket.timestamp, __TIMESTAMP__, sizeof(kVersionPacket.timestamp)-1);
|
||||
// PORT: protocol date instead of __TIMESTAMP__; the server sends the AVA2 switchbot packets only from
|
||||
// "mt20261016" on (metin2-server port_switchbot.h PORT_SWITCHBOT_CLIENT_VERSION).
|
||||
strncpy(kVersionPacket.timestamp, "mt20261016", sizeof(kVersionPacket.timestamp)-1);
|
||||
|
||||
if (!Send(sizeof(kVersionPacket), &kVersionPacket))
|
||||
Tracef("SendClientReportPacket Error");
|
||||
|
||||
Reference in New Issue
Block a user