feat: integrate native AVA2 battle pass, wiki, drop finder and calendar

This commit is contained in:
shen
2026-10-18 23:36:35 -07:00
parent 62b61bafd0
commit 1359eab806
44 changed files with 7237 additions and 190 deletions
@@ -637,7 +637,11 @@ void CPythonNetworkStream::GamePhase()
case HEADER_GC_CHESTDROP:
ret=RecvChestDrop(); break;
case HEADER_GC_SWITCHBOT: // PORT: AVA2 switchbot
case HEADER_GC_AVA2_DROP:
ret=RecvAva2DropQuery();break;
case HEADER_GC_AVA2_EVENTS:
ret=RecvAva2Events();break;
case HEADER_GC_SWITCHBOT: // PORT: AVA2 switchbot
ret = RecvSwitchbotPacket();
break;
@@ -4215,8 +4219,8 @@ bool CPythonNetworkStream::SendClientVersionPacket()
TPacketCGClientVersion2 kVersionPacket;
kVersionPacket.header = HEADER_CG_CLIENT_VERSION2;
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
// PORT: " mt20261016" enables the AVA2 switchbot on the server (port_switchbot.cpp); the version check uses atoi.
strncpy(kVersionPacket.timestamp, "1215955205 mt20261016", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
// 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 앞자리
//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
@@ -4230,8 +4234,8 @@ bool CPythonNetworkStream::SendClientVersionPacket()
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
// "mt20261016" on (metin2-server port_switchbot.h PORT_SWITCHBOT_CLIENT_VERSION).
strncpy(kVersionPacket.timestamp, "mt20261016", sizeof(kVersionPacket.timestamp)-1);
// "mt20261019" on (metin2-server port_switchbot.h PORT_SWITCHBOT_CLIENT_VERSION).
strncpy(kVersionPacket.timestamp, "mt20261019", sizeof(kVersionPacket.timestamp)-1);
if (!Send(sizeof(kVersionPacket), &kVersionPacket))
Tracef("SendClientReportPacket Error");