Has anyone else got assertion: ai_instance.cpp:420?

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

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

Has anyone else got assertion: ai_instance.cpp:420?

Post by Zuu »

Recently I've at a few times I've got an assertion on line 420 in ai_instance.cpp when I unpause after having used the break on log string feature. Is this anything you also have experienced?

I've made a quick fix at: FS#3818. However, I don't fully understand why it happens, so I would be glad to know both if other people has got the assertion and if someone who knows DoCommands related to the _***_company vars in OpenTTD could take a look at it.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: Has anyone else got assertion: ai_instance.cpp:420?

Post by Zuu »

Good news, I've been able to reliable reproduce the assert using a tiny AI. Now I think I've fully understood why it happens and that the fix should be ok. More details are at the FS task along with the assert reproduction AI.

Would be happy if Yexo or someone else could take a look and unless I've made anything stupid commit it.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 7 guests