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

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

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

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

Post by Morloth »

Mac_ wrote:Same error, on 1.0.5
:-(
Thanks for the report. I'll fix this bug this week. Thanks for your comments Zuu, don't follow the updates as close anymore :).

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

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

Post by Morloth »

Sorry for the delay, the newest version works again :).

User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

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

Post by Zuu »

After loading the AI Marathon savegame attached to this post and letting it running for a while (to 29 Aug 1985), I got this crash with your AI:
Sardingworth Transport, 29th Aug 1985.png
(132.3 KiB) Downloaded 1 time
Edit: It was otherwise doing very well after 35 year of AI battle:
Sardingworth Transport, 22nd Sep 1985.png
(21.27 KiB) Downloaded 1 time
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13190
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

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

Post by Hyronymus »

In my current game one of the NoCAb AI's is needing money. He has 91 road vehicles and about 20 of them with a worth of ~ NLG 2.000 a piece are parked in depots. But he's not selling them to meet his financial needs.
Haagsche Vervoers Mij., 2 Okt 1940.png
(474.02 KiB) Downloaded 1 time

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

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

Post by Morloth »

Hyronymus wrote:In my current game one of the NoCAb AI's is needing money. He has 91 road vehicles and about 20 of them with a worth of ~ NLG 2.000 a piece are parked in depots. But he's not selling them to meet his financial needs.
Haagsche Vervoers Mij., 2 Okt 1940.png
Could you please attach a save file? I'm quite sure it should sell the vehicles at some point, if not than it's definitely a bug.

User avatar
Hyronymus
Tycoon
Tycoon
Posts: 13190
Joined: 03 Dec 2002 10:36
Location: The Netherlands
Contact:

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

Post by Hyronymus »

As I expected you would ask I saved :). Had to upload externally, it's close to 8MB.

Savegame

User avatar
Coyote76
Engineer
Engineer
Posts: 13
Joined: 25 Nov 2010 17:43

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

Post by Coyote76 »

I got this crash-report in v 2.1.3:
Attachments
NoCab v498 crashed.png
NoCab v498 crashed.png (15.42 KiB) Viewed 6803 times

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

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

Post by Morloth »

Coyote76 wrote:I got this crash-report in v 2.1.3:
Thanks for the report, I'll look into it later this week. Think it's time for a rewrite of NoCAB in any case :).

Brumi
President
President
Posts: 905
Joined: 18 Jul 2009 17:54

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

Post by Brumi »

A rewrite?? Yours is the largest AI by code size, it will be a huge work...

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

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

Post by Morloth »

Brumi wrote:A rewrite?? Yours is the largest AI by code size, it will be a huge work...
Very true, but the current design of the program is not what I would want it to be. Also, tasks like "what to do if constructing a connection goes wrong?" are not handled very neatly and poorly integrated. So for me it will mainly be a coding excise but I hope to improve some of the functions of the AI and make it more accessible to other people.

Other todo's are:
* Tram support.
* Helicopter support.
* Aesthetic features (an option to be less competitive in exchange for nice looking networks).

Don't expect anything any time soon though, but it will come eventually :).

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9357
Joined: 07 Nov 2007 22:44
Location: Sol d

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

Post by planetmaker »

You seem to save many things. Actually too many it seems (savegame here), attached also the versions of the newgrfs I used and tested
Attachments
Unbenannt, 2043-01-06.png
took too long to save
(58.1 KiB) Downloaded 1 time
ogfx-landscape.zip
ogfx-landscape
(1.03 MiB) Downloaded 167 times
ogfx-industries.zip
ogfx-industries
(14.5 KiB) Downloaded 167 times

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9357
Joined: 07 Nov 2007 22:44
Location: Sol d

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

Post by planetmaker »

Other than the error reported in the previous posting, your AI is doing very well. In order to test NewGRFs I have usually AIs play the game for me - and NoCAB is usually doing very well. The screenshot is quite a typical example of how performances look like. Kudos :-)
Attachments
Unnamed, 1994-05-05.png
Unnamed, 1994-05-05.png (37.65 KiB) Viewed 6563 times

Brumi
President
President
Posts: 905
Joined: 18 Jul 2009 17:54

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

Post by Brumi »

I've got the same crash as Zuu today :( NoCAB was leading well in profits...
Attachments
NoCAB crash.png
(29.48 KiB) Downloaded 1 time

Brumi
President
President
Posts: 905
Joined: 18 Jul 2009 17:54

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

Post by Brumi »

Double post!
I noticed this in my current test game:
dock too far away.png
dock too far away.png (61.26 KiB) Viewed 6313 times
Here the dock is too far away from the printing works to accept paper, so the ships are unprofitable. Anyway, NoCAB is doing really well in that game!

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

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

Post by Morloth »

Thanks for all the reports, work on the new version is under way. Please report all new bugs to the Bleeding Edge Edition topic: http://www.tt-forums.net/viewtopic.php?f=65&t=43259.

CurlySue
Engineer
Engineer
Posts: 2
Joined: 11 Oct 2011 03:09

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

Post by CurlySue »

OpenTTD 1.1.3
Attachments
nocab_bug.JPG
(248.84 KiB) Downloaded 1 time

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

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

Post by Morloth »

CurlySue wrote:OpenTTD 1.1.3
Thanks for the report. This bug is already fixed in the bleeding edge edition. I don't know when it's going to be released but you can get the latest version from bananas. :)

dasy2k1
Transport Coordinator
Transport Coordinator
Posts: 338
Joined: 20 Sep 2006 23:43
Location: UK
Contact:

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

Post by dasy2k1 »

I have been playing with a few AIs enabled on a YACD map to see how things run and to give a bit of interest to the game.

the problem is that NoCAB is creating bus links everywhere with loads of busses but using full load orders
all this does on the slower routes is block the bus station throat with dozens of stationary busses completly blocking the route for everyone else.

please can we have an option in the configure AI settings to disable full load orders (even better if we could desable for PAX and MAIL leaving everything esle the same)

Lowkee33
Engineer
Engineer
Posts: 20
Joined: 25 Nov 2011 20:49

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

Post by Lowkee33 »

Hello. Thanks for the great AI. I've been making my own AI, and using it as a competitor. Today I noticed something strange, but I'm not sure if it is something with your AI or game mechanics in general. NoCab placed an airport that was adjacent to a bus station of mine. Since a human player can't place stations next to competitors, I thought it would be something to bring up. I have a screenshot if desired.

Sorry if this was brought up before...

User avatar
NekoMaster
Tycoon
Tycoon
Posts: 3953
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

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

Post by NekoMaster »

Lowkee33 wrote:Hello. Thanks for the great AI. I've been making my own AI, and using it as a competitor. Today I noticed something strange, but I'm not sure if it is something with your AI or game mechanics in general. NoCab placed an airport that was adjacent to a bus station of mine. Since a human player can't place stations next to competitors, I thought it would be something to bring up. I have a screenshot if desired.

Sorry if this was brought up before...
In the game you can place a station next to a competitors if you build a peice of a station away from the station, then build off that peice, or using CTRL-Click you can place a new station so you have your station and the competitor has their station
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 0 guests