As I continue to find my feet in Ink, I ran into an unfortunate situation. I’d created a fully intentional loop, with a choice in it: click this to go back to the main menu.
Then I accidentally deleted the +
before that choice, creating an infinite loop without a choice.
At this point my laptop started to overheat as Inky consumed more and more CPU and RAM, running through the loop over and over, and the editor was unresponsive so I couldn’t put the +
back in. I had to kill the process from the terminal, open the file in a normal text editor, and fix the mistake before opening Inky again.
Now, of course the best way to avoid this is just not to make that sort of mistake. But if it does happen due to user error (like by accidentally deleting a +
and turning a choice into just another line of text), is there a better way to stop the interpreter? I know the Inform IDE provides a button to halt the interpreter if something goes wrong, but I haven’t seen anything like that in Inky.