Regarding the inability to save items using the save system.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
KK03
Posts: 6
Joined: Sat Mar 25, 2023 11:59 pm

Regarding the inability to save items using the save system.

Post by KK03 »

Hello.

When I use DialogueLua.SetQuestField to change the number of items in the possession of an item and load it, it does not revert to the previous state of the item.

"Variables" seems to be preserved.

Is there a solution?
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Regarding the inability to save items using the save system.

Post by Tony Li »

Hi,

How are you handling items? In the dialogue database's Quests/Items section? In a separate inventory system asset? In your own code?

If you're using the Quest/Items section, inspect the Dialogue Manager's Persistent Data Settings section and tick Include All Item and Quest Data.

If it's a separate asset that the Dialogue System has integration with, use the integration.

If it's your own code, see: How To: Write Custom Savers
KK03
Posts: 6
Joined: Sat Mar 25, 2023 11:59 pm

Re: Regarding the inability to save items using the save system.

Post by KK03 »

I was able to solve the problem by checking the "Include All Item and Quest Data" checkbox.
Thank you for your support!
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Regarding the inability to save items using the save system.

Post by Tony Li »

Glad to help!
Post Reply