TeshiNet, yet another 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

bman
Engineer
Engineer
Posts: 8
Joined: 29 Dec 2011 22:08

Re: TeshiNet, yet another AI

Post by bman »

I get this error when it loads the AI:
"Your script made an error: couldn't find library 'util.superlib'"


I have superlib-16. Is there something I'm missing?
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: TeshiNet, yet another AI

Post by Zuu »

Did you download TeshiNet and SuperLib via the in-game downloader? Or did you manually download them? In the later case, where exactly did you place the files?
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
bman
Engineer
Engineer
Posts: 8
Joined: 29 Dec 2011 22:08

Re: TeshiNet, yet another AI

Post by bman »

I downloaded it through the in-game downloader.
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: TeshiNet, yet another AI

Post by Samu »

This AI has never worked for me, says it's missing SuperLib V16? I think.
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: TeshiNet, yet another AI

Post by Zuu »

If you need to dowload libraries manually, you can obtain old versions here:
http://noai.openttd.org/downloads/Libraries/

SuperLib v16, and its dependencies:
- PathFinder.Road v3
- Graph.AyStar v4


Edit: If you got TeshiNet via bananas, you already got PathFinder.Road v3 and Graph.AyStar v4. This is because in bananas, TeshiNet depends on SuperLib 17 which depends on PathFined.Road v3 which in turn depends on Graph.AyStar v4.

So the problem at hand is that the bananas entry for TeshiNet depends on SuperLib v17, while the AI itself tries to import version 16 of SuperLib which will fail because an AI needs exactly the correct version of a library when importing it.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: TeshiNet, yet another AI

Post by Samu »

Ah! Can't it be fixed at that end? That would be appreciated.
Phrossi_TTD
Engineer
Engineer
Posts: 79
Joined: 12 Feb 2013 17:29

Re: TeshiNet, yet another AI

Post by Phrossi_TTD »

passing by here to report an bug on 1.3 when it tries to build an air connection
Attachments
bug.png
the bug
(158.69 KiB) Downloaded 3 times
Activity-absent for now.
PLEASE DO NOT REPLY TO MY MESSAGES ANYMORE!
Wormnest
Engineer
Engineer
Posts: 117
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: TeshiNet, yet another AI

Post by Wormnest »

Teshinet crashes when trying to upgrade a level crossing.
Attachments
Unnamed, 11th Jun 2010.png
(1.22 MiB) Downloaded 2 times
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: TeshiNet, yet another AI

Post by Zuu »

The problem is that TeshiNet calls SuperLib.Road.ConvertRailCrossingToBridge(rail_tile, prev_tile) with prev_tile as null. However, prev_tile should be a tile adjacent to rail_tile. (both rail_tile and prev_tile should have road)
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
HGus
Engineer
Engineer
Posts: 121
Joined: 12 May 2013 22:28
Location: Argentina

Re: TeshiNet, yet another AI

Post by HGus »

I got this error a couple of times. I don't know if it is a problem in TeshiNet or the library. It is triggered in coastal cities.
Attachments
HGus Transport, 1748-08-11#2.png
HGus Transport, 1748-08-11#2.png (308.84 KiB) Viewed 1143 times
xarick
Transport Coordinator
Transport Coordinator
Posts: 336
Joined: 26 Feb 2015 00:52

Re: TeshiNet, yet another AI

Post by xarick »

dbg: [script] [0] Your script made an error: the index 'station_id' does not exist
dbg: [script] [0]
dbg: [script] [0] *FUNCTION [BuildPassengerRoute()] teshinet-4.0.3\main.nut line [664]
dbg: [script] [0] *FUNCTION [NewRoadRoute()] teshinet-4.0.3\main.nut line [459]
dbg: [script] [0] *FUNCTION [Start()] teshinet-4.0.3\main.nut line [209]
dbg: [script] [0]
dbg: [script] [0] [endReturn] TABLE
dbg: [script] [0] [startReturn] false
dbg: [script] [0] [endDepotTile] -1
dbg: [script] [0] [startDepotTile] -1
dbg: [script] [0] [S] [endStationTile] -1
dbg: [script] [0] [S] [startStationTile] -1
dbg: [script] [0] [S] [townEndTile] 958565
dbg: [script] [0] [S] [townStartTile] -1
dbg: [script] [0] [S] [townEnd] 166
dbg: [script] [0] [S] [townStart] 533
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [cargoType] 0
dbg: [script] [0] [S] [indPair] NULL
dbg: [script] [0] [S] [townPair] NULL
dbg: [script] [0] [S] [destIdx] 166
dbg: [script] [0] [S] [startIdx] 533
dbg: [script] [0] [S] [mySubsidy] 2
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [skipPlaneRoute] true
dbg: [script] [0] [S] [skipNewRoute] false
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] The script died unexpectedly.


Crashes shortly after loading the attached savegame.
Attachments
openttdCore7.cfg
(10.98 KiB) Downloaded 255 times
TeshiNet, 1st Apr 1967.sav
(1.71 MiB) Downloaded 155 times
TeshiNet, 1967-05-15.png
TeshiNet, 1967-05-15.png (56.13 KiB) Viewed 6248 times
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 336
Joined: 26 Feb 2015 00:52

Re: TeshiNet, yet another AI

Post by xarick »

TeshiNet crashes
dbg: [script] [0] [E] [1971-08-16] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-17] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-17] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-18] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-18] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-18] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-18] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-19] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-19] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-20] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-20] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-20] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-20] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-21] Managing existing routes.
dbg: [script] [0] [1971-08-21] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-21] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-22] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-22] Unable to find a suitable town pair.
dbg: [script] [0] [1971-08-22] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-22] Unable to find a suitable town pair.
dbg: [script] [0] [I] [1971-08-23] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-23] Unable to find a suitable town pair.
dbg: [script] [0] [I] [1971-08-24] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-24] Unable to find a suitable town pair.
dbg: [script] [0] [I] [1971-08-24] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-24] Unable to find a suitable town pair.
dbg: [script] [0] [I] [1971-08-25] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-25] Unable to find a suitable town pair.
dbg: [script] [0] [I] [1971-08-26] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-26] Unable to find a suitable town pair.
dbg: [script] [0] [I] [1971-08-26] Constructing a new road route.
dbg: [script] [0] [E] [1971-08-26] Unable to find a suitable town pair.
dbg: [script] [0] [I] [1971-08-26] Trying to build an airport route
dbg: [script] [0] Your script made an error: parameter 1 has an invalid type 'null' ; expected: 'integer'
dbg: [script] [0]
dbg: [script] [0] *FUNCTION [FindAirportPair()] teshinet-4.0.3\planes.nut line [256]
dbg: [script] [0] *FUNCTION [BuildAirRoute()] teshinet-4.0.3\planes.nut line [44]
dbg: [script] [0] *FUNCTION [Start()] teshinet-4.0.3\main.nut line [219]
dbg: [script] [0]
dbg: [script] [0] [town_list] INSTANCE
dbg: [script] [0] [pair] NULL
dbg: [script] [0] [secondTown] NULL
dbg: [script] [0] [second] NULL
dbg: [script] [0] [S] [firstTown] 87
dbg: [script] [0] [S] [first] 210895
dbg: [script] [0] [S] [airport_rad] 5
dbg: [script] [0] [S] [airport_y] 6
dbg: [script] [0] [S] [airport_x] 6
dbg: [script] [0] [S] [airport_type] 1
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [airport_type] 1
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [skipPlaneRoute] false
dbg: [script] [0] [S] [skipNewRoute] false
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
Attachments
TeshiNet, 1st Aug 1971.sav
(565.88 KiB) Downloaded 166 times
openttdCore7.cfg
(10.8 KiB) Downloaded 159 times
openttdCore7.txt
(202.81 KiB) Downloaded 147 times
Formerly known as Samu
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: TeshiNet, yet another AI

Post by Kogut »

crash
Attachments
Selection_003.png
Selection_003.png (103.19 KiB) Viewed 1143 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
xarick
Transport Coordinator
Transport Coordinator
Posts: 336
Joined: 26 Feb 2015 00:52

Re: TeshiNet, yet another AI

Post by xarick »

Crashed, while testing aircraft only vs other ais.
Attachments
Sem nome, 2019-09-11.png
(48.55 KiB) Not downloaded yet
Sem nome, 2019-09-13.sav
(1.51 MiB) Downloaded 150 times
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 336
Joined: 26 Feb 2015 00:52

Re: TeshiNet, yet another AI

Post by xarick »

Parameter 1 has na invalid type 'null' ; expected: 'integer'
Attachments
R09-G23 - SnakeAI vs TeshiNet - 8,430 days.sav
(183.67 KiB) Downloaded 117 times
Unnamed, 2018-10-30.png
(739.35 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 6 guests