Integrate AVA2 native shop and refine mobile controls and locale tooltips

This commit is contained in:
shen
2026-10-19 07:13:56 -07:00
parent 1359eab806
commit 24c1b3b416
36 changed files with 3501 additions and 52 deletions
@@ -641,6 +641,7 @@ void CPythonNetworkStream::GamePhase()
ret=RecvAva2DropQuery();break;
case HEADER_GC_AVA2_EVENTS:
ret=RecvAva2Events();break;
case 93:ret=RecvAva2ItemShop();break;
case HEADER_GC_SWITCHBOT: // PORT: AVA2 switchbot
ret = RecvSwitchbotPacket();
break;
@@ -4219,8 +4220,8 @@ bool CPythonNetworkStream::SendClientVersionPacket()
TPacketCGClientVersion2 kVersionPacket;
kVersionPacket.header = HEADER_CG_CLIENT_VERSION2;
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
// PORT: " mt20261019" enables the AVA2 switchbot on the server (port_switchbot.cpp); the version check uses atoi.
strncpy(kVersionPacket.timestamp, "1215955205 mt20261019", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
// PORT: revision mt20261020 adds native itemshop; preserve the numeric prefix for atoi version checks.
strncpy(kVersionPacket.timestamp, "1215955205 mt20261020", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
//strncpy(kVersionPacket.timestamp, __TIMESTAMP__, sizeof(kVersionPacket.timestamp)-1); // old_string_ver
//strncpy(kVersionPacket.timestamp, "1218055205", sizeof(kVersionPacket.timestamp)-1); // new_future
//strncpy(kVersionPacket.timestamp, "1214055205", sizeof(kVersionPacket.timestamp)-1); // old_past
@@ -4233,9 +4234,8 @@ bool CPythonNetworkStream::SendClientVersionPacket()
TPacketCGClientVersion kVersionPacket;
kVersionPacket.header = HEADER_CG_CLIENT_VERSION;
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
// PORT: protocol date instead of __TIMESTAMP__; the server sends the AVA2 switchbot packets only from
// "mt20261019" on (metin2-server port_switchbot.h PORT_SWITCHBOT_CLIENT_VERSION).
strncpy(kVersionPacket.timestamp, "mt20261019", sizeof(kVersionPacket.timestamp)-1);
// PORT: native itemshop requires mt20261020; older AVA2 services retain their own revision gates.
strncpy(kVersionPacket.timestamp, "mt20261020", sizeof(kVersionPacket.timestamp)-1);
if (!Send(sizeof(kVersionPacket), &kVersionPacket))
Tracef("SendClientReportPacket Error");