Skip to content

Skip signal when get_full_state() just stop at signal line #2561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
iiiron opened this issue Apr 8, 2025 · 1 comment
Open

Skip signal when get_full_state() just stop at signal line #2561

iiiron opened this issue Apr 8, 2025 · 1 comment

Comments

@iiiron
Copy link

iiiron commented Apr 8, 2025

I wrote a timeline, and i send a signal at middle, the out code ended the timeline by called Dialogic.end_timeline() and save it by Dialogic.get_full_state() before.

The issuse is, when i resume the timeline by Dialogic.load_full_state(), the signal send again.

Is there any way to let signal just send once

@iiiron iiiron changed the title skip signal when Dialogic.load_full_state() that just be Dialogic.end_timeline() at signal line Skip signal when get_full_state() just stop at signal line Apr 8, 2025
@Jowan-Spooner
Copy link
Member

Yes, just manually advance the timeline before saving the state (even just Dialogic.current_event_idx += 1 might work), that should be enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants