Build 154: 'Network variable 'maxEnergy' has value 300 which is outside the range that c

PlasmaPlasma Join Date: 2003-04-26 Member: 15855Members, Constellation, Squad Five Blue
Just an FYI I see these events in the server console; and I notice the server begins to lag a bit around this time too.

Network variable 'maxEnergy' has value 300 which is outside the range that can be sent using 8 bits
Network variable 'maxEnergy' has value 300 which is outside the range that can be sent using 8 bits
Network variable 'energy' has value 300 which is outside the range that can be sent using 8 bits
Network variable 'maxEnergy' has value 300 which is outside the range that can be sent using 8 bits
Network variable 'energy' has value 300 which is outside the range that can be sent using 8 bits
... etc

Comments

  • FaskaliaFaskalia Wechsellichtzeichenanlage Join Date: 2004-09-12 Member: 31651Members, Constellation
    I am curious:
    Anyone which Energy Value those messages are referring to?
    Is it player energy as in adrenalin or something else?


    Just fyi: 8 bit = 2^8 possible values which gives a range of 0 to 255 or -128 to 127 if you need negative values.
    But the solution should be easy: reserve additional bits in your code packages for sending the energy value :P
  • LazerLazer Join Date: 2003-03-11 Member: 14406Members, Contributor, Constellation, NS2 Playtester
    edited November 2010
    See no need for negative energy or extra bits really. If the max energy value is currently 300, just drop it down to 255 and deduct 15% less (1 - 255/300) less energy per move that requires it.
  • SgtBarlowSgtBarlow Level Designer Join Date: 2003-11-13 Member: 22749Members, NS2 Developer
    This has been fixed.
Sign In or Register to comment.