OpenTTD

Tasklist

FS#6211 - UDP query of game script

Attached to Project: OpenTTD
Opened by Jan Skoch (The_Dude) - Saturday, 17 January 2015, 11:46 GMT
Last edited by andythenorth (andythenorth) - Thursday, 31 August 2017, 17:52 GMT
Type Feature Request
Category Network
Status With patch
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version Version?
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Patch adds a possibility to query OpenTTD server for running game scripts and returns its name and version if any present.

This could be used to show GS info in server details of http://www.openttd.org/en/servers, in network lobby of server detail, so player could seek for a GS which he likes.


I am also preparing a overall statistics of public servers, where it could be used to see what GS are currently available to play.

Overview of NewGRFs used on public servers:
http://www.novapolis.net/newgrfsAservers.php
This task depends upon

Comment by Coragem (ST2) - Sunday, 18 January 2015, 06:57 GMT
some servers/communities use several gamescripts, packed together and controlled by openttd.cfg settings that say to main.nut what files to load. Since the main gamescript (that gives the info to your query) is global (only a controller, lets say like this), won't show the real gamescript used. Wich makes the query useless, imho.
Comment by Jan Skoch (The_Dude) - Sunday, 18 January 2015, 10:45 GMT
You do not understand.
Game can have only one game script loaded, if someone merges more GS into one, it is still one GS from the view of the game.

The GS query is mainly informal, but still it can provide information whether the server has or has not a GS controlled game and whether it is the GS you'd like to play no matter if it is the original one or some modded version.

Loading...