Pause server on no clients

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

Moderator: OpenTTD Developers

Post Reply
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1795
Joined: 30 Mar 2005 09:43

Pause server on no clients

Post by peter1138 »

This is a patch that will pause a dedicated server when no clients are connected. Good leaving a server up overnight without it being 2050 by the morning.

To enable, add the configuration option "pause_on_no_clients = true" or set it via the console.
Attachments
pause_on_no_clients.diff
Pause On No Clients Patch
(4.72 KiB) Downloaded 198 times
PayableOnDeath
Engineer
Engineer
Posts: 27
Joined: 18 Apr 2005 13:42

Post by PayableOnDeath »

sounds good :)
User avatar
Zahl
Engineer
Engineer
Posts: 27
Joined: 23 May 2004 13:19
Location: Germany
Contact:

Post by Zahl »

Yeah, I like this idea too :)
Image
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

nice patchwork :)
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
namida
Engineer
Engineer
Posts: 2
Joined: 16 Sep 2004 03:48

Please update this patch

Post by namida »

Hi there, I really love this patch, but seems too old to be used for 0.4.5.

Would you please update for 0.4.5?
User avatar
Brianetta
Tycoon
Tycoon
Posts: 2567
Joined: 15 Oct 2003 22:00
Location: Jarrow, UK
Contact:

Post by Brianetta »

Well, that's one less thing that autopilot has to worry about in the future. (:
PGP fingerprint: E66A 9D58 AA10 E967 41A6 474E E41D 10AE 082C F3ED
User avatar
bobingabout
Tycoon
Tycoon
Posts: 1850
Joined: 21 May 2005 15:10
Location: Hull, England

Post by bobingabout »

really needs to be merged does this.
JPG SUX!!! USE PNG!!!
There are times when JPG is useful, TTD screenshots is not one of them. Please use PNG instead.

[/url]
chrissicom
Route Supervisor
Route Supervisor
Posts: 415
Joined: 07 Oct 2004 10:05

Post by chrissicom »

how can I install this? and does it work on 0.4.5 in the meantime?
ebik
Engineer
Engineer
Posts: 83
Joined: 19 Jul 2005 08:14
Location: Prague, Czech Republic

Post by ebik »

You should also include option to not treat 'spectators' as ordinary clients, as they don't play the game. So it will be admin's choice if the game will be paused if there are only spectators connected.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 4 guests