Page 1 of 1

Dedicated Servers

Posted: 21 May 2021 12:51
by phpgsm_dev2
Hi
I am developing an api which allows you to control dedicated servers from either a command line interface or a web interface. Currently I have this working on most steam source servers, and as openttd can be obtained via steam I thought I would give it a go !
I have currently working the installer, start, stop, restart & update (when steam buildid changes)
what I don't have working is game details .. with steam source games you send packets to the server & read the responses for example if you send

Code: Select all

0x54
the return from the server is the detail set from the server

Code: Select all

		    [Protocol] => 17
                    [HostName] => Jim's Dab Server
                    [Map] => da_sacred
                    [ModDir] => dab
                    [ModDesc] => Double Action: Boogaloo
                    [AppID] => 0
                    [Players] => 0
                    [MaxPlayers] => 10
                    [Bots] => 0
                    [Dedicated] => d
                    [Os] => l
                    [Password] => 
                    [Secure] => 
                    [Version] => 1.3.2.0
                    [ExtraDataFlags] => 177
                    [GamePort] => 27017
                    [SteamID] => 90146931225563142
                    [GameTags] => 
                    [GameID] => 317360
how can I get this info back from an OpenTTd server ?

Re: Dedicated Servers

Posted: 21 May 2021 20:58
by jfs

Re: Dedicated Servers

Posted: 22 May 2021 04:24
by Eddi
note that there's a separate (simpler) protocol to get the info you would find on the server list (version, number of players, etc.)