Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Thu Sep 20, 2018 11:13 pm

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Apr 28, 2018 5:03 pm 
Offline
Transport Coordinator
Transport Coordinator
User avatar

Joined: Thu Jan 14, 2010 11:45 pm
Posts: 300
This post asks about repeating game years, and it does seems to be doable with a slight bodge - just use the game cheat menu to change the year back at regular intervals. If game scripts could change the game year, that could be automated. Would such a feature be reasonably easy to add?

viewtopic.php?f=33&t=82407&p=1200639


Top
   
PostPosted: Sat Apr 28, 2018 8:13 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 108
Location: Czech Republic
Simons Mith wrote:
This post asks about repeating game years, and it does seems to be doable with a slight bodge - just use the game cheat menu to change the year back at regular intervals. If game scripts could change the game year, that could be automated. Would such a feature be reasonably easy to add?

viewtopic.php?f=33&t=82407&p=1200639


https://nogo.openttd.org/api/1.8.0/clas ... 2130bd7022




I did not test it, but maybe for year 2200 ..



GSGameSettings.SetValue ( "restart_game_year" , 2200);

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
PostPosted: Sat Apr 28, 2018 8:18 pm 
Offline
Engineer
Engineer

Joined: Fri Apr 14, 2017 3:51 pm
Posts: 108
Location: Czech Republic
agentw4b wrote:
Simons Mith wrote:
This post asks about repeating game years, and it does seems to be doable with a slight bodge - just use the game cheat menu to change the year back at regular intervals. If game scripts could change the game year, that could be automated. Would such a feature be reasonably easy to add?

viewtopic.php?f=33&t=82407&p=1200639


https://nogo.openttd.org/api/1.8.0/clas ... 2130bd7022




I did not test it, but maybe for year 2200 ..



GSGameSettings.SetValue ( "restart_game_year" , 2200);


I already understand. You do not want to change the year of the end of game but the current game year. So I do not know how to do it.

_________________
Owner and admin of servers:
Experimental games 01 (92.63.57.152:3979), Experimental games 02 (92.63.57.152:3879), Experimental games 03 (92.63.57.152:3779).
My heightmaps: Flat Earth Map and United nations logo
My scenarios: Game Fallout 1,2,3 Map scenario
My gamescripts: City Founder GS
My newGRFs: ---


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.