Windows Dedicated Server (WDS)

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
RoseWalsh
Engineer
Engineer
Posts: 1
Joined: 31 Mar 2022 10:05
Location: US

Windows Dedicated Server (WDS)

Post by RoseWalsh »

Hello, I am trying to write a server-admin script in PHP to interface with the dedicated server. The only problem I am having is that when I run the server, using "openttd -D", it seems to spawn a new console window that ignores the input and output pipes.

I am trying to read/write.
Eddi
Tycoon
Tycoon
Posts: 8272
Joined: 17 Jan 2007 00:14

Re: Windows Dedicated Server (WDS)

Post by Eddi »

there is a tool to "convert" a windows gui app to a windows console app. you need that in order to use pipes.

however, using openttd in this way is deprecated, you should use the admin port communication protocol instead. there's a number of interface libraries for various scripting languages available.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 33 guests