16-10-2006, 02:18 PM
I did this to vbGORE before I used binary packets and to the Kronia game. Though I created a UDT to define each of the packets so I could keep them in order instead of always having to look them up.
Using just numbers limits you a ton. And yes this is an improvement on speed, an improvement where MS and ES both need badly. :wink:
Code:
Public Type DCmd
User_Move As String * 1
User_Attack As String * 1
Server_SetUserPos As String * 1
End Type
Public Dcmd As Dcmd
Code:
User_Move = Chr(1)
User_Attack = Chr(2)
...
Code:
Packet = Dcmd.User_Move & ...
Using just numbers limits you a ton. And yes this is an improvement on speed, an improvement where MS and ES both need badly. :wink: