anxiety icon indicating copy to clipboard operation
anxiety copied to clipboard

Debug mode

Open tezzutezzu opened this issue 5 years ago • 4 comments

@ncase By any chance, is there a way of going backwards / fast-forward the dialogue during the game?

How do you debug the dialogue?

tezzutezzu avatar Sep 18 '19 19:09 tezzutezzu

Thanks for asking! (And I'll put this info on the README later)

To jump around sections, in the JS console, type Game.goto("name_of_section_id_without_the_pound_sign"), like Game.goto("act4") or Game.goto("credits").

You can also edit main.js so it skips the intro scene and goes straight to the chapter you want to test (you'll see some commented-out code where I did the same)

ncase avatar Sep 18 '19 20:09 ncase

How about just going backwards one step in the dialog? Is that possible by chance?

PS thank you for your work!

tezzutezzu avatar Sep 18 '19 20:09 tezzutezzu

@tezzutezzu Actually I just remembered, @spaciecat made a really cool Debug Mode! Type Game.debug() into the console, and if you hover over the left sidebar, you'll get a list of all sections. Clicking on a section jump-cuts you to that section (note: it may break because the game expects some code to run in some order)

How about just going backwards one step in the dialog? Is that possible by chance?

Sadly no :( I, too, had to do a lot of refreshing the page (or Game.goto(sectionID) to an earlier section)

ncase avatar Sep 18 '19 20:09 ncase

That's super handy. Thanks!

tezzutezzu avatar Sep 18 '19 20:09 tezzutezzu