PDA

View Full Version : message id limited to 9999?



spugh
06-27-2008, 04:09 AM
I'm working on a "lobby" game where the users update their positions to each other. In updating their positions, lots of messages get sent and received in fairly short order. It appears that the message id (which increments for each message) is limited to 9,999. Once it gets to 10,000, the message is invalid and the server closes the connection down, etc. I've tested this in Flash.

Is there a solution to this or another way to do position updates?

Also, even if you're not doing position updates, if someone stays connected for a long amount of time playing a game, then the same problem could occur.

webgeek
06-27-2008, 04:23 AM
Ouch, nasty bug. The code is supposed to roll over back to zero automatically. Is the client still incrementing?

spugh
06-27-2008, 04:34 AM
yes,

here's a snippet of the output:

[INFO] PluginRequest: C999915BlackjackPlugin1 7 01110211messagetype14
[INFO] <-- Receiving :: conId: 0
[INFO] PluginMessageEvent
Integer is longer then the specified length
[INFO] --> Sending :: conId: 0
[INFO] PluginRequest: Cundefined1000015BlackjackPlugin1 7 01110211messagetype214
Integer is longer then the specified length