This is my most dreaded error in Harlowe:
Why the fear? Because, at least in my game (which runs a pretty complicated engine and has a large number of variables, most nested inside multiple-level datamaps), I have almost no way of debugging it. I know more or less the exact moment that the error appears, but knowing which variable is wrong is extremely difficult. Sometimes the error was caused by simple typos, like missing parentheses, other times the error was caused by new systems I had to rewrite in a different way.
Do you have any suggestion or method for debugging this error? Is checking the variables values in the javascript console a feasible method?
I'd also suggest @L to improve this error message to give more information, if possible (I know he has lots to do!).
Thanks!
The game's variables contain a complex data structure; the game can no longer be saved.
Why the fear? Because, at least in my game (which runs a pretty complicated engine and has a large number of variables, most nested inside multiple-level datamaps), I have almost no way of debugging it. I know more or less the exact moment that the error appears, but knowing which variable is wrong is extremely difficult. Sometimes the error was caused by simple typos, like missing parentheses, other times the error was caused by new systems I had to rewrite in a different way.
Do you have any suggestion or method for debugging this error? Is checking the variables values in the javascript console a feasible method?
I'd also suggest @L to improve this error message to give more information, if possible (I know he has lots to do!).
Thanks!