Non-Fatal Error in Prototype Stage
Posted: Sat Dec 21, 2024 10:33 pm
Bassically, i've been using `error` in my data-final-fixes.lua to report if some of my mod's changes might not work correct. Unfortunately, this prevents people from loading my mod, but I'd like users to be able to ignore the 'error' so they can still use the mod.
I could of course not use `error` and use `log`, but then users are unlikely to notice anything strange (and in particular, won't tell me so I can make the mod work better!).
I was thinking of opening a dialog box with a warning in control.lua that would show when they load a save, but then I'd have to duplicate most of my prototype stage code to check if there were any problems (or is there a way to easily send information from the prototype stage to runtime?)
If there's a way to do something like this with existing features, that would also be great!
I could of course not use `error` and use `log`, but then users are unlikely to notice anything strange (and in particular, won't tell me so I can make the mod work better!).
I was thinking of opening a dialog box with a warning in control.lua that would show when they load a save, but then I'd have to duplicate most of my prototype stage code to check if there were any problems (or is there a way to easily send information from the prototype stage to runtime?)
If there's a way to do something like this with existing features, that would also be great!