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

Wasila
Tycoon
Tycoon
Posts: 1498
Joined: 15 Mar 2008 07:02

Re: JAMI: Just Another Moronic Intelligence

Post by Wasila »

It looks like JAMI on my game is going to be paralysed with possibilities until v4. Also doesn't reading everything off the map take a lot longer, especially on larger maps?
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 »

It certainly does, on both counts. I rushed out v3, but that's why god invented weekends :)

I'm going to be sitting down with JAMI and teaching her how to better select routes, probably teaching her to limit her choices to the top 10 starts and not looking further than she can path.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: JAMI: Just Another Moronic Intelligence

Post by Zuu »

Wasila wrote:Also doesn't reading everything off the map take a lot longer, especially on larger maps?
Not neccessarily lot longer. If you make sure to have your depots in the vehicle orders you for example don't have to scan a lot of tiles to find them.

Both CluelessPlus and PAXLink are implemented so that they do not store anything on save. This will however change a bit on PAXLink for station statistics.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
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 »

I was saying yes to the idea that large maps have quite a lot of towns and industries. JAMI scores every possible route she can which means lots of industries and certainly lots of towns causes her to take forever to pick a route.
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
User avatar
Dustin
Transport Coordinator
Transport Coordinator
Posts: 272
Joined: 07 Dec 2005 19:22

Re: JAMI: Just Another Moronic Intelligence

Post by Dustin »

Xander wrote:
Yexo wrote:
Xander wrote:Therefore she doesn't need to have save/load implemented.
In that case the best option is to implement empty save and load functions to make sure the warning is disabled.
I plan to. I just couldn't get my head around tables and wanted to get JAMI v3 out there - given the mess v2 was causing :P
This is all you need:

Code: Select all

function JAMI::Save()
{
 local table = {};	
 return table;
}

function JAMI::Load(version, data)
{
}
Wold
Transport Coordinator
Transport Coordinator
Posts: 318
Joined: 03 Aug 2006 19:32
Skype: woldy_bg
Location: Bulgaria

Re: JAMI: Just Another Moronic Intelligence

Post by Wold »

You got the idea.. She ( as you call the AI ) even builds the stations the wrong way and doesn't connect them to a road.

Edit: new game and a quote from the debug about the station spam
Conham Transport, 5th Sep 1971.png
Conham Transport, 5th Sep 1971.png (78.29 KiB) Viewed 1562 times
Attachments
Flinfingpool Transport, 14th Oct 1970.png
Flinfingpool Transport, 14th Oct 1970.png (55.18 KiB) Viewed 1570 times
Flinfingpool Transport, 20th Aug 1970.png
Flinfingpool Transport, 20th Aug 1970.png (89.63 KiB) Viewed 1568 times
Last edited by Wold on 15 Aug 2009 14:34, edited 1 time in total.
Image
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 »

Wold wrote:You got the idea.. She ( as you call the AI ) even builds the stations the wrong way and doesn't connect them to a road.
Many thanks. Added to the bug list :)
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Wold
Transport Coordinator
Transport Coordinator
Posts: 318
Joined: 03 Aug 2006 19:32
Skype: woldy_bg
Location: Bulgaria

Re: JAMI: Just Another Moronic Intelligence

Post by Wold »

Some poor management:
Attachments
Conham Transport, 22nd Jan 1971.png
Conham Transport, 22nd Jan 1971.png (106.55 KiB) Viewed 1595 times
Image
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 »

Wold wrote:Some poor management:
Known about - planned for v8: http://noai.openttd.org/issues/show/12
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 »

Cool, never saw that roadmap.

Is JAMI actually only for rvs? You've never explicitly stated that...

Also I'm now getting:

MANAGER: New session

around twenty times!
bedders
Engineer
Engineer
Posts: 3
Joined: 18 Aug 2009 11:18

Re: JAMI: Just Another Moronic Intelligence

Post by bedders »

Road network problem:

Buses are being created and trying to ply the Fort Fladtown to Rinningville Transfer route, but as you can see it's not connected to a depot.

Keep up the good work though, the debug stuff is very readable :)
Attachments
Wonham Transport, 28th May 1938.png
(487.19 KiB) Downloaded 67 times
bedders
Engineer
Engineer
Posts: 3
Joined: 18 Aug 2009 11:18

Re: JAMI: Just Another Moronic Intelligence

Post by bedders »

Your script made an error: parameter 1 has an invalid type 'function'; expected:'integer'
Attachments
Wonham Transport, 10th Jan 1939.png
Wonham Transport, 10th Jan 1939.png (55.94 KiB) Viewed 1547 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 »

Many thanks. I'm pretty sure v4 should correct this problem :)
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: JAMI: Just Another Moronic Intelligence

Post by Kogut »

Can I use your log output format and/or your messages in my AI?
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
User avatar
kamnet
Moderator
Moderator
Posts: 8595
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: JAMI: Just Another Moronic Intelligence

Post by kamnet »

Xander wrote: 09 Aug 2009 23:13 JAMI: Just Another Moronic Intelligence
I know this is a real gravedig, but I randomly came across it, the AI console script amused me and I wanted to see what it looked like in OpenTTD today. Tagging just to see if Xander is still interested in trying to debug it after all of this time.

The successfully built one route, but then it started to build roads next to the intersection corners, it tried to then build a station, it failed and then abandons the route it just built.

Screenshot: https://cdn.discordapp.com/attachments/ ... b5a7165078&
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 14 guests