Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDP query of game script #6211

Closed
DorpsGek opened this issue Jan 17, 2015 · 5 comments
Closed

UDP query of game script #6211

DorpsGek opened this issue Jan 17, 2015 · 5 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

The_Dude opened the ticket and wrote:

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

Attachments

Reported version: Version?
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/6211
@DorpsGek
Copy link
Member Author

ST2 wrote:

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.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6211#comment13726

@DorpsGek
Copy link
Member Author

The_Dude wrote:

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.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6211#comment13728

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Network labels Apr 7, 2018
@TrueBrain TrueBrain added the patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay label Apr 10, 2018
@andythenorth
Copy link
Contributor

Pull request? o_O

@TrueBrain
Copy link
Member

What am I missing: your patch adds functions, but I do not see where they are called?

That said, it is not a bad idea; I mostly wonder if you also would like to see which AIs are loaded ..

Either way, if you are still interested in bringing this forward, please create a Pull Request. Closing ticket (as I think the patch is only a partial).

@TrueBrain
Copy link
Member

Ah, I only now understand you; you only wants this for websites etc.

In general, we don't do that. I would really like to see an ingame interface change for this too, where you can see the same info.

@frosch123 frosch123 added the component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) label Apr 14, 2018
TheDude-gh added a commit to TheDude-gh/OpenTTD that referenced this issue Oct 15, 2019
Reopened from old flyspray issue OpenTTD#6211.

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

Goal of this fork is to make also ingame interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

4 participants