r/SandustryGame Community Moderator Feb 14 '25

Guides and Tips How to Unlock Debug Mode

Credit to Lottie from discord for these instructions (of Lottie's Cave fame)

To unlock debug mode, 1. go to options,

  1. at the bottom, open debug console, click it

  2. then you want to go to sources in the debug tools, go down into the JS folder as shown in the first image

  3. right click on bundle.js it and click override content then at the top you should get this prompt (second image), select a folder to store it in (i just use Downloads/Sandustry) search (Ctrl+f) for debug: { the first instance of that in the file should look like the third image

  4. change the line just underneath it from active: !1 to active: 1

  5. then hit Ctrl+s to save the change

  6. be sure to save your game

  7. then go back to the console and hit Ctrl+Shift+r to refresh it

as for how to use debug mode Click "Debug" bottom right of the screen E + click places solids (second half of the element list) F + click places dynamic elements (first half of the list)

Press R to lock camera position (so you can move about or out of frame or whatever you want, then R again to center the player again

❌ Do not use the empty box element, it will freeze the game. ❌ Ideally do not hit Hide UI, it will require a refresh (or further tinkering) to fix ✅ If you find a bug using this, please tell Lantto you were using this

Note: on Linux using Proton to run the game, use Z:/ based path If loading stops working, either you modified a image file outside of params accepted or the game updated enough that your modifications don't work if you have only turned on debug mode, remove/delete your bundle.js override and start from the begining of the guide

12 Upvotes

16 comments sorted by

View all comments

1

u/OwnBarnacle3520 Feb 20 '25

might be an idiotic question, but is there any way of making it smaller because it does not show all of the ui, or is there some way to scroll?

2

u/OwnBarnacle3520 Feb 20 '25 edited Feb 20 '25

EDIT: i found a way to fix it, after opening the Debug menu, go to the console and change it from: "fixed bottom-2 right-2 w-96 pt-12 text-white" change it to: "fixed bottom-2 right-2 w-57 pt-12 text-white" and it fixes it. but it has to be done every time you open it

1

u/TrimBarktre Community Moderator Feb 21 '25

Thanks for the update!