| Mirage Source http://web.miragesource.net/forums/ |
|
| Saving some Bytes http://web.miragesource.net/forums/viewtopic.php?f=210&t=2720 |
Page 1 of 1 |
| Author: | William [ Wed Sep 19, 2007 10:52 am ] |
| Post subject: | Saving some Bytes |
The best way would be to use a Code: Public Enum for all of the packet names, but this is just a simple thing to do for playermove and npcmove, since those packets are sent the most.Replace all of the finds. Server Side Find "playermove" Replace it with "P" Find "npcmove" Replace it with "N" Client Side Find "playermove" Replace it with "p" Find "npcmove" Replace it with "n" Example for the Enum: Code: Public Enum ServerToClient StCPlayerMove = 0 StCVerify '"verify" StCGuildInfo '"guildinfo" StCQuestMsg '"QuestMsg" StCLag ' "lag" StCFriendList ' "friendlist" StCDamageDisplay ' "damagedisplay" StCItemWorn '"itemworn" StCSendWing '"sendwing" StCMapMsg2 '"mapmsg2" StCShowLabelOnShop '"showlabelonshop" StCServerResults' "serverresults" End Enum I just started doing this. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|