Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Wed Dec 12, 2018 1:22 pm

All times are UTC




Post new topic  Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Company Value GS
PostPosted: Fri Feb 09, 2018 8:26 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 240
Attachment:
Company_Value_GS-v3.tar [50 KiB]
Downloaded 29 times
v3
- Added a feature to Goal mode: displays how many days the winner company needed to reach the target company value since the day of its inauguration.
- In the unlikely event that multiple companies reach the target value simultaneously, then the one with the highest value wins. If their values are identical, then the newest wins.
- Changed the amount of debug messages to be displayed on the various preset levels, and shifted all the near real time logs to Insane preset.

[+] Spoiler
Attachment:
Company_Value_GS-v2.tar [50 KiB]
Downloaded 16 times
v2
- Fixed a bug that was causing the ranking order to be displayed in an unordered manner, when switching from Goal mode to Ranking mode.
- Unpausing the game is done immediately now, and not after company goal clean up, which improves responsiveness.

[+] Spoiler
Attachment:
Company_Value_GS-v1.tar [50 KiB]
Downloaded 15 times
v1
- Uploaded to BaNaNaS.


Company Value GS
================


Company Value GS is a Game Script that uses the goal list to rank companies by their current company value. It can also be used to challenge companies not only to be the first to reach a user defined company value target as a goal, but also to do it as fast as they can.


Configuration Settings
----------------------


Goal mode:
- Only rank companies by their values:
In this mode, Company Value GS only uses the goal list window to rank companies by their current company value. The value of the most valuable company is used to determine the progress of every company in relation to it. No goal is assigned to any company.

- Reach target company value below:
In this mode, Company Value GS uses the goal list window to also rank companies by their current value. The target value, which is set on the next setting, is used to determine the progress of every company in relation to it. Each company is given the same challenge, to become the first to reach the target value. Once reached, Company Value GS pauses the game and informs every company of the winner and the time it took to reach it since its inauguration, while asking if they want to continue playing. The moment any company continues playing, the game is unpaused and Company Value GS switches Goal mode to ranking mode.

Target company value (in thousand £):
- Sets the value companies need to reach. Used when Goal mode is set to reach this target value. Has no effect when Goal mode is set to ranking mode.

Amount of debug messages to log:
- Essential:
Logs only the minimum necessary, when Company Value GS is reaching key points, such as pausing the game, reaching the goal, switching game mode.

- Normal:
Also logs minimum details for loading, saving, starting, initializing, opening and closing of questions, and changes to the target company value.

- Too many:
Logs more details for loading, saving, starting and initializing. Also logs creation and removal of company goal details during Goal mode.

- Insane:
Logs every internal variable changes and every goal computations in near real time.

_________________
Formerly known as Samu


Last edited by xarick on Thu Feb 15, 2018 3:29 pm, edited 9 times in total.

Top
   
 Post subject: Re: Company Value GS
PostPosted: Wed Dec 05, 2018 3:37 am 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 240
I took this GS to do some sort of competition between AIs. Each game started in 1960 and 3 Random AIs would try to be the first to reach a Company Value of €25.000 k.
Once that happens, I take note of the winner and how long it took to reach the goal. Then I start new games every time I get the winner of each game, until I get a sizeable sample and display it in a scoreboard of sorts as below.

Code:
Easy Preset; 1960+; 1.8.0; Temperate; 256x256; Company Value GS; 3 Random AIs
AI Name    (version); End Value;  Days taken
--------------------------------------------
AIAI           (v97); €25.005 k;  2.975 days
LuDiAI          (v1); €25.002 k;  3.617 days
Convoy         (v11); €25.002 k;  3.638 days
AIAI           (v97); €25.003 k;  3.651 days
trAIns          (v2); €25.003 k;  3.937 days
SynTrans       (v15); €25.007 k;  4.169 days
SnakeAI         (v9); €25.001 k;  4.212 days
NoNoCAB         (v5); €25.028 k;  4.325 days
LuDiAI AfterFix (v5); €25.006 k;  4.552 days
WormAI          (v7); €25.010 k;  4.888 days
ChooChoo      (v412); €25.018 k;  4.896 days
NoNoCAB         (v5); €25.032 k;  5.222 days
OtviAI        (v422); €25.002 k;  5.715 days
WrightAI        (v3); €25.001 k;  5.853 days
Trans      (v180622); €25.000 k;  6.558 days
TeshiNet        (v4); €25.007 k;  6.873 days
CluelessPlus   (v38); €25.002 k;  7.119 days
BorkAI         (v23); €25.013 k;  7.155 days
RailwAI        (v12); €25.001 k;  7.191 days
EmotionAI       (v1); €25.002 k;  7.217 days
BorkAI         (v23); €25.020 k;  8.256 days
CluelessPlus   (v38); €25.000 k;  8.876 days
EpicTrans       (v1); €25.000 k;  9.244 days
HeliFerry       (v3); €25.002 k;  9.841 days


Here's a screenshot of my last match.
Image

I attach the savegame of it and the config file used for all these matches.


Attachments:
Sem nome, 24 Abr 1985.png [60.94 KiB]
Not downloaded yet
Sem nome, 24 Abr 1985.sav [209.7 KiB]
Downloaded 3 times
openttd.cfg [10.89 KiB]
Downloaded 5 times

_________________
Formerly known as Samu
Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 7 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.