david-pfx / PuzzleScriptNext

A direct successor to PuzzleScript, building on the work of PuzzleScript Plus, Pattern:Script and others.
http://www.puzzlescriptnext.polyomino.com
MIT License
12 stars 5 forks source link

Uncaught exception triggered by LEVEL_EDITOR #71

Closed angilbert closed 2 months ago

angilbert commented 2 months ago

Describe the bug Uncaught exception if you load a different game while the LEVEL_EDITOR is enabled. The exception fires repeatedly if you move the cursor within the level editor panel.

Reproduction Steps Load https://puzzlescriptnext.polyomino.com/editor.html Click on LEVEL_EDITOR Select any other game via "Load" or "Load Examples"

What did you expect would happen? The new game cleanly loads with no crash.

OS & Browser version, desktop/mobile MAC/Desktop/Chrome Reproducible in stable and dev-release.

Screenshots, example projects, other relevant issues, etc.

Screenshot 2024-07-27 at 10 12 49
david-pfx commented 2 months ago

This bug can be reproduced in original PuzzleScript! The error is different, but the cause is the same: variables not initialised when a new game is loaded.

angilbert commented 2 months ago

Closing issue - no fix planned

david-pfx commented 2 months ago

Fixed. One liner. Will release shortly.

(and I raised an issue with increpare)