Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Sat Jul 21, 2018 11:30 am

All times are UTC




Post new topic  Reply to topic  [ 251 posts ]  Go to page Previous 19 10 11 12 13
Author Message
PostPosted: Fri Jan 16, 2015 10:34 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 963
Location: Birmingham, England
I never have inflation on so I suppose this 'problem' won't affect me when I use SimpleAI ?


Top
   
PostPosted: Fri Jan 16, 2015 12:48 pm 
Offline
Chairman
Chairman

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 881
Yes, it won't affect you. I also never play with inflation myself, the AI actually doesn't cope that well with inflation...


Top
   
PostPosted: Fri Jan 16, 2015 1:14 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Oct 21, 2005 9:26 am
Posts: 963
Location: Birmingham, England
...neither do I. Thanks for that info.


Top
   
PostPosted: Sun Jan 18, 2015 7:06 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1494
Location: The sunny side of Alps
If starting strong (some trains or planes), the SimpleAI copes normally with inflation (4% interest rate),
of course with fixed inflation-affected calculation.

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
   
PostPosted: Wed Aug 12, 2015 5:21 pm 
Offline
Chairman
Chairman

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 881
Long time, no see, eh? :)

I received a contribution from 3iff, which enables the AI to use a custom company naming scheme instead of the default "<town name> Transport" style. It can be enabled in the settings of the AI.
Examples:
Attachment:
SimpleAI names.png
SimpleAI names.png [ 25.53 KiB | Viewed 1764 times ]


I've also fixed the problem with the inflation discussed in the last page (hopefully...).

So the new version is out, you can download it from your favourite fruit store or the first post of this thread.


Top
   
PostPosted: Mon Jun 20, 2016 10:13 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 212
SimpleAI v10 OpenTTD 1.6.1-RC1

SimpleAI crashed with "Too long to save." error. Server started in 1950.

Quote:
dbg: [script] [0] [W] Trying to get subsidy:
dbg: [script] [0] [I] PASS from Benfingbridge to Sondtown
dbg: [script] [0] [I] Using single rail
dbg: [script] [0] [I] Chosen wagon: Passenger Carriage
dbg: [script] [0] [I] Chosen engine: 'Millennium Z1' (Electric)
dbg: [script] [0] [W] Could not build source station at Benfingbridge
dbg: [script] [0] [I] _______________________
dbg: [script] [0] [I]
dbg: [script] [0] [I] Train 1,303 is getting old, sending it to the depot...
dbg: [script] [0] [I] Train 1,304 is getting old, sending it to the depot...
dbg: [script] [0] [W] Trying to get subsidy:
dbg: [script] [0] [I] MAIL from Slinthill to Sennington
dbg: [script] [0] [E] No vehicle type available!
dbg: [script] [0] [I] _______________________
dbg: [script] [0] [I]
dbg: [script] [0] [W] Trying to get subsidy:
dbg: [script] [0] [I] PASS from Benfingbridge to Sondtown
dbg: [script] [0] [I] Using single rail
dbg: [script] [0] [I] Chosen wagon: Passenger Carriage
dbg: [script] [0] [I] Chosen engine: 'Millennium Z1' (Electric)
dbg: [script] [0] [W] Could not build source station at Benfingbridge
dbg: [script] [0] [I] _______________________
dbg: [script] [0] [I]
dbg: [script] [0] [I] Train 560 is getting old, sending it to the depot...
dbg: [script] [0] [I] Train 1,305 is getting old, sending it to the depot...
dbg: [script] [0] [W] Trying to get subsidy:
dbg: [script] [0] [I] PASS from Benfingbridge to Sondtown
dbg: [script] [0] [I] Using single rail
dbg: [script] [0] [I] Chosen wagon: Passenger Carriage
dbg: [script] [0] [I] Chosen engine: 'Millennium Z1' (Electric)
dbg: [script] [0] [W] Could not build source station at Benfingbridge
dbg: [script] [0] [I] _______________________
dbg: [script] [0] [I]
dbg: [script] [0] [I] Train 1,306 is getting old, sending it to the depot...
dbg: [script] [0] [E] This script took too long to Save.
dbg: [script] The script died unexpectedly.
One of the running scripts crashed. Please report this to the script author with a screenshot of the AI/Game Script Debug Window


Attachments:
Senfingbridge Transport, 1st Dec 2009.sav [3.73 MiB]
Downloaded 47 times
Senfingbridge Transport, 1st Jan 2010.sav [3.68 MiB]
Downloaded 43 times
openttdCore2.cfg [11.97 KiB]
Downloaded 40 times

_________________
Formerly known as Samu
Top
   
PostPosted: Mon Jun 27, 2016 6:24 pm 
Offline
Chairman
Chairman

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 881
Whoa, that's unexpected, considering that SimpleAI doesn't do anything fancy when saving.

I loaded your savegames, and this is definitely a game too large for this AI. The game stutters quite hard, probably when the AI is doing the general maintenance loop on its routes. It doesn't stutter that hard with the 2010 savegame, so I assume that it's indeed the AI that causes the stuttering. The 2010 savegame is after the crash, right? Because the AI didn't load anything from that one, and it may explain why the 2010 savegame is easier on my computer.

The AI probably has more than 1000 routes in this game, and it seems that this is simply too much. The only solution to this is to introduce a cap for the number of routes that can be built. It's too bad though that it is quite hard to determine a suitable cap :)
For the time being, using lower limits for vehicles or a smaller map will probably avoid this problem.

Thanks for reporting!


Top
   
PostPosted: Wed May 10, 2017 10:16 pm 
Offline
Chairman
Chairman

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 881
New version! :) (although it's only a small bugfix...)

There was a recent test done by DerekCZ, which tested the AIs with the World Airliners Set. While the AI did well in DerekCZ's test, Wormnest also tested the AI, and he found out that the AI sometimes won't start building aircraft even when they're the only allowed means of transportation.
So this bug was fixed, SimpleAI should be able to start now if there are some planes it can actually afford.

Version 11 was skipped simply because I messed up the first upload to Bananas :|

And as usual, the new version is available from Bananas or the first post of this thread.


Top
   
PostPosted: Sat Oct 21, 2017 7:02 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Sat Mar 06, 2004 11:51 pm
Posts: 1494
Location: The sunny side of Alps
Thank you for this new release, Brumi. As ever, your AI complements OpenTTD perfectly. 8)

_________________
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.

Keep 'em rollin'!


Top
   
PostPosted: Tue Feb 27, 2018 10:46 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 212
SimpleAI v12, 1.7.2

While testing the new version, it took too long to save while competing for 100 years trains only.

Code:
dbg: [script] [0] [I] _______________________
dbg: [script] [0] [I]
dbg: [script] [0] [W] Trying to build new service:
dbg: [script] [0] [I] WHEA from Tunston Farm to Frinfinghill City Food Processing Plant
dbg: [script] [0] [I] Using double rail
dbg: [script] [0] [I] Chosen wagon: Grain Hopper
dbg: [script] [0] [I] Chosen engine: 'Millennium Z1' (Electric)
dbg: [script] [0] [I] New station successfully built: Tunston Exchange
dbg: [script] [0] [I] New station successfully built: Frinfinghill City Branch
dbg: [script] [0] [I] Pathfinding...
dbg: [script] [0] [W] Pathfinding failed.
dbg: [script] [0] [I] _______________________
dbg: [script] [0] [I]
dbg: [script] [0] [E] This script took too long to Save.
dbg: [script] The script died unexpectedly.
One of the running scripts crashed. Please report this to the script author with a screenshot of the AI/Game Script Debug Window


Attachments:
File comment: last month alive
Grendingham Transport, 1st Jul 2019.sav [3.87 MiB]
Downloaded 10 times
File comment: dead
Grendingham Transport, 1st Aug 2019.sav [3.83 MiB]
Downloaded 10 times

_________________
Formerly known as Samu
Top
   
PostPosted: Wed Feb 28, 2018 9:48 am 
Offline
Chairman
Chairman

Joined: Sat Jul 18, 2009 5:54 pm
Posts: 881
Thanks for the report :)
I see you've already encountered this problem more than a year ago... Although there are no guarantees that such a fix will work, I will simply have to introduce a hard limit on the number of routes the AI may build.
I don't know when I will be able to gather some time to do it though, but hopefully not too far in the future :)


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 251 posts ]  Go to page Previous 19 10 11 12 13

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.