Please sign in to comment.
[modScripting] Script system loading robustness
- It will attempt to convert script files loaded with LF line endings to use CRLF so that pre-processing #include works. - Line ending normalization will only be attempted once during a load for each file, by a recursion check. - This can fail if, for example, the script is set to read only in the OS. - Long file names in #include errors are now cut off after 100 characters. - Egregiously invalid file names in #include no longer break the script system and are treated correctly as "not found". - Un-accounted-for other errors with pre-processing and preparing modules will now be thrown as error messages which will attempt to display the file name. - Fixed an issue with SC_Error and Event_Error where the recursion check was always unset because an array was accessed before assignment in RunInSingle(). - Function-level RTE protection for scripting system now use the same display format for error messages.
- Loading branch information...
Showing with 120 additions and 58 deletions.
Oops, something went wrong.