Git Product home page Git Product logo

Comments (11)

jabsatz avatar jabsatz commented on September 14, 2024 1

Hello @Galllaa , do I understand correctly that, if you replace SceneManager.reload_scene() for get_tree().reload_current_scene(), everything works as intended? If so, that does sound like it might be an issue on our side, unfortunately I don't have enough information to reproduce this as-is. Do you have a link to the project you're using, that I could clone and test directly? Or could you create a minimal project where this is reproducible?

from scene-manager.

Galllaa avatar Galllaa commented on September 14, 2024

Link to replicate the issue : https://www.mediafire.com/folder/k3ajypk45iyu5/SceneChangeTest if you want i can upload it to another site just let me know, is there a discord maybe it would be easier to communicate then over here.

from scene-manager.

jabsatz avatar jabsatz commented on September 14, 2024

We don't have a discord unfortunately, I will try to check this out this week though

from scene-manager.

jabsatz avatar jabsatz commented on September 14, 2024

Actually checking the link, it looks like I need MediaFire Premium to download files in bulk, could you upload a zipped folder or use a different service?
image

from scene-manager.

Galllaa avatar Galllaa commented on September 14, 2024

Yea shoud zip it before my bad. Here is the zipped project https://www.mediafire.com/file/z6pca5pz4j6rdtg/SceneChangeTest.rar/file
Tnx for taking time.

from scene-manager.

Galllaa avatar Galllaa commented on September 14, 2024

Any news for this?

from scene-manager.

myin142 avatar myin142 commented on September 14, 2024

I had something similar happen recently. Do you get any errors when calling the reload_scene function that the scene file could not be found? I solved it by using a PackedScene.

from scene-manager.

jertlemiah avatar jertlemiah commented on September 14, 2024

I don't know if this plugin is still being worked on, but I'm encountering this exact same issue

from scene-manager.

jertlemiah avatar jertlemiah commented on September 14, 2024

It seems to be a problem with how the Change scene works. If I use the reload scene without changing scenes first, it works as expected. But changing the scene, then trying to reload the current scene causes the "Resource file not found: res:// (expected type: )" error
<C++ Error> Condition "!file_check->file_exists(p_path)" is true. Returning: Ref()
<C++ Source> core/io/resource_loader.cpp:279 @ _load()

from scene-manager.

jertlemiah avatar jertlemiah commented on September 14, 2024

The way I got around this was to simply use change_scene on the current scene's path

from scene-manager.

Welshy92 avatar Welshy92 commented on September 14, 2024

I believe this issue is still happening. It only seems to occur on scenes that have been loaded with the scene managers change scene function. This is what I found:

  • If I use SceneManager.change_scene() and then the scene it loads uses SceneManager.reload_scene() at any point during that scene, the transition will play but then the scene will continue as if nothing happened. (No errors either)

  • If I use SceneManager.change_scene() and then the scene it loads uses 'get_tree().reload_current_scene()` at any point during that scene, nothing happens (No errors either)

  • If I use get_tree().change_scene_to_file() and then the following scene uses SceneManager.reload_scene(), this will work as intended.

My personal workaround is instead of using SceneManager.change_scene() , I used the SceneManager.fade_out() function, then get_tree().change_scene_to_file() and then called SceneManager.fade_in() on the new scene. This then meant the SceneManager.reload_scene() was working correctly. It's a couple of extra steps but it works exactly how I expected the normal method to.

from scene-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.