Where is Graphics.frameCount saved?

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
I'm never really meddle with the save and load file system in RPG Maker MV.

I had a problem where the play time would grow too fast because of a higher refresh rate monitor, even tho the game runs at effectively 60 fps. So I created another variable called Graphics.realFrameCount (I didn't want to replace Graphics.frameCount by fear of messing something else) and did some stuff and now the play time works correctly. Problem is it resets every time I start the game.

I suppose by default Graphics.frameCount is set to 0 when opening the game, saved in a json file when saving, and loaded when you load a save file. Now, where do I need to go to save Graphics.realFrameCount in a save file and load it?
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,729
Reaction score
4,685
First Language
English
Primarily Uses
RMMZ
Never mind, I found out. It's in GameSystem.prototype.onBeforeSave and onAfterLoad
 

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,038
Messages
1,018,466
Members
137,821
Latest member
Capterson
Top