ErDrago
New Member
- May 1, 2020
- 14
- 12
- 147
TwineForge — MV3 Tool for Twine (SugarCube)
TwineForge is a browser extension for inspecting and editing SugarCube/Twine variables in-page. It is an updated and improved version of the old TwineHacker tool that no longer works. It has new UI, built in search system, cleaner desing and with more updates coming soon!
Github link -
You must be registered to see the links
What it does
- Injects a small inspector UI into pages running Twine/SugarCube so you can view and edit State.variables / globals easily.
- Provides a helper to list custom globals.
- Works with local Twine HTML files (enable file access) and sites hosted on localhost.
- Minimal permissions — it uses activeTab + limited host permissions (file and localhost). You must click the toolbar icon (or use the keyboard shortcut) to inject the tool into an arbitrary page.
- Open chrome://extensions/.
- Turn Developer mode ON.
- Click Load unpacked and select the extension folder (the folder that contains manifest.json).
- After adding it, click the extension entry → Details → Allow access to file URLs (if you want it to work on file:/// Twine files).
- Optionally pin the extension to the toolbar for quick access.
- Open your Twine/SugarCube HTML file in Chrome
- Click the TwineHacker icon in the toolbar (this gives the extension temporary activeTab access and injects the UI).
- Or use the keyboard shortcuts:
- Ctrl+Shift+H — inject TwineHacker UI into the active tab
- Ctrl+Shift+R — reset position if stuck off screen
- After injection, an inspector UI will appear (or the UI will create a small overlay) where you can view and edit variables. Editing is immediate; be careful — changing variables can break game logic.
Permissions & Privacy
- Permissions used:activeTab, scripting, storage. Host permissions limited to:
- file:///* (optional, disabled unless you toggle it in extension details)
- -http://localhost/*
- -http://127.0.0.1/*
- Privacy: The extension runs entirely in your browser. It does not send any data to external servers. It only reads/modifies variables in the page where you run it. If you are uncomfortable granting file access, run your Twine locally through a small local server (e.g. python -m http.server) and use -http://localhost instead.
- Why limited hosts? To reduce privacy concerns and make the extension acceptable for users — the extension will not automatically inject into every site; it injects when you click the icon or use the shortcut, and only on local files or localhost by default.
Troubleshooting
- Icon is grayed out / doesn’t inject: Make sure you clicked the extension icon at least once to grant activeTab permission. If using file:///, enable Allow access to file URLs in extension details.
Credits
I did not make this all fully by myself. It is heavily based on the one from here https://f95zone.to/threads/how-to-debug-or-cheat-twine-sugarcube-variables.6553/post-314996 because it is no longer working on MV3. Though not that much is still in common with that version cause almost anything was rebuilt/upgraded.
Download here:
TwineForge (Updated, cleaner version with better UI, more functions, skins, resizing, easy updater and active development. More updates on the way!) -
TwineForge Skins
You must be registered to see the links
TwineForge Skins
You don't have permission to view the spoiler content.
Log in or register now.
Last edited: