SaveSystem.loadEnded is not invoking

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: SaveSystem.loadEnded is not invoking

Post by Tony Li »

Hi,

That DropMeFiles link doesn't work for me, sorry.
Fitbie
Posts: 44
Joined: Tue Dec 07, 2021 6:30 pm

Re: SaveSystem.loadEnded is not invoking

Post by Fitbie »

Ill try attach it here

[deleted]
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: SaveSystem.loadEnded is not invoking

Post by Tony Li »

Hi,

(I deleted the code since it's copyrighted.)

I don't see any differences in SaveSystemEvents.cs.

You're using an old SaveSystem.cs script that's missing several improvements. Can you try the current version?

Version 2.2.38.2 is still pending release. It has one additional fix:

- Fixed: SaveSystem.loadEnded is now invoked even if loadStarted has no listeners.

If you need that fix, let me know.
Fitbie
Posts: 44
Joined: Tue Dec 07, 2021 6:30 pm

Re: SaveSystem.loadEnded is not invoking

Post by Fitbie »

Hey! Thanks
Sorry, forgot about this

I have a big project and I don't even update the unity hub, haha, (had a negative experience after updating some assets/unity versions)
I'll try to figure out the current one. If I can get a fix or an idea how to fix it myself, I'll be very happy! Thanks Tony!
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: SaveSystem.loadEnded is not invoking

Post by Tony Li »

You can probably just import Plugins/Pixel Crushers/Common/Scripts/Save System/SaveSystem.cs. Here's the latest version (as of July 8, 2023):

PixelCrushers_SaveSystemPatch_2023-07-08.unitypackage

Back up your project first.
Fitbie
Posts: 44
Joined: Tue Dec 07, 2021 6:30 pm

Re: SaveSystem.loadEnded is not invoking

Post by Fitbie »

Unfortunately I get the error
Failed to find 'SceneValidationMode' namespace type or name (no using directive or assembly reference?)
But really, thanks a lot for all you do Tony!
Fitbie
Posts: 44
Joined: Tue Dec 07, 2021 6:30 pm

Re: SaveSystem.loadEnded is not invoking

Post by Fitbie »

- Fixed: SaveSystem.loadEnded is now invoked even if loadStarted has no listeners.
Silly me, im missed this message.
Actually, yeah, this was the problem. Now everything seems to be okay (at least loadEnden is invoking)
Thank you Tony, the best support in all of Assetstore devs!
If ill find something weird ill reply here.
In case somebody has same problem, you need to find public static void LoadFromSlot(int slotNumber) SaveSystem.cs method and delete if (loadStarted.GetInvocationList().Length > 1) check, and (as i understand) also delete else{ LoadFromSlotNow(slotNumber);}
User avatar
Tony Li
Posts: 21681
Joined: Thu Jul 18, 2013 1:27 pm

Re: SaveSystem.loadEnded is not invoking

Post by Tony Li »

Or use the current version of the Dialogue System if you can. ;)

Here's the SceneValidationMode script that goes with the SaveSystem unitypackage above:

DS_SceneValidationMode_2023-07-08.unitypackage
Fitbie
Posts: 44
Joined: Tue Dec 07, 2021 6:30 pm

Re: SaveSystem.loadEnded is not invoking

Post by Fitbie »

Thanks, you are the best!
I think ill try up to date next weekend, im too paranoid :roll:
Post Reply