After saving the quest data, I add a new node to the quest and call up the game, so the quest state is not loaded.

Announcements, support questions, and discussion for Quest Machine.
Post Reply
nuununuun
Posts: 13
Joined: Thu Dec 17, 2020 11:54 pm

After saving the quest data, I add a new node to the quest and call up the game, so the quest state is not loaded.

Post by nuununuun »

hi,
Quest State does not load because the SetState function does not execute with an error 'System.IO.EndOfStreamException' in the middle of the load.

My guess is that the number of nodes at the time of saving was 8, but the number of nodes at the time of loading is 9, so the binary Reader seems to keep trying to read after EOS. :(

The point at which the error occurs is line 195, QuestStateSerializer.cs.

My QuestMachine version is 1.2.17

Image
Attachments
image1.png
image1.png (31.6 KiB) Viewed 1130 times
User avatar
Tony Li
Posts: 22098
Joined: Thu Jul 18, 2013 1:27 pm

Re: After saving the quest data, I add a new node to the quest and call up the game, so the quest state is not loaded.

Post by Tony Li »

Hi,

The next release (which will be available later this week) handles this case now.
Post Reply