New classes/objects into save file

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
1,533
Reaction score
854
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,600
Reaction score
1,931
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
845
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

Recent threads, and my very poor algorithm for my minimap plugin have made me face the fact that I need to review algorithms and such.

Going through Cracking the Coding Interview now. I am so excited.
Kes
I've seen a reference to a Community Lighting plugin for MZ, but cannot find it. Is it still in beta?

Todo:
Add fog of war
Add enemy indicators
Make window draggable
Optimise map drawing algorithm (5 seconds to load the map you see, so it's a... poo-poo algorithm)

Any suggestions? :kaoblush:
bleh studio hell job haha at least they like it didnt had time to do much laundry tho ;w;'....YES I DO AT LEAST TAKE A SHOWER everyday!
Ami
--- Food Ingredients ---

Hero: Since the Chef are in Hospital,we can't eat his Dish in 3 Days.
F.Mage: What we have to Eat?
M.Healer: Don't worry,we can Eat the Food Ingredients.
Hero & F.Mage
: Really?

(3 Days Later)

Chef: Hi,Guys. I'm Ba---
(Entire Party Collapse After Eat Raw Meat)
Chef: Wha...WHAT GOING ON HERE!!!!!!

Forum statistics

Threads
102,912
Messages
995,911
Members
134,360
Latest member
Balthierrff
Top