JAMI: Just Another Moronic Intelligence

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

User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Wasila wrote:What is JAMI's technical name? start_ai jami fails to work.
:?:

Try JAMI (all capitals) but I'm sure casing doesn't make a difference. What's the error message?
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: JAMI: Just Another Moronic Intelligence

Post by Wasila »

WARNING: Failed to load the specified AI.

I copied the .tar file straight to /content_download (whatever it's called/ai

I tried extracting the folder as well but that didn't work either.
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: JAMI: Just Another Moronic Intelligence

Post by Yexo »

Wasila wrote:WARNING: Failed to load the specified AI.

I copied the .tar file straight to /content_download (whatever it's called/ai

I tried extracting the folder as well but that didn't work either.
Try using list_ai in the console, does it show up?
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Try this tar file instead - it might be that the JAMI folder was called JAMI<space>0.2

EDIT: Removed file to prevent any confusion in the future
Last edited by Xander on 11 Aug 2009 16:05, edited 1 time in total.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: JAMI: Just Another Moronic Intelligence

Post by Wasila »

Doesn't work. Should I restart the game after adding the file?
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Yeah. Copy JAMI.tar to downloaded_content (or whatever it's called)/ai

Then restart OpenTTD. Do list_ai at the main menu to see if JAMI has been picked up.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: JAMI: Just Another Moronic Intelligence

Post by Wasila »

It's been accepted! Love the dialogue :)
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Posted above Tar to the OP. It seems it was the containing folder containing a space was the problem.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: JAMI: Just Another Moronic Intelligence

Post by Wasila »

Unfortunately, I got an error xD. Attached.

Also which vehicle types does JAMI use?
Attachments
GlobalTrans, 4th May 1946.png
(29.66 KiB) Downloaded 72 times
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Wasila wrote:Unfortunately, I got an error xD. Attached.

Also which vehicle types does JAMI use?
My bad. I've gone and re-upped version 1. Where's the *facedesk* emoticon?

I'll get version 2 back up when I get home. I might even try and get v3 ready and up that instead, now I've got my head around this versioning malarky.

JAMI uses VT_ROAD, or in layman terms Buses. She's being taught to use trucks tonight, hopefully.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: JAMI: Just Another Moronic Intelligence

Post by Wasila »

:bow: <-- Imagine that he's hitting the ground in annoyance. Can't wait to try the real deal!
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Fixed. OP version should be version 2 and should work. If someone could test and verify for me that'd be great.

Hopefully this mess won't happen again as I'm using the noai site to handle my versioning :)
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Lord Aro »

i think you've gone and done it again
i got the same error message as last time
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Huh. That's definietly v1 up there and I definietly upped v2.

Well, nevermind. v3 (Trucks and Bucks) should be ready for release tonight. I'll take down the existing file to prevent further problems.
Last edited by Xander on 12 Aug 2009 08:19, edited 1 time in total.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
User avatar
Abenhor
Engineer
Engineer
Posts: 33
Joined: 08 Jul 2009 20:06
Location: Spain

Re: JAMI: Just Another Moronic Intelligence

Post by Abenhor »

Xander wrote:Fixed. OP version should be version 2 and should work. If someone could test and verify for me that'd be great.
It works.
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Abenhor wrote:
Xander wrote:Fixed. OP version should be version 2 and should work. If someone could test and verify for me that'd be great.
It works.
Yeah - but it's still not the right version. I've just downloaded it again (hurrah for ghost links!) but it's Certainly version 1 (that crashes) up there.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
User avatar
Abenhor
Engineer
Engineer
Posts: 33
Joined: 08 Jul 2009 20:06
Location: Spain

Re: JAMI: Just Another Moronic Intelligence

Post by Abenhor »

Xander wrote:Yeah - but it's still not the right version. I've just downloaded it again (hurrah for ghost links!) but it's Certainly version 1 (that crashes) up there.
I got version 2. Inside tarball file is a folder named "JAMI0.2" (without spaces).
However, Info.nut says

Code: Select all

function GetVersion()     { return 1; }
function GetDate()        { return "2009-08-01"; }
Isn't it version 2?
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Check Builder.nut for Builder::BuildRoadStation (might be BuildBusStation, I can't remember exactly)

It'll run Prospector.FindStationSite. Version 1 looks if the returned value is a station already first, version 2 checks for FindStationSite returning false first instead.

I forgot to update those numbers - a problem I'll be rectifying from v3 onwards :)
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
User avatar
Abenhor
Engineer
Engineer
Posts: 33
Joined: 08 Jul 2009 20:06
Location: Spain

Re: JAMI: Just Another Moronic Intelligence

Post by Abenhor »

Xander wrote:Check Builder.nut
Checked. Ah! It's version 1. :roll:
I needed to run 4 instances of JAMI during 5 months in order to see that error... :o
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by Xander »

Abenhor wrote:
Xander wrote:Check Builder.nut
Checked. Ah! It's version 1. :roll:
I needed to run 4 instances of JAMI during 5 months in order to see that error... :o
Good to know - her site locator is pretty solid and I'm planning to improve it in the next release (or at least some point in the future) so that she will build on-road bus stops if a dedicated station can't be built.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 16 guests