MailAI

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

Hephi
Engineer
Engineer
Posts: 69
Joined: 25 Oct 2009 09:56
Location: Belgium

Re: MailAI

Post by Hephi » 18 Oct 2013 19:12

You're absolutely right, didn't see it properly. Then it's more then likely an index out of bounds thing as the concat function takes the first four letters of the town name.
I'll probably have time tomorrow to take a look. Thanks for pointing this out guys/girls. :)

Edited to let you know the patched version is up.
--------------------------------------------------
MailAI, a casual postal service for openTTD.
--------------------------------------------------

Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: MailAI

Post by Kogut » 07 Dec 2013 12:38

A crash.
Attachments
Przechwytywanie.PNG
(41.81 KiB) Downloaded 7 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD

Hephi
Engineer
Engineer
Posts: 69
Joined: 25 Oct 2009 09:56
Location: Belgium

Re: MailAI

Post by Hephi » 03 Jan 2014 00:26

Thank you for reporting Kogut. In two months I'll be home again and will take a look. Hope you enjoyed MailAI so far.
--------------------------------------------------
MailAI, a casual postal service for openTTD.
--------------------------------------------------

User avatar
kamnet
Moderator
Moderator
Posts: 6605
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: MailAI

Post by kamnet » 08 Jan 2014 03:02

Started a save game and MailAI crashed.
Attachments
mailai-error.png
mailai-error.png (12.76 KiB) Viewed 2454 times

Hephi
Engineer
Engineer
Posts: 69
Joined: 25 Oct 2009 09:56
Location: Belgium

Re: MailAI

Post by Hephi » 16 Mar 2014 09:34

Thanks Kamnet,

I'm back on land and probably will be fiddling around with openttd soon (although I'm trying to get the hang of Unity as well).

Hope you've enjoyed the AI in other games.
--------------------------------------------------
MailAI, a casual postal service for openTTD.
--------------------------------------------------

Benstein
Engineer
Engineer
Posts: 1
Joined: 03 Dec 2017 23:19

Re: MailAI

Post by Benstein » 03 Dec 2017 23:24

Hallo,

Ik kreeg bijgevoegde foutmelding en dacht: Geweldig spel, kan alleen maar beter worden maar wel dmv feedback. Dus bij dezen :)
Attachments
error.jpg
error.jpg (224.91 KiB) Viewed 1587 times

User avatar
acs121
Tycoon
Tycoon
Posts: 1900
Joined: 03 Nov 2017 18:57
Location: Courbevoie, near Paris, France

Re: MailAI

Post by acs121 » 04 Dec 2017 16:58

Are road vehicles or trains disabled in your game ? Check the parameters.

xarick
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 26 Feb 2015 00:52

Re: MailAI

Post by xarick » 08 Oct 2018 16:04

cpu valuator crash
dbg: [script] [0] Renewing: Road Vehicle 8
dbg: [script] [0] Renewed: Road Vehicle 8 as Road Vehicle 11
dbg: [script] [0] 12 towns with enough population for Mail Service.
dbg: [script] [0] Found 9 possible road routes. (broad search)
dbg: [script] [0] 12 towns with enough population for Mail Service.
dbg: [script] [0] Found 9 possible road routes. (broad search)
dbg: [script] [0] 12 towns with enough population for Mail Service.
dbg: [script] [0] Found 9 possible road routes. (broad search)
dbg: [script] [0] 12 towns with enough population for Mail Service.
dbg: [script] [0] Found 9 possible road routes. (broad search)
dbg: [script] [0] [I] 13 towns with enough population for Mail Service.
dbg: [script] [0] [I] Found 9 possible road routes. (broad search)
dbg: [script] [0] [I] 14 towns with enough population for Mail Service.
dbg: [script] [0] [I] Found 11 possible road routes. (broad search)
dbg: [script] [0] [I] Re-using existing truck station in Sunninghall.
dbg: [script] [0] [I] ----------------------------------------------
dbg: [script] [0] [W] Route created connecting Sunninghall, Guntborough,
dbg: [script] [0] [I] Using Reynard Mail Truck at max. speed: 55
dbg: [script] [0] [I] Distance travelled: 57 in 18 days.
dbg: [script] [0] [I] ----------------------------------------------
dbg: [script] [0] Your script made an error: excessive CPU usage in valuator function
dbg: [script] [0]
dbg: [script] [0] *FUNCTION [GetNewTruckStopList()] mailai-2.22\TownManager.nut line [185]
dbg: [script] [0] *FUNCTION [HasTruckStopPotential()] mailai-2.22\TownManager.nut line [158]
dbg: [script] [0] *FUNCTION [BuildLine()] mailai-2.22\BuildManager.nut line [28]
dbg: [script] [0] *FUNCTION [BuildNewRoute()] mailai-2.22\RoutePlanner.nut line [164]
dbg: [script] [0] *FUNCTION [Start()] mailai-2.22\main.nut line [145]
dbg: [script] [0]
dbg: [script] [0] [dist] 14
dbg: [script] [0] [tile_list] INSTANCE
dbg: [script] [0] [S] [result_list] INSTANCE
dbg: [script] [0] [S] [articulated] false
dbg: [script] [0] [S] [town] 11
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [town_id] 11
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [town_id2] 13
dbg: [script] [0] [S] [town_id1] 11
dbg: [script] [0] [S] [engine] 127
dbg: [script] [0] [S] [route_array] ARRAY
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [route_object] NULL
dbg: [script] [0] [S] [engine] NULL
dbg: [script] [0] [S] [next_route] ARRAY
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [month] 12
dbg: [script] [0] [S] [route_planner] INSTANCE
dbg: [script] [0] [S] [this] INSTANCE
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
dbg: [script] [0] [I] Please report the error to the following URL:
dbg: [script] [0] [I] http://www.tt-forums.net/viewtopic.php?t=52478
Attachments
Mail AI, 1st Dec 2016.sav
(163.6 KiB) Downloaded 55 times
openttdCore5log.txt
(90.83 KiB) Downloaded 50 times
Formerly known as Samu

xarick
Transport Coordinator
Transport Coordinator
Posts: 260
Joined: 26 Feb 2015 00:52

Re: MailAI

Post by xarick » 04 Dec 2018 01:55

Mail AI was attempting to resize a train, but there seems to be issues when attaching dual-headed engines. The resulting train became longer and could no longer fit the station. When trying to reverse from the station, it became stuck between it and the one-way path signal.
Attachments
Sem nome, 31 Dez 1967.png
(72.18 KiB) Not downloaded yet
Sem nome, 15 Nov 1967.sav
(82.29 KiB) Downloaded 31 times
Formerly known as Samu

Baldy's Boss
Tycoon
Tycoon
Posts: 1308
Joined: 23 Feb 2014 22:02

Re: MailAI

Post by Baldy's Boss » 21 Dec 2018 23:27

I'm getting recurring "Excessive CPU usage in valuator" crashes on this AI.

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest