New classes/objects into save file

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,612
Reaction score
976
First Language
Portuguese - Br
Primarily Uses
RMMV
Hi makers!

Well, while I'm making plugins, sometimes is hard for me to know where to store some new info to be on the save file.
Like, I have a CheckPoint(auto-save) plugin, So I use Game_System to build new functions/methods for it and also store some extra things into the save file.

But not always, the default class names of MV suits my needs(or wishes xD).
Let's see an example:

JavaScript:
Game_System.prototype.savePoint = function(){}
// It sounds nice, because is Game_System, somehow it can be related.
But, in another plugin that I manage the font for the game, doesn't sound nice to me. I think it will be better if I use a new class:

JavaScript:
Game_Font.prototype.face = function(){}
Font_Manager.prototype.face = function(){}
// Anyway, a new class.
So, what do you think about this? Do you think there will be any problems?
Like leaving the save file too big using new classes instead of use the default ones. But keep in mind that I will use the default one or the new one to put some data into the save file.

So, what are your thoughts about this?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,948
First Language
English
Primarily Uses
RMMV
I think if having a new class makes sense, go ahead and add $gameFont or whatever. I can't imagine it'll expand the save file size by huge amounts.
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
1,076
Reaction score
847
First Language
English
Primarily Uses
RMMV
You may want to incorporate your name into the class, perhaps. Just in case RPG Maker uses that name for a class in the future.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

I FINALLY DID IT! 5 years making my very first game and I just officially released it on STEAM..... OMG..... I can say I finished a game! The feelings!!!!!
Stream will be live shortly! I am going to be playing some Among Us! Feel free to drop by!
Ami
tv program always get the ratings (it's the reason why drama series has 1000+ episode),also full and nonsense of censorship (weird blur, a scene getting cut because the unconvenient viewer,but it unconvenient to me either. you never see what the original is)

i know the reason is to take cover the viewer from the negative thing,but i just laughing and mocking of them that they're always suck :guffaw:
Star Chart Idea - Just something I am working on.
My sister learned spanish the old fashioned way and saw my way of conjugating. I don't use the formal method and just wing it. I thought her heart might explode. Apparently, different words use different endings. Weird part is even though I never learned the difference, I still can tell when the endings "look wrong".

Forum statistics

Threads
104,456
Messages
1,006,426
Members
135,966
Latest member
Kleik
Top