Unable To Restore Quest error [Solved]

Announcements, support questions, and discussion for Quest Machine.
Post Reply
KingCeryn
Posts: 70
Joined: Sun Aug 23, 2020 5:12 pm

Unable To Restore Quest error [Solved]

Post 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.
Attachments
QMError.PNG
QMError.PNG (61.24 KiB) Viewed 769 times
Last edited by KingCeryn on Sun Jul 02, 2023 12:35 pm, edited 1 time in total.
User avatar
Tony Li
Posts: 20731
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable To Restore Quest error

Post 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?
KingCeryn
Posts: 70
Joined: Sun Aug 23, 2020 5:12 pm

Re: Unable To Restore Quest error

Post 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.
Attachments
sdf sdf.PNG
sdf sdf.PNG (14.88 KiB) Viewed 763 times
KingCeryn
Posts: 70
Joined: Sun Aug 23, 2020 5:12 pm

Re: Unable To Restore Quest error

Post 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 762 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 762 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 762 times
So it seems like something somewhere is filling the spaces where those quests should be, i just cant figure out what.
User avatar
Tony Li
Posts: 20731
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable To Restore Quest error

Post 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.
KingCeryn
Posts: 70
Joined: Sun Aug 23, 2020 5:12 pm

Re: Unable To Restore Quest error

Post by KingCeryn »

Oh lol no worries I'll try that!

I'll let you know if this fixes if for future searches
KingCeryn
Posts: 70
Joined: Sun Aug 23, 2020 5:12 pm

Re: Unable To Restore Quest error

Post by KingCeryn »

Success! Updating worked, thanks so much!
User avatar
Tony Li
Posts: 20731
Joined: Thu Jul 18, 2013 1:27 pm

Re: Unable To Restore Quest error [Solved]

Post by Tony Li »

Glad to help!
Post Reply