Page 25 of 25

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 28 Mar 2015 22:24
by MukiJames
Hi Morloth,

Thank you for your quick response. I do not think, that the map size would be the issue, because I play with the default settings (256x256). I started in 1950, currently it is 1957; three AI already appeared, but still not a single action was taken by them.

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 29 Mar 2015 00:02
by Morloth
MukiJames wrote:Hi Morloth,

Thank you for your quick response. I do not think, that the map size would be the issue, because I play with the default settings (256x256). I started in 1950, currently it is 1957; three AI already appeared, but still not a single action was taken by them.
That is strange. It might be that the AI could not find a profitable route and decided not to play ;). This might be a bug though, do you have a safe game and a list of mods you are using at the moment?

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 29 Mar 2015 00:38
by Morloth
Just started up a game and it does seem that there might be a bug on 256x256 maps (other sizes seem to be fine). Sometimes the AI hangs during checking the connectivity between towns. I'm not sure yet what this is causing but it seems to be very rare. Most of the games start successful with NoCAB creating the first routes in the first year.

If you provide me with a safe game I might be able to identify this bug and hopefully fix it.

Many thanks!
Bram

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 29 Mar 2015 11:04
by MukiJames
Sure, please find my save file here. And thank you for your effort in advance ;)

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 08 Aug 2015 18:52
by Core Xii
Crashed on load. Trunk OpenTTD, content-downloaded NoCAB.
Unnamed, Apr 27th, 1950.png
Unnamed, Apr 27th, 1950.png (7.74 KiB) Viewed 8111 times

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 14 Aug 2015 13:44
by Train<In>Vain
Was curious to know if anyone has seen this happen: AI vehicles go into depot to be replaced with more recent model, and come out with no orders, only to wander aimlessly forever. Here is a save game that shows this. Trucks 159 - 171 are sitting in depot. Bus 374 is already out and roaming. There are other buses and trucks as well. NoCAB did very well otherwise.

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 16 Aug 2015 16:13
by HGus
Core Xii wrote:Crashed on load. Trunk OpenTTD, content-downloaded NoCAB.
You are using and old and unmaintained alpha version of this AI. Delete the "Bleeding Edge Edition" and download the newer release of NoCAB.

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 16 Aug 2015 18:18
by Core Xii
HGus wrote:You are using and old and unmaintained alpha version of this AI. Delete the "Bleeding Edge Edition" and download the newer release of NoCAB.
Why is the older and unmaintained version of two named "bleeding edge", and why is it available for download on Bananas in the first place?

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 16 Aug 2015 18:26
by Morloth
Core Xii wrote:
HGus wrote:You are using and old and unmaintained alpha version of this AI. Delete the "Bleeding Edge Edition" and download the newer release of NoCAB.
Why is the older and unmaintained version of two named "bleeding edge", and why is it available for download on Bananas in the first place?
In honesty both are 'unmaintained' as I have not touched the code for this AI in quite a few years now. The Bleeding Edge Edition is a unstable version that used to be in development but not considered stable yet. If memory serves me correctly it states this in the description of the AI.

As for the other bugs, I cannot promise to be able to look into them as I haven't touched the code in years and moved on to other projects in the meantime.

Sorry guys,
Bram

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1

Posted: 19 Aug 2015 12:35
by Core Xii
Morloth wrote:As for the other bugs, I cannot promise to be able to look into them as I haven't touched the code in years and moved on to other projects in the meantime.
Then is there any point to reporting crashes? If not, could you then update the AI's description to discourage that so as to not waste others' time?

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 03 May 2016 21:32
by xarick
For the first time I managed to have a NoCAB surviving 100 years straight without crashing. I tested it solo. In comparison with the other AIs, it's extremely slow at handling tasks. It was especially slow at starting, it took 4 years and half before it started building routes. Later on in the game, by around year 2017, during rail upgrading it took a lot of time to manage the whole upgrade, I can't remember how many years, but I know it upgraded from 32 trains from electric rail to 10 trains on maglev. I am still unsure how it manages with this upgrade, but it appears that it can't handle other tasks while doing this, as I was seeing tons of vehicles stopped in depots, and the profit graph slowly going down by cumulative stopped vehicles.Only about 10 years later, it reawakes and managed everything else that had to be managed.

Despite the very slow handling of tasks, this AI is very strong in profits, still beats everyone else out there, and as I said, I finally get to see what he does past the rail upgrading. I always had him crashing around here on my previous tests, ~70 years into the game. This time it went full 100 years without crashing!

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 03 May 2016 21:43
by Morloth
Nice! I should probably do a few more tests with the new version of OpenTTD. Might have some time to look into some bugs that have been reported.

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 15 Jul 2016 02:14
by Cecil Cityscape
I am very impressed with this AI. I am currently playing with two competitors and it is a handful. They expand very quickly and do well for themselves. I have seen the ai do road vehicles aircraft and ships, but in 40 years have yet to see it do trains. I was just wondering if the AI has a preference for road vehicles or if it tends to use trains only under certain conditions.

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 16 Jul 2016 11:56
by Wormnest
Building a train route is for an AI a lot more complicated than any of the other vehicle types. Especially since NoCAB and my own fork of it NoNoCAB favor longer routes than most other AI's it can fail to find a good route in a reasonable time. Also building trains including a rail network is usually not cheap so if it doesn't have a lot of money it may choose to build using something else than a train route.

One other factor that may be a cause of building less train routes is that each vehicle type gets a fixed amount of time to analyze candidate routes. Since pathfinding for train routes often takes so much time means it can check less possible routes and thus is less likely to find good candidates for a connection.

Besides that there are some shortcomings in the original NoCAB concerning it's handling of trains that may also influence this. Just a word of warning: when it starts to build train routes the chances of it crashing when saving because of taking too long to save will increase since train routes take the most time to save.

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 24 Jul 2016 03:25
by Cecil Cityscape
I have noticed that when building train routes, nocab often fails when building roro stations. perhaps for a future update, terminus stations could be built to allow for easier connections

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 16 Sep 2016 14:11
by Kogut
Morloth wrote:* Custom A* implementation designed for speed - using an altered Fibonacci queue which is quicker than the library's Binary queue.
It is late by 8 years, but I see no discussion about it in the thread - is it still true? If yes - is there any negative side of using it in other AIs?

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 23 Sep 2016 10:43
by HGus
I think a version of it is used by TransAI.

Here the library page: http://dev.openttdcoop.org/projects/lib-fibonacciheap

And post by Zuu: viewtopic.php?f=65&t=59260

Re: NoCAB - Trains, Trucks, Busses, Aircraft and Ships! v2.1.3

Posted: 22 Mar 2017 17:28
by Morloth
Time to make it official. NoCAB will no longer be developed. Those for looking for an up-to-date version of this kind of AI please check out NoNoCAB which is a fork of this AI created by Wormnest.

Thanks for the support and feedback over all these years :D.

Bram