PDA

View Full Version : getLastGameStateSize()



voron00
8th April 2016, 13:34
Just another most likely pointless function, will return a last number of bytes of gamestate server has sent to a client.
Its also quite dirty as gamestate size doesnt seems to be stored anywhere so its just a hook of that Dprintf message.
Maybe gonna be useful for someone at 1.0/1.2 to loop through players and check if their gamestate gets too high in the middle of action since the limit is just 16384:
https://github.com/voron00/libcod/commit/00060e06886f263e0f0d86e15baf658ea3e82e53


self iprintln("My last gamestate size in bytes == " + self getLastGameStateSize());