Tool HTML [TwineGuard] - Sugarmelt Spiritual successor for Twine / Sugarcube games

XxLolxX1

Newbie
May 16, 2017
65
194
190
TwineGuard — Variable editor for Sugarcube / Twine games

I've had issues with Sugarmelt and most of the alternatives weren't following the same spirit so I decided to make an alternative. It doesn't do any network requests and only run code in the inspected window (the window where you open the TwineGuard in the development panel) it doesn't do anything outside of this.

Screenshots
screenshot_dark.png screenshot_light.png

Supported engines
  • SugarCube 1
  • SugarCube 2
  • wetgame

Downloads and source
  • Latest releases (download):
  • Source code:

Installation
If you want to build from source follow the instructions in the

Chrome / Chromium-based browsers (developer mode)
  • Download the latest release .zip from the link above and unzip it to a folder.
  • Open chrome://extensions.
  • Enable Developer mode (top right).
  • Click Load unpacked and select the unzipped TwineGuard folder.
  • Open a page running your Twine game.
  • Open DevTools (F12 or Ctrl/Cmd+Shift+I) and switch to the TwineGuard tab.

Firefox / Firefox based browsers (temporary add-on)
  • Download the latest release .zip from the link above. (Do not unzip.)
  • Open about:debugging.
  • Click This Firefox.
  • Click Load Temporary Add-on… and choose the downloaded .zip.
  • Open your Twine game page, then open DevTools and switch to the TwineGuard panel.
Note: Temporary add-ons are removed when Firefox restarts. Firefox has no issues on my end but I haven't done the validation of the extension through Firefox yet so it can only be loaded as Temporary Add-on (for now).
How to use
  • Open a Twine game that uses a supported engine.
  • Open DevTools and select the TwineGuard panel.
  • Browse variables with types shown; expand/collapse objects and arrays.
  • Filter or highlight variables by name/value.
  • Edit strings, numbers, and booleans inline — changes are applied live to the game.
  • Lock variables to prevent the game from overwriting them while the panel is open.
  • Control auto-refresh and interval (ms); toggle light/dark theme to taste.

Bug reports
Have something to report? Please include enough detail for anyone to reproduce it.
  1. Steps to reproduce (numbered, from opening the page to where it breaks)
  2. What you expected to happen
  3. What actually happened (errors, screenshots if possible)
  4. Engine and version (SugarCube 1/2, wetgame)
  5. Browser + version (e.g., Chrome 129)
  6. Game name (would be a + if it's downloadable here)
  7. Optional: DevTools Console errors (copy/paste)
  8. Optional: Minimal save or story snippet that triggers the issue

Feedback
Feel free to request features, if I like the proposition I won't mind implementing them. For compatibility with other games, I don't mind adding them if it's not too time consuming, it would help if you did some inspection on where variables are located (e.g: local-storage, the global variable path where they're stored, etc...)

Note: I am still doing some optimizations, for huge games with a lot of variables expanding all can cause freezing in animations when swapping between light and dark mode so keep that in mind
Credit : SugarMelt which helped me understand how to run code on the game window and the OG , no code has been copied though.
 

hackan

New Member
Oct 28, 2017
1
0
43
Every plugin I've tried so far didn't work with online SugarCube games, so I wrote my own with the help of AI, and it works for online games too and I'm just using it myself, but I can share it if anyone is interested. 1761696195578.png
 
Last edited: