You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a couple lines of dialogue play and then a dialogic signal causes a scene change, if dialogue starts in the _ready function in the next scene, that dialogue sometimes fails to be shown. It appears to be a threading bug.
Click through the dialogue until the text in the upper left corner says SecondScene
Sometimes, the next dialogue will be shown, and sometimes not. You may need to run the project many times to get a different result.
Expected behavior
The dialogue in the second scene should always be shown.
System:
OS: Windows, Linux
Godot Version: 4.3
Dialogic Version: 2.0 Alpha 16
Solutions
Workaround
Rather than starting the dialogue in _ready, starting it the first time _process runs seems to avoid the issue. I don't know whether this just makes the issue more rare.
Possible fixes
When the second dialogue fails to show, the DialogicGameHandler.gd ends up in state 1 (REVEALING_TEXT), set from line 125 of subsystem_text.gd. It ends up in state 0 (IDLE) if the second dialogue shows.
As far as I can tell, the result isn't deterministic even when I click through the dialogue the same way, so I think it's a threading issue.
I was able to reproduce it on the main branch of dialogic recently.
The text was updated successfully, but these errors were encountered:
The problem
Describe the bug
When a couple lines of dialogue play and then a dialogic signal causes a scene change, if dialogue starts in the _ready function in the next scene, that dialogue sometimes fails to be shown. It appears to be a threading bug.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The dialogue in the second scene should always be shown.
System:
Solutions
Workaround
Rather than starting the dialogue in _ready, starting it the first time _process runs seems to avoid the issue. I don't know whether this just makes the issue more rare.
Possible fixes
When the second dialogue fails to show, the DialogicGameHandler.gd ends up in state 1 (REVEALING_TEXT), set from line 125 of subsystem_text.gd. It ends up in state 0 (IDLE) if the second dialogue shows.
As far as I can tell, the result isn't deterministic even when I click through the dialogue the same way, so I think it's a threading issue.
I was able to reproduce it on the main branch of dialogic recently.
The text was updated successfully, but these errors were encountered: