Ninjam

Villager
Member
Joined
Dec 28, 2012
Messages
7
Reaction score
1
First Language
English
Primarily Uses
Hi all! I'm running into an interesting little problem.
My game is using a lot of script calls (that I know should probably be transferred into custom plugins for the functionality...)
and to make a long story short, I ended up storing a few 2d arrays into game variables.

This was fine for the first year of development, until things started to get glitchy, with "Save file to large!" errors cropping up, saves taking multiple seconds to save/load, etc.

I trimmed back much of the unneeded functionality from these, but am still concerned because a new system I have planned needs access to data that has to be saved to the save file again.

Other than actually making plugins to do this (I have the skill to do so, being a software engineer graduate, but am being rather lazy with going in and actually learning the systems to do so) is there a way to save data the game file without bloating the size and causing issues in the long term?
 

MisterFu

Villager
Member
Joined
Nov 7, 2018
Messages
18
Reaction score
5
First Language
German
Primarily Uses
RMMV
If "Save file to large" appears in the console, that is just a warning, not an error. So the game won't break about that. But I think there is no way to store data at the save file without making it to big.

Your way with storing your arrays in a game variable is ok. The other way is to extend the $gameSystem-object. This object will be saved too. Eg
Code:
$gameSystem.myArray = [];
 

myenemy

Veteran
Veteran
Joined
Jan 17, 2014
Messages
85
Reaction score
40
First Language
Spanish
Primarily Uses
RMMZ
I happen to be working on a mz plugin for this and a couple more features. I think it might be backwards compatible with MV.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,673
Reaction score
1,797
First Language
Dutch
Primarily Uses
RMMV
there are 2 save files that extend features
Por_Save (cannot find this one)
TSR_Save (my favorite), and personally better than por's.

because you can create the save scene as single, multiple, with
any information you want in there.

the possiblity is endless, but it doesn't work for MZ, you can ask permission
to port it to MZ if you are able too.
 

Sepheyer

Veteran
Veteran
Joined
Jul 20, 2021
Messages
59
Reaction score
29
First Language
English
Primarily Uses
RMMZ
Here is a similar question that @caethyril gave a great response to:


But, it requires coding, sooo might be useful if you rule out all other options.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,957
Reaction score
2,291
First Language
EN
Primarily Uses
RMMZ
...is there a way to save data the game file without bloating the size and causing issues in the long term?
Avoid saving unnecessary data. Exactly how to do this depends on what data you are saving.

E.g. if you want to memorise map event positions, then save only the positions, not the entire event objects.
 

Latest Threads

Latest Posts

Latest Profile Posts

How goes the game make?
Broke: Relating to and acting like Sephiroth
Woke: Relating to and acting like Kefka
Took me almost a year to flesh out this concept but hey, now it works.
01.gif
Part 1 of 24 pieces of our world map
I've finished (most of) the sprites for two of my main characters, Ashlyn and Lizzabelle. And I've already drawn actual artwork of Lizzabelle and Suki months ago. I can't wait to show some of my stuff. I'm hesitant because their outfits aren't my own original design, which must be changed before I get too serious with this.

Forum statistics

Threads
116,990
Messages
1,103,578
Members
152,869
Latest member
cap0423
Top