Lessen Size of Saved Data

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
KakimaAkuma
Posts: 29
Joined: Mon Sep 09, 2019 9:51 pm

Lessen Size of Saved Data

Post by KakimaAkuma »

Chunk.PNG
Chunk.PNG (56.98 KiB) Viewed 200 times
Hi! Is there a way we could lessen the size of this saved data from Dialogue manager? The server we are using could only save up to 7kb at a time.
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Lessen Size of Saved Data

Post by Tony Li »

Hi,
  • Try using the BinaryDataSerializer instead of JsonDataSerializer.
  • Inspect the Dialogue Manager's Persistent Data Settings and exclude data that you don't need. For example, maybe you don't need to include Actor data, or you only need to save quest states instead of all item & quest data.
  • Remove unused fields from your database. Maybe you don't need fields such as Act, Chapter, Scene, Description, etc.
  • Use a subclass of JsonDataSerializer that compresses the output of JsonUtility.ToJson(). The Asset Store has many compression plugins.
Post Reply