FS#6224 - TutorialShipAI error

Attached to Project: OpenTTD
Opened by Shiyiya (Shiyiya) - Sunday, 01 February 2015, 14:50 GMT
Last edited by frosch (frosch) - Saturday, 11 March 2017, 22:42 GMT
Type Bug
Category Script → Goal/Game script
Status Closed
Assigned To No-one
Operating System Windows
Severity Low
Priority Normal
Reported Version 1.4.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


I was holding down tab to speed it up and this window popped up and told me to submit a screenshot to the developer. It may or may not have something to do with the fact that I couldn't get the tutorial to progress? It instructed me to click on the oil rig and I clicked on all of them in every possible place about eight times and it didn't trigger the next step of the tutorial. (So I'm stuck unable to see the rest of the tutorial, as far as I can tell.) (That instruction happened several minutes ago.)

I hope I did this right, I'm sorry if I messed up somewhere.

I'm on Windows 7 Professional 64-bit.
This task depends upon

Closed by  frosch (frosch)
Saturday, 11 March 2017, 22:42 GMT
Reason for closing:  Bug in custom AI
Comment by Alberth (Alberth) - Monday, 02 February 2015, 19:49 GMT
Bug report forwarded to the tutorial project
Comment by Leif Linse (Zuu) - Wednesday, 04 February 2015, 21:25 GMT
Thanks for your report. I have some questions for you:

- Does this happen every time you play the tutorial and skip the ship chapter?
- Did the AI crash already when you started the game or was it later when you decided to try the lorries chapter? OpenTTD would have displayed the window you saw already at start if it did crash then.
- You say it was stuck, did you try clicking on the lower part of the oil rig near water surface or only at the top? The clicking detection area I think is at the water surface area covered by the oil rig.

Not directed at you but more regarding the code, I see that the code that do crash is this piece of code in the AI:

local sign_list = AISignList();
foreach(i, _ in sign_list)

A possible cause is that you were unlucky and the game script did remove a sign while the AI was iterating the over the list of signs, and possible the API implementation of AISignList cannot handle that.
Comment by Shiyiya (Shiyiya) - Wednesday, 04 February 2015, 22:18 GMT
I started the tutorial over and it did not happen again and I was able to trigger the next step of the tutorial and it didn't later crash. It didn't display at the start - it was after I had given up on getting the oil rig click to trigger and was messing around with airports and stuff and holding tab to speed it up. I clicked basically every pixel in an inch radius around the oil rig, and when I did get it to trigger on the later runthrough it was definitely on somewhere I had tried clicking before. I didn't skip the ship chapter - I was stuck in the middle and I didn't know how or if I could trigger the chapter list again to skip to something else. I was just playing some more with airplane and bus routes to practice and to see if it would fix itself if I waited, and then the crashy dialog thing happened.

I'm not sure it's a reproducible bug and I probably wouldn't have bothered reporting it if the window hadn't popped up and told me to submit a screencap!