Closed colinator27 closed 4 months ago
Download the artifacts for this pull request here:
GUI:
CLI:
How does the CLI handle this?
CLI just specifies the file path and encoding now, so #load
will work properly there too. There's no updated exception handling for it like there is in the GUI, though (it'll be the same as before).
Description
Based on code from https://github.com/UnderminersTeam/UndertaleModTool/pull/1504. Modified to fix the root cause of the problem (file paths/encodings not being specified in ScriptOptions), rather than using regular expressions to work around it.
Also includes the improved script stack traces/exception handling, but further cleaned up and commented.
Caveats
As mentioned in the above PR, this does make exceptions slightly more verbose (even for single scripts), but this is probably a welcome change.
Notes
Tested to work with built-in scripts and UMP.