Short: UDPfuncsV2.1 for Blitz-good for Net games Author: anton@ww.co.nz (Anton Reinauer) Uploader: anton@ww.co.nz (Anton Reinauer) Version: 2.1 Type: dev/basic Requires: dev/basic/TCP-to-Blitz.lha, WB 2.0+, min 1.5 meg mem. These are functions to use the UDP protocol for multiplayer internet games in Blitz2. Also there is a small IRC-like chat program which is a good Net game communications test-bed. It checks wether packets have arrived at their destination by using an acknowledgement system, and resends packets if necessary. Also it can also act as either a Server or Client with log-in routines- each player is informed of the new player and starts sending any messages to the new player, as the communication is still peer-to-peer. There's a few TCP functions as well, like converting an ASCII address to numerical (long), and vice-versa, getting your local IP address etc. Some of the log-in and message protocols could be used in TCP games as well. It has an Arexx port to allow you to automatically connect to other UDP_Chat programs from AmiComSys- you just have to pass a host address to UDP_Chat. UDP is more appropriate for fast action games, like Doom clones, Xwing clones, or platformers, maze games etc; anything that needs small lags (ping times), to remain playable over the Internet/LAN. What's new in V2.1 Version 2.1 02/10/1998 ------------ Fixed the dead link bug- if after 5 resends there's no reply, it now acknowledges that packet and stops resending- ( Acknowledge_Packet{message_number} on line 649 should have been Acknowledge_Packet{last_message_number} )- doh Put docs into AmigaGuide- yay :-) - and added some things to the `Things to Do' list. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 2096 814 61.1% 08-Feb-98 23:23:04 +net_protocol_header.bb2 16365 6742 58.8% 02-Oct-98 15:22:12 +UDP-Examples.guide 26870 8282 69.1% 02-Oct-98 14:14:08 +UDP_ChatV2.1.asc 24920 8059 67.6% 02-Oct-98 14:07:46 +UDP_ChatV2.1.bb2 396 220 44.4% 02-Oct-98 14:50:12 +UDP_ChatV2.1.bb2.info 1246 209 83.2% 02-Oct-98 14:07:48 +UDP_ChatV2.1.bb2.xtra 3244 1357 58.1% 27-Jul-98 21:24:46 +UDPFuncs.bb2 22203 8736 60.6% 23-Apr-98 12:58:06 +Lag problems in Net games 1238 214 82.7% 08-Feb-98 23:23:04 +net_protocol_header.bb2.xtra 267 196 26.5% 12-May-98 22:17:14 +Quit_UDP_Chat.rexx 1290 666 48.3% 29-Jul-98 15:04:56 +UDP_Chat.rexx 1246 190 84.7% 27-Jul-98 21:24:48 +UDPFuncs.bb2.xtra 588 294 50.0% 11-Apr-98 21:54:18 +UDPHeader.bb2 1238 185 85.0% 11-Apr-98 21:54:22 +UDPHeader.bb2.xtra 2987 1275 57.3% 24-Jan-98 23:42:02 +TCPFuncs.bb 23616 7216 69.4% 16-Jun-98 17:23:42 +UDP_ChatV1.9.asc 3199 1375 57.0% 02-Aug-98 16:13:42 +UDP_Receive.asc 3056 1336 56.2% 02-Aug-98 16:17:18 +UDP_Receive2.asc 3014 1255 58.3% 02-Aug-98 16:12:56 +UDP_Send.asc 3209 1347 58.0% 02-Aug-98 16:16:58 +UDP_Send2.asc 2096 814 61.1% 08-Feb-98 23:23:04 +net_protocol_header.bb2 14715 4624 68.5% 16-Jun-98 17:22:22 +UDP_ChatV1.6.asc 20690 6332 69.3% 16-Jun-98 17:22:54 +UDP_ChatV1.7.asc 24370 7091 70.9% 16-Jun-98 17:23:16 +UDP_ChatV1.8.asc -------- ------- ----- --------- -------- 204159 68829 66.2% 05-Oct-98 23:41:50 24 files