packets rewrite complete.

now i only need to rewrite the server.
and the client.
and debug.
and fix shitloads of annoying bugs.