Add RakNet definitions for ID_DATA and ID_TIMESTAMP

This commit is contained in:
pizzaboxer 2022-01-29 15:04:56 +00:00
parent a4e02a8807
commit 101652f074
2 changed files with 33 additions and 2 deletions

View File

@ -4,6 +4,8 @@
#define PLAYERBUILD #define PLAYERBUILD
#define ARBITERBUILD #define ARBITERBUILD
#define DEBUG_SERVERREPLICATOR__PROCESSPACKET
// when PLAYERBUILD is defined, the following changes occur for 2010 and 2012 only: // when PLAYERBUILD is defined, the following changes occur for 2010 and 2012 only:
// the -jobId arg is parsed // the -jobId arg is parsed
@ -42,7 +44,9 @@
#define ADDRESS_CCOMMANDLINEINFO__PARSELAST 0x007A80A0 #define ADDRESS_CCOMMANDLINEINFO__PARSELAST 0x007A80A0
// RakNet packet definitions // RakNet packet definitions
#define ID_TIMESTAMP 25
#define ID_REQUEST_CHARACTER 96 #define ID_REQUEST_CHARACTER 96
#define ID_DATA 98
#define ID_SUBMIT_TICKET 104 #define ID_SUBMIT_TICKET 104
#endif #endif

View File

@ -295,11 +295,38 @@ void __fastcall CRobloxCommandLineInfo__ParseParam_hook(CRobloxCommandLineInfo*
#ifdef DEBUG_SERVERREPLICATOR__PROCESSPACKET #ifdef DEBUG_SERVERREPLICATOR__PROCESSPACKET
INT __fastcall ServerReplicator__processPacket_hook(int _this, void*, Packet* packet) INT __fastcall ServerReplicator__processPacket_hook(int _this, void*, Packet* packet)
{ {
if ((unsigned char)packet->data[0] == ID_SUBMIT_TICKET) switch ((unsigned char)packet->data[0])
{ {
printf("ServerReplicator::processPacket received ID_SUBMIT_TICKET\n"); case ID_TIMESTAMP:
printf("ServerReplicator::processPacket received ID_TIMESTAMP with length %d\n", packet->length);
break;
case ID_REQUEST_CHARACTER:
printf("ServerReplicator::processPacket received ID_REQUEST_CHARACTER with length %d\n", packet->length);
break;
case ID_DATA:
printf("ServerReplicator::processPacket received ID_DATA with length %d\n", packet->length);
break;
case ID_SUBMIT_TICKET:
printf("ServerReplicator::processPacket received ID_SUBMIT_TICKET with length %d\n", packet->length);
break;
default:
printf("ServerReplicator::processPacket received packet %d with length %d\n", packet->data[0], packet->length);
break;
} }
/* if ((unsigned char)packet->data[0] == ID_SUBMIT_TICKET)
{
printf("ServerReplicator::processPacket received ID_SUBMIT_TICKET with length %d\n", packet->length);
}
else
{
printf("ServerReplicator::processPacket received packet %d with length %d\n", packet->data[0], packet->length);
} */
/* switch ((unsigned char)packet->data[0]) /* switch ((unsigned char)packet->data[0])
{ {
case ID_SUBMIT_TICKET: case ID_SUBMIT_TICKET: