Results 1 to 1 of 1

Thread: getLastGameStateSize()

  1. #1
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts

    getLastGameStateSize()

    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/co...af658ea3e82e53

    PHP Code:
    self iprintln("My last gamestate size in bytes == " self getLastGameStateSize()); 
    Last edited by voron00; 8th April 2016 at 13:38.
    sudo apt-get rekt

  2. The Following 3 Users Say Thank You to voron00 For This Useful Post:

    kung foo man (9th April 2016),Ni3ls (8th April 2016),ysniper (8th April 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •