Adding additional packet types

3 views
Skip to first unread message

ctra...@gmail.com

unread,
May 12, 2007, 5:30:23 PM5/12/07
to pyraknet mailing list
How does one go about adding additional packet types - I've attempted
to simply add them after ID_USER_PACKET_ENUM, recompiling, and
installing, but I'm getting Invalid packet type

Any ideas?

Gerald Kaszuba

unread,
May 13, 2007, 5:06:43 AM5/13/07
to pyra...@googlegroups.com
Hi

You don't need to recompile pyraknet to add additional packet types. Within your Python code you could do something like this:

pyraknet.PacketTypes.ID_SHOOT_MISSILE = pyraknet.PacketTypes.ID_USER_PACKET_ENUM + 1
pyraknet.PacketTypes.ID_JUMP = pyraknet.PacketTypes.ID_USER_PACKET_ENUM + 2

And so on... I hope that helps!

Gerald
Reply all
Reply to author
Forward
0 new messages