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
17
Reaction score
4
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,491
Reaction score
1,721
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
57
Reaction score
28
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,828
Reaction score
2,164
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've been busy trying out different art styles for my game.

Enemies deserve some spotlight also
hackingCompressed.gif
I think I can make a text-based mini-game with almost zero art assets and with code only...just a lot of code as assets all by themselves. :kaojoy:
A video update on the progress I've been making on the cutscenes. :kaosalute:

I wonder if color LUTs is possible for RPG Maker. It would be game changer and can replace the not so good looking tint screen

Forum statistics

Threads
115,866
Messages
1,093,578
Members
151,093
Latest member
tluffysan
Top