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.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).
NoCAB - Bleeding Edge edition Version 2.2a4
Moderator: OpenTTD Developers
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: NoCAB - Bleeding Edge edition - Version 2.0a20
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: NoCAB - Bleeding Edge edition - Version 2.0a20
Ah, sweet! Thanks planetmaker! This makes this so much easier . New version is out!
Re: NoCAB - Bleeding Edge edition [Not in use for now]
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
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
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
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
Great! The next test will include this version.
Re: NoCAB - Bleeding Edge edition Version 2.2a1
Here's a more difficult problem for you:
In this game it is still the last stable version of NoCAB, but it shouldn't make a difference now...
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
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
I got an assertion failure with the latest bleeding edge version. NoCAB was doing very well in the game
- Attachments
-
- nocab crash.png (31.87 KiB) Viewed 2300 times
-
- Toyland test after 30 years.sav
- (1.54 MiB) Downloaded 223 times
Re: NoCAB - Bleeding Edge edition Version 2.2a1
I got another assertion failure, it happens a few months after you load the savegame below. At least it happened twice for me.
- Attachments
-
- assertion failure.png (31.39 KiB) Viewed 2300 times
-
- autosave11.sav
- (1.97 MiB) Downloaded 212 times
Re: NoCAB - Bleeding Edge edition Version 2.2a1
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
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
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
Well, I think I've found a bug in your code while was looking for rail pathfinder.Morloth wrote:Please keep those bug reports coming!
File "RailPathFinderHelper.nut" has a line
Code: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile, currentTile, nextTile))
Code: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile.tile, currentTile, nextTile))
Re: NoCAB - Bleeding Edge edition Version 2.2a2
Very observant, thanks for that! This bug must have been in the code since the very first version .ac84 wrote:Well, I think I've found a bug in your code while was looking for rail pathfinder.Morloth wrote:Please keep those bug reports coming!
File "RailPathFinderHelper.nut" has a lineIf I'm not missing something it probably should have beenCode: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile, currentTile, nextTile))
Code: Select all
if (Tile.IsSlopedRoad(currentAnnotatedTile.parentTile.tile, currentTile, nextTile))
Re: NoCAB - Bleeding Edge edition Version 2.2a3
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.
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
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
* 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
-
- Engineer
- Posts: 109
- Joined: 14 May 2011 10:58
- Location: Sausagewood
Re: NoCAB - Bleeding Edge edition Version 2.2a4
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
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
My scenarios for JGRpp: Motor City (1910), Fortune Bay (1993)
Re: NoCAB - Bleeding Edge edition Version 2.2a4
Hi The Axe,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
Thanks for your report. I'll look into it as soon as I get the chance!
- planetmaker
- OpenTTD Developer
- Posts: 9432
- Joined: 07 Nov 2007 22:44
- Location: Sol d
Re: NoCAB - Bleeding Edge edition Version 2.2a4
NoCAB r498 can save a bit on infrastructure, namely on harbours:
- Attachments
-
- nocab_harbours.png (105.09 KiB) Viewed 8029 times
-
- nocab_aitest_shiponly.sav
- savegame
- (52.06 KiB) Downloaded 204 times
OpenTTD: manual | online content | translations | Wanted contributions and patches
#openttdcoop: blog | wiki | public server | DevZone | NewGRF web translator
DevZone - home of the free NewGRFs: OpenSFX | OpenMSX | OpenGFX | Swedish Rails | OpenGFX+ Trains|RV|Industries|Airports|Landscape | NML
Re: NoCAB - Bleeding Edge edition Version 2.2a4
small problem, offending road is about 1 month old, constructed before nocab road construction and owned by different company
- Attachments
-
- Przechwytywanie.PNG (25.53 KiB) Viewed 7891 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
-
- Engineer
- Posts: 1
- Joined: 27 Mar 2013 11:28
Re: NoCAB - Bleeding Edge edition Version 2.2a4
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?
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
Find it in My Documents/OpenTTD/content_download_ai and delete it.wilgefortz wrote:How I can uninstal this AI?
Who is online
Users browsing this forum: No registered users and 2 guests