Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIDebug window does not open on compile errors in libraries #3669

Closed
DorpsGek opened this issue Mar 7, 2010 · 4 comments
Closed

AIDebug window does not open on compile errors in libraries #3669

DorpsGek opened this issue Mar 7, 2010 · 4 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Mar 7, 2010

Zuu opened the ticket and wrote:

I found out that when there is a compile error in a library the AI debug window does not open automatically. Not a big issue for users since these errors should be fixed before they get to download the libraries, but for AI writers who tries to make libraries it can be useful to quickly get notified about the error.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3669
@DorpsGek
Copy link
Member Author

DorpsGek commented Mar 7, 2010

Zuu wrote:

It seems like also compile time errors in the AI do neither bring up the AI debug window when you load a game. A such compile time error in the AI could be calling a function without an ending bracket and semicolon:

say_hello("Hi"

---

So this bug might more be that the AI debug window does not show on compile errors at all or not when you (re-)load an AI by (re-)loading a savegame.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3669#comment7671

@DorpsGek
Copy link
Member Author

DorpsGek commented Mar 8, 2010

Rubidium wrote:

I suspect this is due to the AIs being compiled while loading the savegame and one of the actions done after finally loading the savegame is reinitialising the window system, i.e. the window get closed again. Not sure how to 'fix' this without major changes to the way savegames are loaded/games are started.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3669#comment7678

@DorpsGek
Copy link
Member Author

DorpsGek commented Mar 8, 2010

Zuu wrote:

Hmm, yes that sounds resonable.

A possible fix would be to enqueue open window actions if they happen during save/load. That said you would have to store the parameters for opening a window somehow, and if the current game state being part of the parameters used to create a new window then it could become messy.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3669#comment7681

@DorpsGek
Copy link
Member Author

Yexo closed the ticket.

Reason for closing: Fixed

In r19395


This comment was imported from FlySpray: https://bugs.openttd.org/task/3669

@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant