Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » 3.4.4 Send_Message_Player Disconnect
Re: 3.4.4 Send_Message_Player Disconnect [message #419358 is a reply to message #419354] Sun, 07 February 2010 15:15 Go to previous messageGo to previous message
Gen_Blacky is currently offline  Gen_Blacky
Messages: 3250
Registered: September 2006
Karma:
General (3 Stars)
GEORGE ZIMMER wrote on Sun, 07 February 2010 15:24

StealthEye wrote on Sun, 07 February 2010 11:50

There are several issues with long messages. First the message length can't exceed 0x100 = 256 characters. (you probably found 238 because there are additional headers prepended or w/e). Additionally the total packet (packet type, message type, sender, message, etc.) can not exceed 548 bytes. I think messages are sent as wide char strings, meaning the total message length can still not exceed 274-(1/2 bytes needed for additional headers) characters even if we enlarge the 0x100 limit. This means the extra space gained by doing so would be marginal. Lifting the 548 is atm not possible afaik, because we do not own all places that touch packets. Cloning all these is probably a lot of work.

Best we can do atm is probably to avoid clients crashing when these messages are sent, or avoid sending messages of this length at all.

Would it be possible to check the length, and if it's too big, cut it into several messages?


what do you mean several msgs.


http://s18.postimage.org/jc6qbn4k9/bricks3.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Direct Connection
Next Topic: Server Side Mods
Goto Forum:
  


Current Time: Mon Nov 04 00:51:40 MST 2024

Total time taken to generate the page: 0.00764 seconds