Page 6 of 7
Re: NoCAB - Bleeding Edge edition - Version 2.0a20
Posted: 30 Mar 2010 06:17
by planetmaker
Morloth wrote:Ok, I've looked into the problem with NewGRFs. The major problem is the way that NoCAB builds a tree of industries which tells it which once it should consider first. For example at the very start only industries which do not accept anything and produce something (e.g. coal mines, oil rigs) are taken as primary industries. Also industries which accept and produce the same cargo fall under this category (e.g., towns, banks).
There's
http://noai.openttd.org/api/trunk/class ... yType.html which gives you to my knowledge AIIndustry.IsRawIndustry at hand. Also FIRS should support that properly.
Re: NoCAB - Bleeding Edge edition - Version 2.0a20
Posted: 30 Mar 2010 09:22
by Morloth
Ah, sweet! Thanks planetmaker! This makes this so much easier

. New version is out!

Re: NoCAB - Bleeding Edge edition [Not in use for now]
Posted: 01 Apr 2010 00:20
by Morloth
NoCAB 2.0.0 is released. This thread will not be in use until the need for a new bleeding edge edition emerges. For now I'm going to take a break from OpenTTD after the last past weeks of coding / bug fixing

.
When I do return, however, I'll be focusing on a complete overhaul of the code as mentioned earlier. I want to take a good look at the framework and redesign this AI from the ground up to make some much needed changes. But nothing you should be worried about right now, go enjoy OpenTTD 1.0.0 (and NoCAB 2.0.0 I you don't mind me say

).
Thank you all very very much for all the bug reports and tips / suggestions over the last couple of weeks, couldn't have done it without you!
- Bram
Re: NoCAB - Bleeding Edge edition Version 2.2a1
Posted: 30 May 2011 14:53
by Morloth
NoCAB bleeding edition is kicked back into gear. Please see the first post on the objectives before the stable version 2.2.0 is released.
New release 2.2a1:
Bugs fixed:
* Loading / Saving takes too long (
http://www.tt-forums.net/viewtopic.php?p=942632#p942632).
Features introduced:
None
Please let me know if you find any new bugs, thanks for your help!
Bram
Re: NoCAB - Bleeding Edge edition Version 2.2a1
Posted: 31 May 2011 09:00
by Brumi
Great!

The next test will include this version.
Re: NoCAB - Bleeding Edge edition Version 2.2a1
Posted: 31 May 2011 10:34
by Brumi
Here's a more difficult problem for you:
- jam.png
- (272.46 KiB) Downloaded 2 times
Trains leaving Vác Alsó are sitting in a jam, simply beacuse the line has reached its maximum throughput. There are quite a lot of long bridges and tunnels on this line, and it is even merged with another line. Currently there are 35 trains visiting the station, as the AI keeps adding new ones, because the cargo waiting at the other station doesn't get transported. Some of the trains are already unprofitable, the AI will probably sell them, so the problem is not so serious.
In this game it is still the last stable version of NoCAB, but it shouldn't make a difference now...
Re: NoCAB - Bleeding Edge edition Version 2.2a1
Posted: 01 Jun 2011 15:40
by Brumi
Sorry for triple posting, but you might not notice if I edit my last post...
I got an assertion failure with the latest bleeding edge version. NoCAB was doing very well in the game

Re: NoCAB - Bleeding Edge edition Version 2.2a1
Posted: 02 Jun 2011 08:50
by Brumi
I got another assertion failure, it happens a few months after you load the savegame below. At least it happened twice for me.
Re: NoCAB - Bleeding Edge edition Version 2.2a1
Posted: 03 Jun 2011 11:18
by Morloth
Thanks for the list of bugs, I'll try to fix them over the weekend. Sorry to see NoCAB fails that often in your competition :/. Hopefully that'll be something of the past soon enough

.
Re: NoCAB - Bleeding Edge edition Version 2.2a2
Posted: 04 Jun 2011 11:33
by Morloth
Version 2.2a2 released.
Bugs fixed:
* "Saved connections are loaded twice!" (
http://www.tt-forums.net/viewtopic.php?p=949318#p949318).
* "Trying to build vehicles for connections which do no longer exist." (
http://www.tt-forums.net/viewtopic.php?p=949201#p949201).
Also some other minor bugs have been fixed. Next version will focus on fixing ships, sometimes a connection is build but the ships have no orders to follow it...
Please note that this version breaks compatibility with previous save games, previous save games might have saved a connection more than one time which is the reason it fails. Please keep those bug reports coming!
- Bram
Re: NoCAB - Bleeding Edge edition Version 2.2a2
Posted: 04 Jun 2011 12:25
by svetovoi
Morloth wrote:Please keep those bug reports coming!

Well, I think I've found a bug in your code while was looking for rail pathfinder.
File "RailPathFinderHelper.nut" has a line
Code: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile, currentTile, nextTile))
If I'm not missing something it probably should have been
Code: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile.tile, currentTile, nextTile))
Re: NoCAB - Bleeding Edge edition Version 2.2a2
Posted: 04 Jun 2011 12:36
by Morloth
ac84 wrote:Morloth wrote:Please keep those bug reports coming!

Well, I think I've found a bug in your code while was looking for rail pathfinder.
File "RailPathFinderHelper.nut" has a line
Code: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile, currentTile, nextTile))
If I'm not missing something it probably should have been
Code: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile.tile, currentTile, nextTile))
Very observant, thanks for that!

This bug must have been in the code since the very first version

.
Re: NoCAB - Bleeding Edge edition Version 2.2a3
Posted: 09 Jun 2011 12:34
by Brumi
Now I'm trying out Chill's patchpack with some NewGRFs enabled (TaI UK houses, FIRS industries, eGRVTS and UKRS) with AdmiralAI and NoCAB. Although NoCAB's "NiceCAB" setting is enabled, it makes way more profit than me or AdmiralAI!

Cargodist and FIRS are giving me a new OTTD experience

For some reason NoCAB hasn't built a train so far.
But to get to the point, I noticed one issue: when NoCAB reaches the road vehicle limit, it still builds road stations and connects them, but they're left unused. And nothing happens if I raise the vehicle limit.
Re: NoCAB - Bleeding Edge edition Version 2.2a3
Posted: 23 Jun 2011 14:36
by Morloth
Thanks for all your feedback, a new version has been posted (2.2a4). Here is the changelog:
* Terraforming issues solved.
* Train deconstruction does not remove pieces of rails of other connections anymore (hopefully!).
* Engines to be used are now evaluated on a connection to connection base. So expect to see a very diverse fleet as different connections might be better served with different vehicles.
* Repay loan at the very beginning of the game - no need for unnecessary losses!
* Upgraded to API 1.2.
* Check slopes for road and train paths (thx ac84!).
* The decision making process now takes into account the amount of money which will be made the next X months and can now decide to wait X months before doing construction because this will yield more income in the long run.
* A lot of other bugs fixed and massive code cleanup (WIP).
The biggest is the new decision making process, better guessing of the travel times for vehicles and train / terraforming issues being solved. This is still far away from the final release, but progressing towards that target. Also do note that because we choose vehicles based on individual connections helicopters are now implicitly supported

.
More to come!
Bram
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Posted: 18 Jul 2011 17:18
by Dr. B. Ching
Hello Morloth,
the new vehicle selection method is a great feature for NoCAB (one of my favourite AIs), but 2.2a4 had a problem with trams when I tested it in an unpatched trunk version. They appear to be handled like ordinary road vehicles, including standard loading bays and other inappropriate infrastructure. Running just a basic NewGRF list didn't help.
OpenTTD: r22671
NewGRFs: Generic Tram Set 0.4, eGRVTS 1.0, HEQS 1.1.0 (freight trams only)
Kind Regards,
The Axe

Re: NoCAB - Bleeding Edge edition Version 2.2a4
Posted: 19 Jul 2011 12:51
by Morloth
Dr. B. Ching wrote:Hello Morloth,
the new vehicle selection method is a great feature for NoCAB (one of my favourite AIs), but 2.2a4 had a problem with trams when I tested it in an unpatched trunk version. They appear to be handled like ordinary road vehicles, including standard loading bays and other inappropriate infrastructure. Running just a basic NewGRF list didn't help.
OpenTTD: r22671
NewGRFs: Generic Tram Set 0.4, eGRVTS 1.0, HEQS 1.1.0 (freight trams only)
Kind Regards,
The Axe

Hi The Axe,
Thanks for your report. I'll look into it as soon as I get the chance!

Re: NoCAB - Bleeding Edge edition Version 2.2a4
Posted: 24 Jul 2011 13:18
by planetmaker
NoCAB r498 can save a bit on infrastructure, namely on harbours:
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Posted: 07 Oct 2011 16:38
by Kogut
small problem, offending road is about 1 month old, constructed before nocab road construction and owned by different company
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Posted: 27 Mar 2013 11:51
by wilgefortz
One of running scripts crashed
Your script made an error: the index "ai_et_engine_available" does not exist
*FUNCTION[constructor()]nocab__bleeding_edge_edition-2.2a4\management\connections\ConnectionManager.notline[11]
*FUNCTION[Start()]nocab__bleeding_edge_edition-2.2a4\main.notline[75]
How I can uninstal this AI?
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Posted: 27 Mar 2013 16:46
by Brumi
wilgefortz wrote:How I can uninstal this AI?
Find it in My Documents/OpenTTD/content_download_ai and delete it.