Skip to content

Update run_script_in_play_mode description, Fix the issue if enter play multiple times by start_stop_play.#89

Merged
ShiqiAi merged 1 commit intomainfrom
update-tool-description
Feb 23, 2026
Merged

Update run_script_in_play_mode description, Fix the issue if enter play multiple times by start_stop_play.#89
ShiqiAi merged 1 commit intomainfrom
update-tool-description

Conversation

@ShiqiAi
Copy link
Copy Markdown
Contributor

@ShiqiAi ShiqiAi commented Feb 23, 2026

StudioTestService:ExecutePlayModeAsync({}) may error "Previous call to start play session has not been completed" immediately(still yielding) or yield until stop.

We want to return error message if it errors, or return success without waiting for the function return.
since it is yielding calls in both returns, we can not check it by something like if coroutine.status(co) == "suspended" then

Use function call with timeout instead

@ShiqiAi ShiqiAi enabled auto-merge (squash) February 23, 2026 20:47
@ShiqiAi ShiqiAi merged commit a9b4072 into main Feb 23, 2026
7 checks passed
@ShiqiAi ShiqiAi deleted the update-tool-description branch February 23, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants