Skip to content

Cannot change scene with InkPlayer instantiated #83

@MonkaKokosowa

Description

@MonkaKokosowa

Describe the bug

It's not possible to change a scene via get_tree().change_scene_to_file() with InkPlayer instance in the active scene.
To Reproduce

  1. Run a scene with instantiated and loaded InkPlayer
  2. Change it to another one (it doesn't work with and without the inkplayer in the new scene).
  3. Crash

Expected behavior

Normal scene change, just like with any scene that doesn't have InkPlayer

Ink files

It happens with any .json ink file

Environment:

  • OS: MacOS 14.2.1
  • Godot version: 4.2.1 vanilla
  • Inklecate version:
  • inkgd version: 0.6.0

Additional context

The exact issue is caused by line 838 in ink_player.gd with error Invalid get index 'root' (on base: 'null instance').

Also, I noticed that if I just comment that line out, there's no errors and the scene changes, though I don't know exactly if something else breaks in the back that I don't know about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions