I have four scripts for save load system!
Two scripts are autoload and others aren’t.
I’m using ‘Resource’ that is one of the godot’s built-in system.
I’ve tried following the tutorial I saw on YouTube, but it’s not working properly
This is my script and code!
What is the problem?
[Hollowworldglobalveriables] - autoload
[Hollowworldsaveload] - autoload
[Hollowworld] - Resource
[Hollowworldmainscript]
main scene - save load button
main scene - health bar
file are cached, try to use cache remplace at load. Good luck!
1 Like
Thank you for your kind words!!
Sadly I didn’t know about cache remplace🥲
Could you tell about that?
Sure, I’m not sure it will solve your problem, but it’s still good to know about it anyway.
Take a look at this: ResourceLoader — Godot Engine (stable) documentation in English
In the load function, you have an optional parameter called CacheMode.
1 Like
Aha!! Thank you so much!!
1 Like
Does it solve your problem?
1 Like
I’m not sure yet! I’ll try it right away!
1 Like
I’m so sorry! I’m new to this cache mode so I’m not sure how to use it… I can’t try it despite the good explanation… Could you help me one more time?
You’ve updated line 16 of [Hollowworldsaveload] - autoload?
I use c# but you should have someting like this:
ResourceLoader.load(“res://SavedGame.tres”, “”, 2)
you can even try cache ignore:
ResourceLoader.load(“res://SavedGame.tres”, “”, 0)
1 Like
Waaa!!!
It works perfectly!!!
Thank you so much for your help!!!
You are such a genius and my savior!!!
1 Like
Ahah, glad it worked! enjoy the rest of your journey
1 Like
Thank you!! I hope you enjoy your own journey, too!!
1 Like
system
Closed
August 27, 2024, 11:00am
13
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.