Page 1 of 1

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.

Posted: Tue Mar 14, 2023 4:57 am
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

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.

Posted: Tue Mar 14, 2023 9:24 am
by Tony Li
Hi,

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

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.

Posted: Tue Mar 14, 2023 8:55 pm
by nuununuun
Thank you for answer!