Closed benloh closed 1 year ago
added 1 commit
added 8 commits
dev-next-gui
added 1 commit
added 2 commits
added 1 commit
added 1 commit
added 3 commits
added 1 commit
added 2 commits
mentioned in commit 5acb47428bf373d7436c517509cbba3ed7f80717
Merges dev-bl/next-gui-safeload -> dev-next-gui
Background
When editing scripts, especially if using the code editor, it is easy to accidentally save a script that will not compile. This would cause Main to stop running, and ScriptEditor would either show "Waiting for Main..." or could not submit updated scripts to the server.
Once this happens, the student would have to drop out into VSCode and fix the project file by hand, and restart the server to recover.
The Fix
This introduces a number of fixes that should keep Main running, and therefore ScriptEditor running, and allow ScriptEditor to submit script changes to fix any issues.
We also now try to catch and display errors so that they are not invisibly being dumped to the dev console.
Specific fixes:
Initialize
but catch and display errorsaddFeature
,addProp
now write to correct bundledbgOut
messages can now be input via the GUI Wizard# BLUEPRINT
pragma. Prevents ScriptEditor from switching to bp selection view.b2b
) can now be entered using the GUITo Test
prop xxx
to a script and submit it. You should see an error on Main, but both Main and ScriptEditor remain running.prop xxx
toprop
and submit it. This should no longer trigger an error and the sprites should load.