ChooChoo, a train network AI

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

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

Re: ChooChoo, a train network AI

Post by xarick »

the index 'find' does not exist
Attachments
Unnamed, 1955-07-31.png
(43.45 KiB) Not downloaded yet
R25-G21 - ChooChoo vs PathZilla - 7,463 days.sav
(3.43 MiB) Downloaded 42 times
Formerly known as Samu

User avatar
Redirect Left
Tycoon
Tycoon
Posts: 6635
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: ChooChoo, a train network AI

Post by Redirect Left »

I've also had this just now with find error, on a map with lots of AIs and me spectating them.
2019-12-12 13_26_16-OpenTTD jgrpp-0.32.2.png
2019-12-12 13_26_16-OpenTTD jgrpp-0.32.2.png (45.05 KiB) Viewed 694 times
Unfortunately the author has gone AFK for over 2 years at this point, so we might be on our own. Unless someone heree knows how to fix it, i've tried numerous times but i can't get the AI programming language down, it's very confusing and non-sensical to me, otherwise i'd have a good go at fixing numerous issues with lots of old AIs.
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!

mando
Engineer
Engineer
Posts: 2
Joined: 11 Jan 2020 13:11

Re: ChooChoo, a train network AI

Post by mando »

I was trying out some AIs, including ChooChoo and noticed it wasn't working. I fixed two breaking bugs:
  1. Updated road pathfinding library version from 3 to 4
  2. Checked that a returned vehicle name is not null before doing name.find("X")
    I have attached a patch, and a new updated tarball.
    Attachments
    choochoo-412-findbug-libupgrade.patch
    (867 Bytes) Downloaded 29 times
    ChooChoo412-a.tar
    (180 KiB) Downloaded 27 times

    Post Reply

    Return to “OpenTTD AIs and Game Scripts”

    Who is online

    Users browsing this forum: No registered users and 3 guests