Terron AI

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

s0r00t
Engineer
Engineer
Posts: 9
Joined: 23 Feb 2013 14:09

Re: Terron AI

Post by s0r00t »

Hi,

Sorry to up this topic, but Terron has crashed :

In my save, Terron was the BEST ia ! UniTrans (his company) was President ! But, suddently, THIS error happened :

Image (im French and i use zBase for the graphics)

So i need to say it goodbye....
svetovoi
Engineer
Engineer
Posts: 87
Joined: 12 Oct 2007 14:07

Re: Terron AI

Post by svetovoi »

Thanks, s0r00t.
Fixed version available.
s0r00t
Engineer
Engineer
Posts: 9
Joined: 23 Feb 2013 14:09

Re: Terron AI

Post by s0r00t »

Thanks for the fast reply !

Just a dev question : Im working on a little IA for testing, but i don't all understand your "AIBuildCompanyHQAction" that i take for example. Can you explain me very fast how its works?

Thanks again !
svetovoi
Engineer
Engineer
Posts: 87
Joined: 12 Oct 2007 14:07

Re: Terron AI

Post by svetovoi »

Sure, better in PM i think.
Phrossi_TTD
Engineer
Engineer
Posts: 79
Joined: 12 Feb 2013 17:29

Re: Terron AI

Post by Phrossi_TTD »

BIG bug happened here at near-end of NoCarGoal game
see screen
2nd screen has info before the error
sorry for bump :oops:
Attachments
CarGo Trans, 22 Abr 1956.png
(34.63 KiB) Downloaded 1 time
CarGo Trans, 22 Abr 1956#1.png
(35.06 KiB) Downloaded 1 time
Activity-absent for now.
PLEASE DO NOT REPLY TO MY MESSAGES ANYMORE!
svetovoi
Engineer
Engineer
Posts: 87
Joined: 12 Oct 2007 14:07

Re: Terron AI

Post by svetovoi »

Thanks, i got the problem and probably can reproduce it.
May take some time though.

Ok, and there is changelog

Code: Select all

***v209***
- Change: Road section
  + fixed AI wrongly constructed separate depots for buses and mail trucks
    servicing same station
- Change: Air section
  + airports maintenance accounting
  + removed an option which allowed AI to spam airports -  it doesn't make
    sense anymore thanks to new high maintenance factor
- Fixed: crash due to town's service industry close down(e.g. water tower,
  thx Phrossi_TTD)
- Change: now always try to keep some money on balance to prevent absurd
  bankruptcy trigger
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: Terron AI

Post by xarick »

One Terron Docks is blocking the other Terron Docks.
Attachments
autosave11.sav
(183.8 KiB) Downloaded 149 times
Advanced Capital Ventures, 2012-05-21.png
Advanced Capital Ventures, 2012-05-21.png (210.63 KiB) Viewed 6192 times
openttdCore4.cfg
(10.75 KiB) Downloaded 160 times
Formerly known as Samu
svetovoi
Engineer
Engineer
Posts: 87
Joined: 12 Oct 2007 14:07

Re: Terron AI

Post by svetovoi »

Well, can't really predict everything. Eventually AI with blocked dock should stop using one though.
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: Terron AI

Post by xarick »

Your script made an error: empty array

OpenTTD version is custom, but it's based on the build from 22st July 2019.

I'm unsure if something about multi docks feature is causing this crash. It may be unrelated. Just me wondering.

EDIT: Forgive me, this save is useless for you. It requires this build viewtopic.php?f=33&t=85608 to load.
Attachments
terron crash multidocks maybe.sav
(3.42 MiB) Downloaded 174 times
terron crash.png
(228.23 KiB) Not downloaded yet
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: Terron AI

Post by xarick »

I tried to force terron to build only buses, but still ends building mail trucks.

Use buses : Town-to-Town transportation
Use trucks: No
Formerly known as Samu
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7234
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Terron AI

Post by Redirect Left »

xarick wrote: 18 Aug 2019 08:42 I tried to force terron to build only buses, but still ends building mail trucks.

Use buses : Town-to-Town transportation
Use trucks: No
Quick heads up, Given the original creator of this hasn't been online for over 1 + half years and outside of you posting, this thread has been dead since 2016, you may be waiting a while for any fixes. You may find it quicker to look at the files and try to patch it yourself.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: Terron AI

Post by xarick »

I got the empty array crash again, but it was again on a custom build :(
Attachments
screenshot113 (7).png
(141.53 KiB) Not downloaded yet
Formerly known as Samu
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests