Open athariqk opened 2 years ago
One idea that was presented was to roll our own command parser and use C# reflection to allow it to call C# methods that do stuff.
Edit: and auto-complete in the console text input would be nice to have but not mandatory.
Edit 2: console commands with auto complete and history remembering, would make it easy to load specific save or go to specific scene easily, and adding a bunch of cheats
I've added a dedicated folder for scenes that just load a specific stage in the game, it'd be pretty handy if the console could be used to switch to these scenes with a quick command to allow people playing a release version of Thrive to jump to a specific stage.
Note that it seems there's currently no way to get current log output from Godot, so we couldn't show Godot messages in the console...
Relevant godot proposal:
Also once this is done the testing wiki page needs to be updated to mention these new powerful tools: https://wiki.revolutionarygamesstudio.com/wiki/Testing
This could be taken inspiration from: https://github.com/MASSHUU12/godot-yat (or maybe even used as-is if system commands can be disabled for more safety).
We should add a debug/command console to the game that could handle command inputs and showing the game logs during runtime. This will be extremely helpful for playtesting and debugging where we could have easier access to many more cheats and debugging tools.