Ruake In-Game Console with Scene Tree + In Editor REPL
by j9794
Ruake + REPL
This addon includes:
- a terminal that runs godot expressions using nodes from the running scene as context.
- a REPL that's available in the editor.
This can be used to debug while the game is running:
And to try out stuff in the editor!:
How to install
Download the project and copy the addon folder into your godot project.
Go to Project Settings > Plugins, and enable Ruake.
By default, this configures an action called toggle_ruake
that opens the Ruake terminal by pressing CTRL+1.
The input can be modified in the Input Map, and if you want to use a different action name, you can configure it in ProjectSettings > Addons > Ruake.
How to use
Ruake (in game)
Input the action that is configured to open ruake (toggle_ruake
-> CTRL+1 by default) and the terminal will open!
The same action closes it.
You can select a node from the SceneTree and the code will run using that node as self in the context of the expression.
Repl (in editor)
After enabling Ruake, you will have a new tab in the bottom dock!
You can run expressions there and evaluate them with Enter. You can scroll to previous expressions you evaluated with up and down.
Also, all the expressions are ran in the context of the selected node. So, if you choose a different node on the SceneTree, you can run code in the context of that node. That means, self will be that node for all the code ran.
Finally, you can use the eyedropper to evaluate code on any node of the editor itself. This can be used to make it easier to create plugins that modify the editor.
Download
Support
If you need help or have questions about this plugin, please contact the author.
Contact Author