Page 1 of 1

Unable To Restore Quest error [Solved]

Posted: Sat Jul 01, 2023 1:50 pm
by KingCeryn
Hey Tony, so im trying to just load my quests in, but im having trouble getting it to work- for some reason whenever I back out of a scene and re-join, and call my load functions, if i already had quests in my journal it won't restore them, and gives me this error.

There seems to be two empty spaces in my Quest Journal, and then the right quests loaded below them, so something is happening but not sure what. I used this little function you wrote awhile back to not use QuestGivers, but otherwise it works normally- once, without saving and loading scenes.

https://www.pixelcrushers.com/phpbb/vie ... ver#p20467

I can usually load up a few quests, Save once, and then load as many times as i want- However, if I LOAD, add a new quest, SAVE, and try to load again, thats when i get these errors mostly, and i just can't figure out what i'm doin wrong.

Re: Unable To Restore Quest error

Posted: Sat Jul 01, 2023 3:29 pm
by Tony Li
Hi,

What version of Quest Machine are you using?

Did you save the game in the same version of Quest Machine or an older version?

On your player's Quest Journal component, what are the values in the Save Settings section?

Re: Unable To Restore Quest error

Posted: Sun Jul 02, 2023 1:28 am
by KingCeryn
I'm using 1.2.34 for Quest Machine, and im saving using SaveSystem.SaleToSlot(int)

Here's what my player's journal save settings look like, but ive tried ever combination and it still happens.

Re: Unable To Restore Quest error

Posted: Sun Jul 02, 2023 1:35 am
by KingCeryn
Here's what It looks like when i start up, add quests, load a scene and SAVE:
FirstLoad.PNG
FirstLoad.PNG (4.88 KiB) Viewed 1268 times
I can exit, reload, close the game, do this ads much as i want no problem. However, if i try to add MORE quests after, I can only exit and re-load ONCE, properly like this:
2ndLoad.PNG
2ndLoad.PNG (6.46 KiB) Viewed 1268 times
However If I try to then back out a 3rd time, after adding a 2nd batch of quests, SAVING, and exiting- I get the error above, and the journal looks like this:
3rdLoad.PNG
3rdLoad.PNG (7 KiB) Viewed 1268 times
So it seems like something somewhere is filling the spaces where those quests should be, i just cant figure out what.

Re: Unable To Restore Quest error

Posted: Sun Jul 02, 2023 8:13 am
by Tony Li
Hi,

Would it be possible for you to back up your project and update to the current version? Version 1.2.35 fixed an issue where a two bytes were saved in the wrong order, and they could cause an issue this like.

Re: Unable To Restore Quest error

Posted: Sun Jul 02, 2023 10:58 am
by KingCeryn
Oh lol no worries I'll try that!

I'll let you know if this fixes if for future searches

Re: Unable To Restore Quest error

Posted: Sun Jul 02, 2023 12:35 pm
by KingCeryn
Success! Updating worked, thanks so much!

Re: Unable To Restore Quest error [Solved]

Posted: Sun Jul 02, 2023 3:14 pm
by Tony Li
Glad to help!