Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: stormeus on June 07, 2011, 01:58:15 pm

Title: Experiments w/ Pawn Datagrams
Post by: stormeus on June 07, 2011, 01:58:15 pm
Last weekend, I was reading some Pawn documentation about its ability to send and receive packets. I experimented a bit with it to implement a list of bans using datagrams instead of PSA, which tends to be bulkier. Unfortunately, the Pawn script doesn't seem to be receiving packets from the other server at the moment, but Pawn can successfully send a packet to a server, and the server can receive it without a problem.

Sending the packets from Pawn as packed strings seems to work best. If you send strings as unpacked, Pawn will UU-encode and compress them itself, which makes it harder to unpack when it gets to the server. Here are the results so far. I may put the scripts up when I get the Pawn server to receive packets.

(http://i.imgur.com/z6El3.png)

(http://i.imgur.com/lU3ig.png)

(http://i.imgur.com/g0JLy.png)
Title: Re: Experiments w/ Pawn Datagrams
Post by: (SZ)Naruto on June 07, 2011, 02:03:43 pm
Good Work Xd  ;D