NoNoCAB

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

Wormnest
Engineer
Engineer
Posts: 91
Joined: 14 Jul 2013 12:33
Location: Netherlands

NoNoCAB

Post by Wormnest » 10 Jul 2016 17:32

NoNoCAB is a forked version of NoCAB which fixes the most annoying bugs and crashes in NoCAB.

NoCAB is in general a very well performing AI but it has some problems which have made it less fun to use. Since there hasn't been any progress in a while I decided to see if I could do
something about the biggest problems especially the crashing while saving. Besides that lots of other problems have been fixed and improvements have been made.

Current version: 6, released April 23, 2019.

Details about all changes can be found in my forked repository: https://bitbucket.org/jacobb/nocab/overview

There are still enough parts that could be improved but I think it should perform a lot better than before in most cases. Give it a try a let me know what you think.
I am not aware of any crashes still appearing but please report any problems that you encounter.

The original NoCAB is an AI by Morloth.

Original NoCABforum topics:
NoCAB
NoCAB Bleeding Edge

NoNoCAB is now available on bananas.
Last edited by Wormnest on 23 Apr 2019 23:15, edited 3 times in total.

mattomondo
Engineer
Engineer
Posts: 2
Joined: 11 Jul 2016 02:43

Re: NoNoCAB

Post by mattomondo » 11 Jul 2016 04:36

The AI crashed. Followed the link that said to report it here.

https://imgur.com/mjDv5ip

Wormnest
Engineer
Engineer
Posts: 91
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: NoNoCAB

Post by Wormnest » 11 Jul 2016 09:29

Thanks for reporting. I forgot that it needs the AI Library "Queue.BinaryHeap".

If you download that library (available from the online content) the problem should be fixed. I have also added the requirement to bananas so future downloads should automatically also download the library.

mattomondo
Engineer
Engineer
Posts: 2
Joined: 11 Jul 2016 02:43

Re: NoNoCAB

Post by mattomondo » 11 Jul 2016 20:59

Awesome, thanks for addressing it so quickly! I'll give it another spin tonight and will report back if I run into any other issues.

Wormnest
Engineer
Engineer
Posts: 91
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: NoNoCAB

Post by Wormnest » 11 Jul 2016 22:26

I just added version 2 to bananas since I encountered a crash when loading a savegame under certain rare occasions.
I also fixed the problem that lead to this.

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

Re: NoNoCAB

Post by xarick » 16 Jul 2016 12:01

While testing road vehicles it crashed.

dbg: [script] [0] INFO: TRUCK CONNECTION: {1.58764, }2.72523, }
dbg: [script] [0] INFO: Prospected avg earnings: 3619.82, actual avg earnings: 2731 for connection From: Plartown Forest to Gudhall Sawmill carrying: WOOD
dbg: [script] [0] INFO: TRUCK CONNECTION: {-8.36953, }-16.7391, }
dbg: [script] [0] [W] WARNING: Prospected avg earnings: 3531.94, actual avg earnings: -422 for connection From: Canhall Farm to Dintbridge Factory carrying: GRAI
dbg: [script] [0] INFO: TRUCK CONNECTION: {1.38979, }2.38564, }
dbg: [script] [0] INFO: Prospected avg earnings: 3140.92, actual avg earnings: 2707 for connection From: Satown Oil Wells to Gondtown Oil Refinery carrying: OIL_
dbg: [script] [0] INFO: TRUCK CONNECTION: {1.2691, }2.53821, }
dbg: [script] [0] INFO: Prospected avg earnings: 3089, actual avg earnings: 2434 for connection From: Tutburg Factory to Sennton carrying: GOOD
dbg: [script] [0] INFO: TRUCK CONNECTION: {1.30389, }2.61735, }
dbg: [script] [0] INFO: Prospected avg earnings: 2865.96, actual avg earnings: 2190 for connection From: Tunborough Steel Mill to Sufingwell Factory carrying: STEL
dbg: [script] [0] INFO: TRUCK CONNECTION: {1.24739, }2.49064, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 2622.02, actual avg earnings: 2105 for connection From: Dradhead Sawmill to Dunborough Bay carrying: GOOD
dbg: [script] [0] [I] INFO: TRUCK CONNECTION: {3.38643, }6.86571, }10.8318, }19.0648, }28.2121, }37.5605, }42.0544, }46.4591, }50.5099, }54.9656, }
dbg: [script] [0] [W] WARNING: Prospected avg earnings: 15733.3, actual avg earnings: 3293 for connection From: Defingford to Mondston carrying: PASS
dbg: [script] [0] [I] INFO: TRUCK CONNECTION: {1.18325, }2.36471, }3.54724, }4.73156, }5.91517, }7.09949, }8.27952, }9.45885, }10.6421, }11.825, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 3915.36, actual avg earnings: 3311 for connection From: Rardtown Coal Mine to Puborough Power Station carrying: COAL
dbg: [script] [0] [I] INFO: TRUCK CONNECTION: {1.85143, }3.67495, }5.5269, }7.33096, }9.13749, }10.9902, }12.7726, }14.6173, }16.4016, }17.9174, }19.4159, }21.2831, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 13185.9, actual avg earnings: 7474 for connection From: Prarhill to Ganingwell Ridge carrying: PASS
dbg: [script] [0] [I] INFO: TRUCK CONNECTION: {}1.23665, }}
dbg: [script] [0] [I] INFO: Prospected avg earnings: 10956.7, actual avg earnings: 8860 for connection From: Fendhead Cross to Londhall carrying: PASS
dbg: [script] [0] [I] INFO: TRUCK CONNECTION: {}1.30083, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 12887.3, actual avg earnings: 9907 for connection From: Munninghead to Tarston carrying: PASS
dbg: [script] [0] [I] INFO: TRUCK CONNECTION: {1.24127, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 12490.9, actual avg earnings: 10063 for connection From: Sleham to Sedwood carrying: PASS
dbg: [script] [0] [E] ERROR: vehicleCapacity == 0 for vehicle Road Vehicle 2,854, cargo: STEL
dbg: [script] [0] [W] WARNING: Connection this belongs to: From: Maninghead Cross Steel Mill to Hendham Factory carrying: STEL
dbg: [script] [0] Your script made an error: assertion failed
dbg: [script] [0]
dbg: [script] [0] *FUNCTION [Start()] nonocab-2\main.nut line [281]
dbg: [script] [0]
dbg: [script] [0] [vehicleCapacity] 0
dbg: [script] [0] [travelTime] 32
dbg: [script] [0] [travelTimeBackward] 15
dbg: [script] [0] [travelTimeForward] 17
dbg: [script] [0] [transportEngineID] 117
dbg: [script] [0] [@ITERATOR@] 3395
dbg: [script] [0] [S] [value] 0
dbg: [script] [0] [S] [vehicle] 3395
dbg: [script] [0] [S] [percentageList] "{"
dbg: [script] [0] [S] [actualAvgEarnings] 0
dbg: [script] [0] [S] [prospectedAvgEarnings] 0
dbg: [script] [0] [S] [percentageError] 0
dbg: [script] [0] [S] [incomeError] 0
dbg: [script] [0] [S] [numberOfVehicles] 0
dbg: [script] [0] [S] [cargoIDTransported] 9
dbg: [script] [0] [S] [allVehiclesInGroup] INSTANCE
dbg: [script] [0] [S] [@ITERATOR@] 450
dbg: [script] [0] [S] [connection] INSTANCE
dbg: [script] [0] [S] [@INDEX@] 449
dbg: [script] [0] [S] [counter] 4746
dbg: [script] [0] [S] [airplanePercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfAirplanes] 0
dbg: [script] [0] [S] [truckPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfTrucks] 431
dbg: [script] [0] [S] [trainPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfTrains] 0
dbg: [script] [0] [S] [shipPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfShips] 0
dbg: [script] [0] [S] [la] INSTANCE
dbg: [script] [0] [S] [secureRights] false
dbg: [script] [0] [S] [buildStatues] false
dbg: [script] [0] [S] [plantTrees] true
dbg: [script] [0] [S] [politicHardness] 1
dbg: [script] [0] [S] [_version] " - v2"
dbg: [script] [0] [S] [companyName] "NoNoCAB"
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] viewtopic.php?f=65&t=75030
Attachments
NoNoCAB - v2, 1st Nov 1969.sav
Last month alive
(2.38 MiB) Downloaded 94 times
NoNoCAB - v2, 1st Dec 1969.sav
Already dead
(2.26 MiB) Downloaded 87 times
openttdCore7.cfg
(11.81 KiB) Downloaded 92 times
Last edited by xarick on 17 Jul 2016 00:38, edited 1 time in total.
Formerly known as Samu

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

Re: NoNoCAB

Post by xarick » 16 Jul 2016 15:47

crashed while testing YAPF ships.
dbg: [script] [0] INFO: Prospected avg earnings: 47454.4, actual avg earnings: 33368 for connection From: Frendhead Cross to Dradingham carrying: PASS
dbg: [script] [0] INFO: SHIP CONNECTION: {3.36781, }8.00994, }11.3381, }16.0829, }
dbg: [script] [0] [W] WARNING: Prospected avg earnings: 71205.6, actual avg earnings: 18221 for connection From: Punwell Ridge to Ledingbury carrying: PASS
dbg: [script] [0] INFO: SHIP CONNECTION: {}}}2.02394, }3.59776, }}
dbg: [script] [0] INFO: Prospected avg earnings: 52323, actual avg earnings: 29549 for connection From: Sindworth to Slarnhall carrying: PASS
dbg: [script] [0] INFO: SHIP CONNECTION: {1.13872, }2.27946, }
dbg: [script] [0] INFO: Prospected avg earnings: 62133, actual avg earnings: 54515 for connection From: Frinninghall to Sontburg carrying: PASS
dbg: [script] [0] INFO: SHIP CONNECTION: {1.70264, }
dbg: [script] [0] INFO: Prospected avg earnings: 43265.8, actual avg earnings: 25411 for connection From: Gradinghall Oil Rig to Pinfingley Oil Refinery carrying: OIL_
dbg: [script] [0] INFO: SHIP CONNECTION: {2.13142, }4.24756, }6.08816, }8.60993, }
dbg: [script] [0] INFO: Prospected avg earnings: 63740.1, actual avg earnings: 29983 for connection From: Flundwood to Sonnpool carrying: PASS
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {0.771761, }1.98693, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 18039.1, actual avg earnings: 19109 for connection From: Genninghead Cross Oil Rig to Trunnton Oil Refinery carrying: OIL_
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {1.90186, }3.47155, }5.02692, }6.59571, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 49627.2, actual avg earnings: 30312 for connection From: Cutown to Tonninghall carrying: PASS
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {}}1.82934, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 55487.6, actual avg earnings: 30332 for connection From: Plendston to Waston carrying: PASS
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {}}}1.82166, }3.35519, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 48450.6, actual avg earnings: 29095 for connection From: Hunston to Trinningbury carrying: PASS
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {}1.35259, }2.7106, }}
dbg: [script] [0] [I] INFO: Prospected avg earnings: 46729.2, actual avg earnings: 34479 for connection From: Senston to Banwell carrying: PASS
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {}}1.60141, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 57633, actual avg earnings: 35989 for connection From: Great Sabourne to Cardston carrying: PASS
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {}}}}}}}1.65716, }3.3164, }4.98145, }6.27008, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 45086.4, actual avg earnings: 29111 for connection From: Duntbridge to Garningville carrying: PASS
dbg: [script] [0] [I] INFO: SHIP CONNECTION: {1.26808, }2.53344, }
dbg: [script] [0] [I] INFO: Prospected avg earnings: 51344.5, actual avg earnings: 40533 for connection From: Narningwell to Kefingley carrying: PASS
dbg: [script] [0] [E] ERROR: vehicleCapacity == 0 for vehicle Ship 2,189, cargo: GOOD
dbg: [script] [0] [W] WARNING: Connection this belongs to: From: Denfingbridge Sawmill to Wranpool carrying: GOOD
dbg: [script] [0] Your script made an error: assertion failed
dbg: [script] [0]
dbg: [script] [0] *FUNCTION [Start()] nonocab-2\main.nut line [281]
dbg: [script] [0]
dbg: [script] [0] [vehicleCapacity] 0
dbg: [script] [0] [travelTime] 102
dbg: [script] [0] [travelTimeBackward] 51
dbg: [script] [0] [travelTimeForward] 51
dbg: [script] [0] [transportEngineID] 204
dbg: [script] [0] [@ITERATOR@] 2196
dbg: [script] [0] [S] [value] 0
dbg: [script] [0] [S] [vehicle] 2196
dbg: [script] [0] [S] [percentageList] "{}"
dbg: [script] [0] [S] [actualAvgEarnings] 0
dbg: [script] [0] [S] [prospectedAvgEarnings] 0
dbg: [script] [0] [S] [percentageError] 0
dbg: [script] [0] [S] [incomeError] 0
dbg: [script] [0] [S] [numberOfVehicles] 0
dbg: [script] [0] [S] [cargoIDTransported] 5
dbg: [script] [0] [S] [allVehiclesInGroup] INSTANCE
dbg: [script] [0] [S] [@ITERATOR@] 658
dbg: [script] [0] [S] [connection] INSTANCE
dbg: [script] [0] [S] [@INDEX@] 657
dbg: [script] [0] [S] [counter] 2653
dbg: [script] [0] [S] [airplanePercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfAirplanes] 0
dbg: [script] [0] [S] [truckPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfTrucks] 0
dbg: [script] [0] [S] [trainPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfTrains] 0
dbg: [script] [0] [S] [shipPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfShips] 609
dbg: [script] [0] [S] [la] INSTANCE
dbg: [script] [0] [S] [secureRights] true
dbg: [script] [0] [S] [buildStatues] true
dbg: [script] [0] [S] [plantTrees] true
dbg: [script] [0] [S] [politicHardness] 3
dbg: [script] [0] [S] [_version] " - v2"
dbg: [script] [0] [S] [companyName] "NoNoCAB"
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] viewtopic.php?f=65&t=75030
Attachments
openttdCore3.cfg
(11.97 KiB) Downloaded 81 times
NoNoCAB - v2, 1st Nov 1972.sav
last month alive
(1.82 MiB) Downloaded 83 times
NoNoCAB - v2, 1st Dec 1972.sav
already dead
(1.79 MiB) Downloaded 81 times
Last edited by xarick on 17 Jul 2016 00:38, edited 1 time in total.
Formerly known as Samu

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

Re: NoNoCAB

Post by xarick » 17 Jul 2016 00:38

A different crash error, testing Original ships.
dbg: [script] [0] INFO: Done evaluating existing connections. We added 132 reports.
dbg: [script] [0] [W] WARNING: Get reports from advisors
dbg: [script] [0] [W] WARNING: The best engine for the connection: From: Wrefingbourne Oil Refinery to Fort Trunfingley carrying: GOOD is Bakewell Cargo Ship holding cargo by: Bakewell Cargo Ship
dbg: [script] [0] [W] WARNING: Give orders to build the connection From: Wrefingbourne Oil Refinery to Fort Trunfingley carrying: GOOD
dbg: [script] [0] [W] WARNING: The best engine for the connection: From: Gatfield Farm to Wontway-on-sea Factory carrying: GRAI is Bakewell Cargo Ship holding cargo by: Bakewell Cargo Ship
dbg: [script] [0] [W] WARNING: Give orders to build the connection From: Gatfield Farm to Wontway-on-sea Factory carrying: GRAI
dbg: [script] [0] [W] WARNING: The best engine for the connection: From: Bunthill Farm to Pefingfield Factory carrying: GRAI is Bakewell Cargo Ship holding cargo by: Bakewell Cargo Ship
dbg: [script] [0] [W] WARNING: Give orders to build the connection From: Bunthill Farm to Pefingfield Factory carrying: GRAI
dbg: [script] [0] [W] WARNING: The best engine for the connection: From: Bunthill Farm to Pefingfield Factory carrying: LVST is Bakewell Cargo Ship holding cargo by: Bakewell Cargo Ship
dbg: [script] [0] [W] WARNING: Give orders to build the connection From: Bunthill Farm to Pefingfield Factory carrying: LVST
dbg: [script] [0] [W] WARNING: The best engine for the connection: From: Gatfield Farm to Wontway-on-sea Factory carrying: LVST is Bakewell Cargo Ship holding cargo by: Bakewell Cargo Ship
dbg: [script] [0] [W] WARNING: Give orders to build the connection From: Gatfield Farm to Wontway-on-sea Factory carrying: LVST
dbg: [script] [0] [W] WARNING: Process World Events
dbg: [script] [0] INFO: Industry: Tradston Sawmill removed from the world!
dbg: [script] [0] [W] WARNING: Demolishing connection from Tradston Sawmill to Grondston Oil Refinery
dbg: [script] [0] INFO: New industry: Frinnton Oil Refinery added to the world!
dbg: [script] [0] INFO: New industry: Tradston Sawmill added to the world!
dbg: [script] [0] [W] WARNING: Maintain Active connections
dbg: [script] [0] [W] WARNING: Select reports
dbg: [script] [0] [W] WARNING: Current income per month: 6327523
dbg: [script] [0] [W] WARNING: - Current and Future subsums are the same; Return the current sub sum!
dbg: [script] [0] [W] WARNING: Execute and Select reports
dbg: [script] [0] INFO: Execute report build the connection From: Tradston Sawmill to Grondston Oil Refinery carrying: OIL_. Route cost: 0, 1 vehicle cost: 30468. Add 1 vehicles. Cost pm/v: 191.333. Income pm/v: 23005.7, 22731.1
dbg: [script] [0] INFO: Buy 1 MPS Oil Tanker MPS Oil Tanker.
dbg: [script] [0] Your script made an error: assertion failed
dbg: [script] [0]
dbg: [script] [0] *FUNCTION [Execute()] nonocab-2\management\actions\ManageVehiclesAction.nut line [130]
dbg: [script] [0] *FUNCTION [ExecuteReports()] nonocab-2\management\Parlement.nut line [60]
dbg: [script] [0] *FUNCTION [Start()] nonocab-2\main.nut line [411]
dbg: [script] [0]
dbg: [script] [0] [maxBuildableVehicles] 3
dbg: [script] [0] [vehicleType] 2
dbg: [script] [0] [vehicleGroup] NULL
dbg: [script] [0] [vehicleID] NULL
dbg: [script] [0] [S] [connection] INSTANCE
dbg: [script] [0] [S] [numberWagons] 5
dbg: [script] [0] [S] [wagonEngineID] 204
dbg: [script] [0] [S] [vehicleNumbers] 1
dbg: [script] [0] [S] [engineID] 204
dbg: [script] [0] [S] [@ITERATOR@] 1
dbg: [script] [0] [S] [engineInfo] ARRAY
dbg: [script] [0] [S] [@INDEX@] 0
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [@ITERATOR@] 1
dbg: [script] [0] [S] [action] INSTANCE
dbg: [script] [0] [S] [@INDEX@] 0
dbg: [script] [0] [S] [minimalMoneyNeeded] 0
dbg: [script] [0] [S] [@ITERATOR@] 1
dbg: [script] [0] [S] [report] INSTANCE
dbg: [script] [0] [S] [@INDEX@] 0
dbg: [script] [0] [S] [mostExpensiveBuild] 0
dbg: [script] [0] [S] [canBuild] true
dbg: [script] [0] [S] [this] INSTANCE
dbg: [script] [0] [S] [reports] ARRAY
dbg: [script] [0] [S] [counter] 4999
dbg: [script] [0] [S] [airplanePercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfAirplanes] 0
dbg: [script] [0] [S] [truckPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfTrucks] 0
dbg: [script] [0] [S] [trainPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfTrains] 0
dbg: [script] [0] [S] [shipPercentageErrors] ARRAY
dbg: [script] [0] [S] [numberOfShips] 797
dbg: [script] [0] [S] [la] INSTANCE
dbg: [script] [0] [S] [secureRights] true
dbg: [script] [0] [S] [buildStatues] true
dbg: [script] [0] [S] [plantTrees] true
dbg: [script] [0] [S] [politicHardness] 3
dbg: [script] [0] [S] [_version] " - v2"
dbg: [script] [0] [S] [companyName] "NoNoCAB"
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] Please report the error to the following URL:
dbg: [script] [0] viewtopic.php?f=65&t=75030
Attachments
NoNoCAB - v2, 1st Nov 1980.sav
last month alive
(2.21 MiB) Downloaded 108 times
NoNoCAB - v2, 1st Dec 1980.sav
already dead
(2.17 MiB) Downloaded 97 times
openttdCore1.cfg
(11.92 KiB) Downloaded 116 times
Formerly known as Samu

PropH
Engineer
Engineer
Posts: 45
Joined: 10 Jun 2016 08:45
Location: Russia

Re: NoNoCAB

Post by PropH » 20 Jul 2016 16:22

Is it OK? Was running game for two full years. NiceCab is managed by NoCab.
Also, it crashes usually at 1709. I haven't save, but if I'll reproduce crash, I'll send it too
Attachments
1469031075749.jpg
1469031075749.jpg (74.82 KiB) Viewed 7624 times
Little Drunnington Transport, 21st Nov 1702.sav
(387.21 KiB) Downloaded 91 times
Sorry for my "great" English

Wormnest
Engineer
Engineer
Posts: 91
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: NoNoCAB

Post by Wormnest » 27 Jul 2016 14:09

Thanks for the reports Xarick and PropH and Xarick also for the comments on IRC.
I have just released version 3 of NoNoCAB which should at least fix all crashes. If not please report them here with the logs and a a savegame.

Besides the crashes several other problems have been fixed like ships with no orders or trying to buy trams. I know of several other things that still need work but for now they will have to wait.

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

Re: NoNoCAB

Post by Kogut » 16 Sep 2016 13:28

It is great to see improvement of existing AI! Thanks for your work!
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD

Morloth
Transport Coordinator
Transport Coordinator
Posts: 378
Joined: 07 Feb 2008 14:06
Location: Glasgow

Re: NoNoCAB

Post by Morloth » 22 Mar 2017 17:13

Glad to see someone has picked up the mantle. Best of luck with developing it 8).

goofy_goober
Engineer
Engineer
Posts: 2
Joined: 01 Dec 2017 13:00

Re: NoNoCAB

Post by goofy_goober » 01 Dec 2017 13:55

i've encountered that after few years running, this AI finance start to crumble due to high properties maintenance. i will post the ss later, i forgot to save it after my last game.

Wormnest
Engineer
Engineer
Posts: 91
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: NoNoCAB

Post by Wormnest » 01 Dec 2017 18:27

Yes, NoNoCAB doesn't really take maintenance costs into account as far as I remember. Possibly with road vehicles it favors using existing roads a little more in that case but that's all.
Also it's train routes usually are long and completely double track which will start to add up when maintenance costs are turned on.

I'll add it to the list of things that I should have a look at sometime but it's not something is easily changed.

Wormnest
Engineer
Engineer
Posts: 91
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: NoNoCAB

Post by Wormnest » 17 Dec 2017 12:01

I have released a new version, available on bananas as usual.

Besides a lot of small changes and tweaks the highlights are:
  • Take airplane max range into account.
  • Don't build airport near industry on water.
  • Better handling of vehicles in more expensive vehicle sets.
  • Be a little more careful how much we loan and pay it back sooner.
  • When infrastructure maintenance is on make selecting new road more expensive.
  • Fix a crash when vehicleGroupID was null.

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

Re: NoNoCAB

Post by xarick » 23 Dec 2017 18:24

A troll blocked your ships.
Attachments
NoNoCAB - v3 - #2, 2007-04-12.sav
(179.31 KiB) Downloaded 103 times
Formerly known as Samu

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

Re: NoNoCAB

Post by xarick » 30 Dec 2017 19:19

NoNoCAB v4, placed an airport that can't pick up fruits.
Attachments
screenshot#66.png
(177.59 KiB) Not downloaded yet
NoNoCAB - v4, 1st Jan 2061.sav
(368.03 KiB) Downloaded 83 times
Formerly known as Samu

goofy_goober
Engineer
Engineer
Posts: 2
Joined: 01 Dec 2017 13:00

Re: NoNoCAB

Post by goofy_goober » 04 Jan 2018 15:52

ai keep spamming new airport even it makes their finance bleeding. it can be avoided though, by disabling air transport.

overall, i love competing with this ai :)
Attachments
Druningpool Transport, Jan 28th, 1959.png
(305.74 KiB) Not downloaded yet

Wormnest
Engineer
Engineer
Posts: 91
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: NoNoCAB

Post by Wormnest » 07 Jan 2018 20:04

Thanks everyone for the comments here and on IRC. Version 5 is out now, available on bananas.

Important changes and fixes:
  • Fix: trains sometimes got stuck because of a wrongly placed signal.
  • Fix: A rare crash when we could not build a train depot.
  • Fix: The check for train refitting was using an incorrect id causing train wagons sometimes to not be refitted.
  • Fix: Ship routes could be incomplete with certain industry sets like FIRS when trying to use with water industries (not all water industries have an inbuilt dock).
  • Fix: Airport was sometimes placed too far away from an industry.
  • Change: All settings of NoNoCAB can now be changed when running the game (updated once per game loop so you won't always notice it immediately). The text of some settings was also changed to be more clear.
  • Change: Allow more time before we time out when trying to find the return path of a rail connection since in that case we already spent money.
  • Change: The computed train travel time now also takes the steepness and freight multipliers into account a bit.
  • If infrastructure maintenance is turned on and plane speed setting is 1/3 or 1/4 then NoNoCAB will disable making new air transport routes.

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

Re: NoNoCAB

Post by xarick » 18 Jan 2018 18:10

Crash report
Attachments
Sem nome, 1983-06-20.sav
(44.48 KiB) Downloaded 90 times
Sem nome, 1983-06-24.png
(32.95 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