Skip to content
Discussion options

You must be logged in to vote

They are different.

ai_controller.done = true signals to the RL algorithm that the current episode is done/finished. It will be reset to false by the sync node after it reads it and sends it to the Python server. It's used for training so the RL algorithm can know when an episode has finished.

needs_reset is what can be used to reset the environment in Godot. E.g. if needs_reset: reset_env() It has no effect on the Python server. Python server can set it to true (once before training starts with SB3), and AI controller also sets it to true after the specified number of steps in reset_after, but it doesn't have any effect by itself, unless you implement env reset based on whether needs_reset…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@FlubOtic
Comment options

@Ivan-267
Comment options

Ivan-267 May 6, 2026
Collaborator

Answer selected by FlubOtic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants