-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to check when loading a game save fails? #38
Comments
Hi! Yes, right now the signal is not triggered if there's no game to be loaded. I could just return send the signal with a null object in that case, I think it makes sense in case you want to react to that scenario. Let me check if I can implement this change and I will let you know! |
Hi! Try the new release, it's now sending a null in the |
so to be clear on the usage, in my function that is connected to
also, for installing this new release, is it ok for me to not transfer the autoloads folder and keep using the old one? or are there changes in there too that i need? because i have a change that i find i keep having to transfer between releases. because you defined a class called Player in the PlayerClient but as common with many games i already have a player class so i keep having to change the one in the plugin to PlayerInfo 😅 |
That code snipet is correct, yes! To install the version you can only install the changed files + the bin folder. You can check what files changed in the commit, but it's basically the And one last thing, the version in the cfg file is updated now, just download the |
Hi again! I just created a new major version renaming all |
So, if you're going to use version 2.0.0 you have to install the whole plugin, which I understand is what you did already. That error appears sometimes the first time you install the plugin, have you retried closing the project and reopening? I thought I solved it but maybe not, or maybe it's just something completely different. About the Json marshaller it is indeed needed, it's what converts the json data from the plugin to the gdscript classes. You actually need all the files in the plugin. |
yeah i have tried restarting the project. still it gives the same error when trying to enable it. well thats good to know.
does that mean that even if i dont plan to use some of the clients such as the achievements clients i should still keep the script around and just disable it in the globals tab? |
Maybe you don't need all the files, but some of them have dependencies between them, that's why I wouldn't recommend deleting any files, unles you know exactly what you are doing. I'll also try not disabling anything until you're sure everything works. Then you can try disabling the autoloads that you don't need and check if everything still works fine. About the error you mentioned, there's any other error message? The editor usually shows more messages in the output tab in the bottom dock. |
im sorry, that was totally my mistake. i forgot i removed the marshaller even before i asked you the question and that caused the issue. |
nice! I'm glad you're progressing!! As always, I'll close the issue now but feel free to ask anything! |
i have connected the
game_loaded
signal to a function that will take the snapshot and process its info.but it seems that when there is no save to be loaded, that function i connected simply doesnt get run (i presume the game_loaded signal isnt being fired?)
is there a way for me to run some code for when there is no save to be loaded?
The text was updated successfully, but these errors were encountered: