Hi
I’ve been looking into the MAX_GAMESTATE_CHARS error and wanted to find out what size the gamestate has in a given map. I tried starting the map with developer 1 and then look for the part looking like this in the output:
Johnny : dropped gamestate, resending
SV_SendClientGameState() for Johnny
Going from CS_CONNECTED to CS_PRIMED for Johnny
Sending 15463 bytes in gamestate to client: 0
Next I wanted to make a simple command that would just print it in the console. However the number I get there is in the range of 8500. To get that number I just print the dataCount in the syscall function, like this in cg_syscalls.c:
void trap_GetGameState( gameState_t *gamestate ) {
syscall( CG_GETGAMESTATE, gamestate );
CG_Printf("DEBUG: Gamestate size: %i
", gamestate->dataCount);
}
Now I’m asking, what better way is there to get the current size of the gamestate?

wow
YAY!