IA error

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
jesuisdvd
Engineer
Engineer
Posts: 25
Joined: 06 Mar 2007 20:38
Location: Brussels, België

IA error

Post by jesuisdvd »

Today when i was playing this error appeared to me and i dont know what it is, the company with the ia error stops building and do nothing, i only have the simpleAI script installed, this started to happening today, the other days worked normally, what can i do? ?(

Image
Wold
Transport Coordinator
Transport Coordinator
Posts: 318
Joined: 03 Aug 2006 19:32
Skype: woldy_bg
Location: Bulgaria

Re: IA error

Post by Wold »

The phenomenon you've experienced is called "a bug". Because of that bug the AI crashes and cannot continue to execute it's code. What you can do is reload the AI or stop bothering with it. Here is the topic that you could report the bug to. The last activity though is from more than 2 years ago and you're using the latest OpenTTD version which can cause some incompatibilities (libraries and such).
Image
jesuisdvd
Engineer
Engineer
Posts: 25
Joined: 06 Mar 2007 20:38
Location: Brussels, België

Re: IA error

Post by jesuisdvd »

Thanks for the reply, what you recommend me to fix the problem??? :|
User avatar
Simons Mith
Transport Coordinator
Transport Coordinator
Posts: 326
Joined: 14 Jan 2010 23:45

Re: IA error

Post by Simons Mith »

If it happens rarely, you might decide to just accept it when it happens.

If it happens a lot, the easy way to avoid the problem is to stop using that AI and start using different, presumably newer, ones instead.

The hard way would be to learn the AI coding language and fix the bug for yourself. Yes, that would be quite hard, but it's not impossible. Almost all the game AIs have been written by other OTTD players - if they could do it, there's no reason you couldn't.

In all cases, reporting the problem on the AI thread [Wold gave a link to it] would be helpful of you, but if there's been no activity on that thread for years it may not do any good.
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: IA error

Post by Zuu »

The AI that crashed is MogulAI an not SimpleAI. I recommend that you report the error so that the AI can be fixed.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
jesuisdvd
Engineer
Engineer
Posts: 25
Joined: 06 Mar 2007 20:38
Location: Brussels, België

Re: IA error

Post by jesuisdvd »

Sorry, you're right was mogul the crash from pic, but simpleAI was also, i solved it removing the ai folder from my documents and download it again :P
Brumi
President
President
Posts: 921
Joined: 18 Jul 2009 17:54

Re: IA error

Post by Brumi »

I would greatly appreciate if you posted a screenshot when SimpleAI crashes for the next time. It was updated recently...
jesuisdvd
Engineer
Engineer
Posts: 25
Joined: 06 Mar 2007 20:38
Location: Brussels, België

Re: IA error

Post by jesuisdvd »

Brumi wrote:I would greatly appreciate if you posted a screenshot when SimpleAI crashes for the next time. It was updated recently...
Here it is :| , now is the only IA i have installed, the last version "7"

Image

Here with the parameters window (all by default)

Image
Brumi
President
President
Posts: 921
Joined: 18 Jul 2009 17:54

Re: IA error

Post by Brumi »

Thank you for the report, it will be fixed in the new version as soon as possible. Do you still have the savegame in which this happens? Most probably SimpleAI crashes because the game is saved right after it is loaded.
jesuisdvd
Engineer
Engineer
Posts: 25
Joined: 06 Mar 2007 20:38
Location: Brussels, België

Re: IA error

Post by jesuisdvd »

Yes i got the savegame... but i doubt save the game afer load was my problem...
Brumi
President
President
Posts: 921
Joined: 18 Jul 2009 17:54

Re: IA error

Post by Brumi »

The AI crashed while saving the game, it can be seen in the log. The log is very short before the crash, so I assume that the crash happened right after you loaded the game. Most probably you have autosave enabled.
jesuisdvd
Engineer
Engineer
Posts: 25
Joined: 06 Mar 2007 20:38
Location: Brussels, België

Re: IA error

Post by jesuisdvd »

Brumi wrote:The AI crashed while saving the game, it can be seen in the log. The log is very short before the crash, so I assume that the crash happened right after you loaded the game. Most probably you have autosave enabled.
Yes i have autosave every 3 months.
Brumi
President
President
Posts: 921
Joined: 18 Jul 2009 17:54

Re: IA error

Post by Brumi »

The bug has hopefully been fixed in version 8, which is available for download. It is fully savegame compatibile with the previous version, so it should load your game correctly, tell me if it doesn't :)
Thanks for reporting!
jesuisdvd
Engineer
Engineer
Posts: 25
Joined: 06 Mar 2007 20:38
Location: Brussels, België

Re: IA error

Post by jesuisdvd »

Brumi wrote:The bug has hopefully been fixed in version 8, which is available for download. It is fully savegame compatibile with the previous version, so it should load your game correctly, tell me if it doesn't :)
Thanks for reporting!
Thanks to you for your helpful job :bow: :wink:
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 3 guests