Page 1 of 1

Lessen Size of Saved Data

Posted: Tue Dec 03, 2019 2:11 am
by KakimaAkuma
Chunk.PNG
Chunk.PNG (56.98 KiB) Viewed 201 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.

Re: Lessen Size of Saved Data

Posted: Tue Dec 03, 2019 9:09 am
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.