Possibly the answer is simple, but I am really a beginner in Godot (4.2 stable). Got the pack, and when running the scene I got some errors that required changing func names in order to make it start. But then, when it worked I saw the log ...
--- Debug adapter server started ---
--- GDScript language server started on port 6005 ---
Attempt to open script 'res://addons/save_system/save_system.gd' resulted in error 'File not found'.
Failed loading resource: res://addons/save_system/save_system.gd. Make sure resources have been imported by opening the project in the editor at least once.
Hi thanks for the comment. Indeed there was a problem with the template itself. While it did work fine on the original release of Godot 4.x, recent changes in the engine added some minor incompatibilities. These are fixed now, so just download the source code again. Thanks for pointing this out.
However keep in mind that the template expects to be installed in the root directory of your project. So if you want to put it in the subdirectory "addons", some paths in the scripts need to change as well. This isn't really complicated. Just open each file once in the editor by double clicking and you should see some kind of error regarding missing files or paths. If you don't the file should be ok as is.
Awesome, thanks for the quick response and the flawless solution. Looking forward to any of your future releases (if related with 3d scenarios ... better).
It saves modification time, the thumbnail image data and the player position. I don't want to provide a bloated solution that just saves everything there is. Instead, you can edit the save_data.gd file to include whatever game-specific stuff you want to get saved. Then in save_manager.gd you can edit the methods save_game() and load_game() accordingly.
← Return to template
Comments
Log in with itch.io to leave a comment.
Possibly the answer is simple, but I am really a beginner in Godot (4.2 stable). Got the pack, and when running the scene I got some errors that required changing func names in order to make it start. But then, when it worked I saw the log ...
--- Debug adapter server started ---
--- GDScript language server started on port 6005 ---
Attempt to open script 'res://addons/save_system/save_system.gd' resulted in error 'File not found'.
Failed loading resource: res://addons/save_system/save_system.gd. Make sure resources have been imported by opening the project in the editor at least once.
Can't autoload: res://addons/save_system/save_system.gd.
editor/editor_autoload_settings.cpp:551 - Condition "!info->node" is true. Continuing.
It is missing the autoload file too. My interest was for saving the player's location ... and I am not able to simply make the save.
Any advise will be greatly appreciated.
Hi thanks for the comment. Indeed there was a problem with the template itself. While it did work fine on the original release of Godot 4.x, recent changes in the engine added some minor incompatibilities. These are fixed now, so just download the source code again. Thanks for pointing this out.
However keep in mind that the template expects to be installed in the root directory of your project. So if you want to put it in the subdirectory "addons", some paths in the scripts need to change as well. This isn't really complicated. Just open each file once in the editor by double clicking and you should see some kind of error regarding missing files or paths. If you don't the file should be ok as is.
Awesome, thanks for the quick response and the flawless solution. Looking forward to any of your future releases (if related with 3d scenarios ... better).
This looks interesting. Does this save the entire state of the game or only the player position?
It saves modification time, the thumbnail image data and the player position. I don't want to provide a bloated solution that just saves everything there is. Instead, you can edit the save_data.gd file to include whatever game-specific stuff you want to get saved. Then in save_manager.gd you can edit the methods save_game() and load_game() accordingly.
Will it work for Godot 4.1?
As far as I know it should. If not just let me know here and I'll update.