Feature: End/Exit game after specific year has been reached.

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

Post Reply
Gigigonzalez
Engineer
Engineer
Posts: 91
Joined: 12 Jun 2014 14:24

Feature: End/Exit game after specific year has been reached.

Post by Gigigonzalez »

Hello all.

Id like to have an option next to restart_game_year that can define that the game will end at a specific date rather than restart it.

Perhaps something like exit_game_year?

Id like to run a server with different configurarions each restart and was thinking of a simple bash script to do so, therefore i need openttd to exit after a game year has reached.

Is this already possibly? Doesnt sound like its too hard to implement?

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

Re: Feature: End/Exit game after specific year has been reac

Post by Eddi »

this sounds like a job for the "admin port" of openttd. there are two libraries that help you access it, "joan" (in java) and "libottdadmin" (in python)
Gigigonzalez
Engineer
Engineer
Posts: 91
Joined: 12 Jun 2014 14:24

Re: Feature: End/Exit game after specific year has been reac

Post by Gigigonzalez »

Damn, id probably need some help starting this up, im using autopilot right now for my server
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Feature: End/Exit game after specific year has been reac

Post by planetmaker »

Gigigonzalez wrote:Damn, id probably need some help starting this up, im using autopilot right now for my server
That's no script to interface admin port. but an ancient, discontinued wrapper around the console.

I would suggest looking into the supybot/soap combo.
Gigigonzalez
Engineer
Engineer
Posts: 91
Joined: 12 Jun 2014 14:24

Re: Feature: End/Exit game after specific year has been reac

Post by Gigigonzalez »

Would it be hard to setup with the current stuff i already have in autopilot? like !date and !name changename etc?
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: Feature: End/Exit game after specific year has been reac

Post by Alberth »

Gigigonzalez wrote:Would it be hard to setup with the current stuff i already have in autopilot? like !date and !name changename etc?
Nah, I think they dropped autopilot because it would be too simple to set up. They wanted a more difficult way to do things.
Being a retired OpenTTD developer does not mean I know what I am doing.
Gigigonzalez
Engineer
Engineer
Posts: 91
Joined: 12 Jun 2014 14:24

Re: Feature: End/Exit game after specific year has been reac

Post by Gigigonzalez »

Sounds logical :p
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 11 guests