Comments (11)
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.
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.
We don't have a discord unfortunately, I will try to check this out this week though
from scene-manager.
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?
from scene-manager.
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.
Any news for this?
from scene-manager.
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.
I don't know if this plugin is still being worked on, but I'm encountering this exact same issue
from scene-manager.
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.
The way I got around this was to simply use change_scene on the current scene's path
from scene-manager.
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 usesSceneManager.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 usesSceneManager.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)
- Update groups correctly when setting singleton entities HOT 1
- Exported windows binary returns Parse Error HOT 2
- MAY I HAVE SOME HELP
- Passing parameters to next scene HOT 4
- The color of fade doesn't change HOT 2
- Godot 4.0 support HOT 6
- Godot 4: Callbacks when changing scenes HOT 3
- Ability to manage fade out and in as independant operations along with more advanced fade_in_place() concept HOT 6
- Support scenes ancestry -- go_back() HOT 2
- Change scene with PackedScene instead of string HOT 2
- Allow for custom animations (besides shader fade images) HOT 1
- The VideoMemory fill up (loading) is not included in the loading screen. HOT 5
- Godot 4: set_shader_param was renamed
- RFC: Better API for custom animations HOT 2
- Godot 4 - shader parameters warning HOT 2
- change_scene doesn't work with PackedScene HOT 1
- Godot 3.5 : Error when switching between inherited scenes HOT 2
- [Docs] Entity Singletons Features example missing options in Godot 4.1.1 HOT 1
- Background loading
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scene-manager.