OpenTTD

Tasklist

FS#2980 - DoCommand problem

Attached to Project: OpenTTD
Opened by Rifani Arsyad (fanioz) - Monday, 15 June 2009, 13:29 GMT
Last edited by Thijs Marinussen (Yexo) - Wednesday, 19 August 2009, 16:15 GMT
Type Feature Request
Category Script → NoAI
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 0.7.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hello all, I didn't mean to report this as bug as I don't really know if it was a bug or feature :D.
However this will make the game run very slowly. Attached picture is Admiral try to execute a DoCommand somewhere inside his save/load/valuator/call. I 've ever got this problem too (It seems almost all AI too, except WrightAI :D ) And for me its hard to know which DoCommand in my code that make this error.

Suggestion :
Instead of full-fill debug screen with message "You're not allowed ....." and make the game run slower, what if immediately kill an AI that is try to run DoCommand in invalid time/place, and got message like :
"You're not allowed ....." + "in line xxxx "

Thanks for attention

This task depends upon

Closed by  Thijs Marinussen (Yexo)
Wednesday, 19 August 2009, 16:15 GMT
Reason for closing:  Implemented
Additional comments about closing:  In r17223
Comment by Rifani Arsyad (fanioz) - Monday, 15 June 2009, 13:30 GMT
I seems the attachment is missing

Loading...