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,678
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,968
Reaction score
2,296
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

I'm seeing my god daughter's school play next week. Being the mild agoraphobe I am this makes me nervous. Thus I had a dream that it was actually a plot by my best friend to take me clubbing at an establishment where it is customary to throw a harpoon at staff members to reward good service.
Praise be to the game make!
I need help on what I should add to this fighter game.
Should I add:
Rain
Sleet
Snow
Leaves
Wind
If you can come up with anything else let me know.
Final day of the kickstarter campaign and my team and I decide to cap it off by doing ... musical numbers online.

These are clearly definitely My People.
6 hours and 35 minutes until it is December first here :3

Forum statistics

Threads
117,086
Messages
1,104,448
Members
153,079
Latest member
Lnaunboq
Top