Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Packet Name
#5
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.

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:
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)