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,685
Reaction score
1,801
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,978
Reaction score
2,302
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

Every once in a while I check to see if my planned game titles are taken or trademarked. Still okay. I plan to take my time for the sake of quality, but at the same time it feels like a race against some hidden dev out there who also plans to publish or register the same title.
Who else here likes frogs? I sure do like them squishy beings! :rwink:

froggy.png
Only the goggles are imported ... not the eyes
a lot of my maps and battlebacks are me redrawing base rpg maker mv stuff to match with my own artwork... sometimes it comes out ok lol.

Forum statistics

Threads
117,189
Messages
1,105,323
Members
153,319
Latest member
RhemeChan
Top