Satellite Reign

Satellite Reign

View Stats:
Caldor Jul 15 @ 12:12pm
Found the secret debug keys
So... I have been decompiling the games code pretty much since I began making mods for this game. I kept coming across the debug_mode but never thought much of it. I might have enabled it when I changed the games code a bit to try to enable more options. But now I found there are secret keybindings.

To toggle debug mode click:
left shift + left ctrl + right ctrl + D

You should get now a message telling you debug mode has been enabled or disabled. While enabled you will have access to several more shortcuts.

left shift + i : Should show the version of Satellite Reign

left shift + alt + ctrl + i : Enabled or disable the UI

F9: disable people render
F10: Disable car render
F8: disable X-Ray
Left shift + F: disable fog
Left shirt + P: Show physics

Left shift + N: toggle debugging --
( debugging mode

Numpad minus: decrease debug level
Numpad plus: Increase debug level
PageUp and PageDown offsets the debug log (I think its displayed over the map in the upper right corner)
Home: Opens the debug log in Notepad++ (if its installed I guess)
shift-divide or shift-multiply: change debug text priority
no-shift-divide and no-shift multiply: Change debug page index
pageup or pagedown: Scrolls through debug keys?
)

And some cheats as well:
left shift + S: Add skillpoints
K: Add wanted level
Tab: Cycle weapons

There should be even more, I will keep digging.

I think I found more keys.

Numpad 0 to 9 changes the gamespeed to be between 0 and 1. 0 will switch it between 0 and 1 (pause and normal speed.
Ctrl + numpad 0 to 9 will set the gamespeed from 0 to 10. 0 switching between 0 and 10.

Shift + ctrl + Q: Show all Quest text
shift + F: Subtitle test
shift + X: Toggle Babymode (makes enemies take 4 times damage, and the player 0.25% damage).
shift + G: Toggle godmode (Infinite health I suspect)
shift + E: Infinite energy
shift + B: Unlock all blueprints
shift + P: Unlock all prototypes
shift + H: Hijacks select unit without having it count towards people hijacked
shift + W: increases the wanted level
ctrl + shift + W: decreases the wanted level
ctrl-shift-alt-N: Win the game
ctrl-alt-M: Shows a mission debrief... maybe completes the mission?
ctrl-M: debug music cycle state
ctrl-J: Shows a banner message test
shift-R: Add researcher
ctrl-shift-R: Remove researcher
R without pressing left shift: Force revive selected agents
ctrl-alt-R without pressing left shift: Force respawn selected agents at current location
ctrl-alt-C: Adds some specific clones to your clone... lab?
shift-C: Add selected unit as a clone or a random clone if no unit is selected
ctrl-alt-S: Add all skills to all agents
shift-O: Cycles agent owners? Related to network game. Might give and release control of agents
shift-Y: Delivers next district message
ctrl-shift-Y: Delivers all district messages
shift-A: toggles infinite ammo
shift-M: Adds 10000 credits / funds / money

ctrl-PageUp: Moves the camera 2 up
ctrl-shift-PageUp: Moves the camera 0.3 up
ctrl-shift-alt: Moves the camera 1 up
With PageDown its the same, but moves the camera down

shift-comma (,) : Rotates camera left
shift-period (.): Rotates camera right

shift-ctrl-left bracket: decreases pan speed by 0.25
shift-ctrl-right bracket: increases pan speed by 0.25
shift-alt-left bracket: decreases pan smoothness by 0.01
shift-alt-right bracket: increases pan smoothness by 0.01

shift-mouse scroll: offsets camera zoom up or down

shift-slash : Changes language to the next on the list
ctrl-shift-slash: Reloads language files
F8 : Recalls all reinforcements?

F5: Debug savegame?
F6: Debug load game

Found even more:

Alpha 0 (the zero that is not on the numpad): Teleport selected units to the location of your mouse cursor.

Alpha 9: Toggles lights for cameras.
Alpha 8: Toggles lights
Alpha 7: Toggles lights as well?

T: Same as 0... but does it differently? I am a bit unsure which is most reliable.

J: Changes the control for the select agent to be joystick controlled?

F12: Toggle fly camera (disable key input)
left-shift + right-shift + F12: Toggle fly camera with key input

Shift-J: Toggles drawing commands

Last edited by Caldor; Jul 17 @ 9:38am
< >
Showing 1-11 of 11 comments
Gillsing Jul 15 @ 12:22pm 
Cool. I wonder if there'll be a 'move this agent to this location' feature?
Caldor Jul 15 @ 2:57pm 
Originally posted by Gillsing:
Cool. I wonder if there'll be a 'move this agent to this location' feature?
In what way? Like preset waypoints? I think you can teleport units with the debug mode.
Caldor Jul 15 @ 4:00pm 
Added a bunch more keys
(d^u^b) Jul 15 @ 4:04pm 
Wow! Thank you for sharing yer find Caldor! :steamhappy:
(make a guide?)
Last edited by (d^u^b); Jul 15 @ 4:05pm
Caldor Jul 15 @ 4:17pm 
Originally posted by (d^u^b):
Wow! Thank you for sharing yer find Caldor! :steamhappy:
(make a guide?)
I think I will, just trying to get a more complete overview of it all. These shortcuts are found in several different files. I just added a few more.

I think I have most of them now, but I think I will try testing them and then maybe sort them into different debug types. A lot of these do parts of what my Cheats mod did, but in a more controlled way, changing fewer things or making it possible to toggle stuff and do more specific actions.

But I will try to collect all the short-cuts relevant for cheating and then all the shortcuts that might be relevant for more practical stuff like trying to optimize performance or control the camera and then a group with all the stuff that is more hard core debugging related with stuff that might not even make sense to me yet.
Last edited by Caldor; Jul 15 @ 4:19pm
Caldor Jul 15 @ 4:27pm 
Originally posted by Gillsing:
Cool. I wonder if there'll be a 'move this agent to this location' feature?
I found that 0, the non-numpad 0, teleports selected agents to where your mouse curser is. Was something I found just by experimenting in game though, have not found it in the code.
But after doing this, moving the agents seems to become... strange. Like sometimes flying up way above street level. It often kills the agent to do this. Adds some effect to the that drains their health. God mode helps, and you might need to use the revive short-cuts (R to force respawn, ctrl-alt-R to force respawn at current location)

8 disables lights
Last edited by Caldor; Jul 15 @ 5:14pm
Gillsing Jul 15 @ 5:26pm 
Aww, too bad about all that weirdness then. I was hoping that the next time someone complains about agents getting stuck, I could just refer them to the debug mode and tell them how to counter the bug without having to download a mod.

When you tried it out, did you make sure that your mouse pointer was over a suitable walk mesh? I could see how telling the game to put agents where they should not be could indeed cause severe problems with both movement and death. After all, that's what happens when agents fall through the walk mesh and end up far down below, where no one is floating.
Caldor Jul 15 @ 5:39pm 
https://steamcommunity.com/sharedfiles/filedetails/?id=1805382698

The debugging system is pretty interesting. The civilians even seems to have stats for being thirsty, hungry and such. They sure had a lot of interesting ideas for this game. This screenshot shows a debug mode that displays information about the different AI and your agents. numpad division and multiply changes what information will be displayed.
Last edited by Caldor; Jul 15 @ 5:41pm
Caldor Jul 15 @ 5:42pm 
Originally posted by Gillsing:
Aww, too bad about all that weirdness then. I was hoping that the next time someone complains about agents getting stuck, I could just refer them to the debug mode and tell them how to counter the bug without having to download a mod.

When you tried it out, did you make sure that your mouse pointer was over a suitable walk mesh? I could see how telling the game to put agents where they should not be could indeed cause severe problems with both movement and death. After all, that's what happens when agents fall through the walk mesh and end up far down below, where no one is floating.
Its rather irratic but if there is a clear spot it... it is likely to work. Maybe. But if they fall through the floor, it will activate this debuff that causes them damage and might kill them.

The bug that might cause them to float and such seems rare though... might even have been some other key. The keyboard is pretty chock full of debugging keys once this is enabled and misclicking a key-combination is pretty likely to do something different. Some short-cuts are even about certain keys NOT being clicked instead of just looking at keys that have been clicked, to avoid activating several different debugging features. Which also still happens with some of the short-cuts. F8 f.ex. seems to have two functions. Recall reinforcements and toggle X-Ray, which should be how you can see people through buildings with their scan color, the support agent skill. I think you can toggle that with F8, making it so you cannot see people who are behind something.

All in all, it does seem like a viable way of getting unstuck... but you better remember to disable debug mode again, because... well, there is a lot short cuts. Anything might do something.
Last edited by Caldor; Jul 15 @ 5:48pm
Twilight Jul 16 @ 10:10am 
Hey, good find!

Can you place that in a guide section for everyone to find?

Regards
Caldor Jul 16 @ 10:19am 
Originally posted by Twilight:
Hey, good find!

Can you place that in a guide section for everyone to find?

Regards
That is the idea, but I need to clean it up first, test all the short cuts and such.
< >
Showing 1-11 of 11 comments
Per page: 15 30 50