AudioStream Globals issues when using change_scene_to_file #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
abgit/MirrorMirror#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Scene managment system
Every minigame scene is loaded one after another with the
loadNextScene()function.This function is implemented independently in each minigame main script.
Eg:
The plan is to create a global scene handler.
2 possible ways i see :
loadScene(scenePath)functionloadNextScene()that gets the top of the queue and loads itThe scene handler could use a signal so that minigames can notify when to load the next scene.
Files impacted :
cutMirror.gdmeltSand.gdpainting_canvas.gdruneGame.gdsmashGlass.gdstart_scene.gdshopping.gdOriginally posted by @fbouju in http://git.home/abgit/MirrorMirror/issues/1#issue-1
A crash appears when using the builtin function
change_scene_to_file()Invalid assignment of property or key 'stream' with value of type 'AudioStreamMP3' on a base object of type 'previously freed'.
The root cause seems to be an audio stream that is not freed properly in shopping.gd:64
The audio players were children of PauseMenu node, contained by the gameInterface node that was a child of the startScene, once the startScene got freed when switching scenes, the audio players too, hence the error, this is fixed in
91badf90ccMore details in my answer to #1
I think we can close this issue but I'm not sure so I'll let you do it once you read this