client: native AVA2 cube_renewal module (ENABLE_CUBE_RENEWAL_WORLDARD=1)
PythonCubeRenewal + PhaseGameCubeRenewal ported verbatim from AVA2: GC 221 fills the recipe list and calls BINARY_CUBE_RENEWAL_OPEN, the XXF uicuberenewal window sends CG 216 make/close (its 3rd "improve" argument is accepted and not sent). Replaces the read-only CubeRenewalScript.inc preview shim. Version mt20261026 so the server picks the new window. FakeLoginServer: CG 215/216 sizes and a /mt_test_cube_open fixture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d6617e01f7
commit
909fc8f851
@@ -638,6 +638,9 @@ void CPythonNetworkStream::GamePhase()
|
||||
case HEADER_GC_SASH: // PORT: AVA2 sash
|
||||
ret = RecvSashPacket();
|
||||
break;
|
||||
case HEADER_GC_CUBE_RENEWAL: // PORT: AVA2 cuberenewal
|
||||
ret = RecvCubeRenewalPacket();
|
||||
break;
|
||||
case HEADER_GC_PORT_QUIVER:
|
||||
ret = RecvQuiverState();
|
||||
break;
|
||||
@@ -4530,7 +4533,7 @@ bool CPythonNetworkStream::SendClientVersionPacket()
|
||||
kVersionPacket.header = HEADER_CG_CLIENT_VERSION2;
|
||||
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
|
||||
// PORT: revision mt20261024 adds 64-bit shop prices, fixed offline records and 64-bit exchange/guild money; preserve the numeric prefix for atoi version checks.
|
||||
strncpy(kVersionPacket.timestamp, "1215955205 mt20261025", sizeof(kVersionPacket.timestamp)-1); // PORT: revision25 adds full-count and Cube presentation companions.
|
||||
strncpy(kVersionPacket.timestamp, "1215955205 mt20261026", sizeof(kVersionPacket.timestamp)-1); // PORT: revision26 adds the AVA2 Cube Renewal packets (CG216/GC221).
|
||||
//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
|
||||
@@ -4544,7 +4547,7 @@ bool CPythonNetworkStream::SendClientVersionPacket()
|
||||
kVersionPacket.header = HEADER_CG_CLIENT_VERSION;
|
||||
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
|
||||
// PORT: 64-bit money protocol requires mt20261024; older AVA2 services retain their own revision gates.
|
||||
strncpy(kVersionPacket.timestamp, "mt20261025", sizeof(kVersionPacket.timestamp)-1); // PORT: revision25 is backward-compatible with revision24 money.
|
||||
strncpy(kVersionPacket.timestamp, "mt20261026", sizeof(kVersionPacket.timestamp)-1); // PORT: revision26 is backward-compatible with revision24 money.
|
||||
|
||||
if (!Send(sizeof(kVersionPacket), &kVersionPacket))
|
||||
Tracef("SendClientReportPacket Error");
|
||||
|
||||
Reference in New Issue
Block a user