Page 2 of 2

Re: TeshiNet, yet another AI

Posted: 29 Dec 2011 22:15
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?

Re: TeshiNet, yet another AI

Posted: 30 Dec 2011 00:20
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?

Re: TeshiNet, yet another AI

Posted: 30 Dec 2011 12:54
by bman
I downloaded it through the in-game downloader.

Re: TeshiNet, yet another AI

Posted: 10 Apr 2013 21:11
by Samu
This AI has never worked for me, says it's missing SuperLib V16? I think.

Re: TeshiNet, yet another AI

Posted: 10 Apr 2013 22:39
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.

Re: TeshiNet, yet another AI

Posted: 10 Apr 2013 23:42
by Samu
Ah! Can't it be fixed at that end? That would be appreciated.

Re: TeshiNet, yet another AI

Posted: 25 May 2013 15:09
by Phrossi_TTD
passing by here to report an bug on 1.3 when it tries to build an air connection

Re: TeshiNet, yet another AI

Posted: 14 Jul 2013 20:44
by Wormnest
Teshinet crashes when trying to upgrade a level crossing.

Re: TeshiNet, yet another AI

Posted: 14 Jul 2013 23:02
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)

Re: TeshiNet, yet another AI

Posted: 14 Nov 2015 04:01
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.

Re: TeshiNet, yet another AI

Posted: 10 Jun 2016 17:23
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.

Re: TeshiNet, yet another AI

Posted: 23 Aug 2016 21:58
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

Re: TeshiNet, yet another AI

Posted: 18 Sep 2016 22:07
by Kogut
crash

Re: TeshiNet, yet another AI

Posted: 23 Jan 2018 22:55
by xarick
Crashed, while testing aircraft only vs other ais.

Re: TeshiNet, yet another AI

Posted: 26 Apr 2019 17:14
by xarick
Parameter 1 has na invalid type 'null' ; expected: 'integer'