Dedicated Servers

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
User avatar
phpgsm_dev2
Engineer
Engineer
Posts: 1
Joined: 21 May 2021 12:24

Dedicated Servers

Post 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 ?
User avatar
jfs
Tycoon
Tycoon
Posts: 1750
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Dedicated Servers

Post by jfs »

Eddi
Tycoon
Tycoon
Posts: 8258
Joined: 17 Jan 2007 00:14

Re: Dedicated Servers

Post 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.)
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Semrush [Bot] and 8 guests