Posts: 437 Joined: Sun Mar 22 2009, 06:53AM Registered Member #4938
Hi. Looks like Quake 1 uses a different query protocol on port 26000 as default, unlike Quakeworld which uses 27500.
I managed to query a few servers and I'll try decoding the responses these days. Anyone feel free to share any info on this matter or maybe an existing protocol which works with Quake 1.
Edit: just found some info about the network protocol at http://www.gamers.org/dEngine/quake/QDP/qnp.html and I'm working on a solution. Not working for you? Don't forget to share the IP/ports of the offending server so that people can do tests and help you. Oh, and if you're using a modified lgsl_protocol.php, make sure you disable the feed or it may NOT work!
Posts: 437 Joined: Sun Mar 22 2009, 06:53AM Registered Member #4938
Although this is quite an old game, I felt that the very first title in the celebrated Quake series definitely has it's place on LGSL's supported list, so it was about time someone wrote a protocol just for it. Why not me? The function I wrote below does multiple queries in order to get all the info from servers, so it's slower than other protocols, but this seems to be the only way for quake 1 (netquake). By the way, I release this code under the GPL licensing conditions, so that nobody should have to pay for it. You can start off with the original, unmodified lgsl_protocol.php and find
$q_port=$c_port and it's usually 26000. Let me know if it's possible to make a password protected netquake server, so I can add support for showing the "online with password" flag (contact me so we can arrange a brief test for it). Enjoy!
Edit: updated the code above for a minor speed up of the query. Not working for you? Don't forget to share the IP/ports of the offending server so that people can do tests and help you. Oh, and if you're using a modified lgsl_protocol.php, make sure you disable the feed or it may NOT work!