Daena Grey

Lunatic Warlord
Member
Joined
Aug 31, 2017
Messages
28
Reaction score
20
First Language
English
Primarily Uses
RMMV
I will be very very swift.

After having spent quite a bit of time bringing my project up to completion-I have noticed that there is one nifty addition I could implement. Thanks to Vlue's Advanced Game Time script, and Yanfly's Save Engine, I thought that I could PERHAPS display, on the Save Screen, the Date in which the Save File was made.

Now then, why am I not posting in Script Support? Simple.
I pretty much know how to do it, it's as simple and as explanatory-but, the real problem is this.

I would like to run a Common Event which writes down the Date in a Variable, which I already know how to do, but I haven't the slightest of clues as to how I would go about forcing such a thing Right before the Save File is written. I.E. Do I add a line or two in which script? Where exactly? Which process do I have to "Ninja" to store the data in the Variables I require?


So... Any Clues?

~Daena Grey

Quick Edit: On Second thought, I am under the impression this still pertains to Script Support... Oops. My Apologies.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,048
Reaction score
10,277
First Language
Czech
Primarily Uses
RMMV
This is actually very easy. You add a line of code to whatever function is responsible for the actual saving. Don't know which one it is exactly, since I don't use VXAce.
 

Daena Grey

Lunatic Warlord
Member
Joined
Aug 31, 2017
Messages
28
Reaction score
20
First Language
English
Primarily Uses
RMMV
That is... Exactly my problem. Adding a Line, that is understandably easy. I have no clue where, though. That is what gets me...
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,048
Reaction score
10,277
First Language
Czech
Primarily Uses
RMMV
on_action_save method in Yanfly save engine sounds like the culprit to me.

There you can force the save of the date before the file itself gets saved.
 

Daena Grey

Lunatic Warlord
Member
Joined
Aug 31, 2017
Messages
28
Reaction score
20
First Language
English
Primarily Uses
RMMV
I will investigate right away, be riiiiight back.


Edit: It does not appear to be working. Hrmmmmm... I have tried multiple times and even on fresh starts, but noperinos, it will not work as intended. Not getting any errors though.
Hrmmmm...
 
Last edited:

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,048
Reaction score
10,277
First Language
Czech
Primarily Uses
RMMV
And where do you put the code?
 

Daena Grey

Lunatic Warlord
Member
Joined
Aug 31, 2017
Messages
28
Reaction score
20
First Language
English
Primarily Uses
RMMV
Right before the script calls the Save Process. Third line of the method definition. I might've oopsed with calling the Common Event, But I can find a Workaround. Still on it!

Thank you very much for pointing out where I should concentrate my efforts. Weeee!

Edit: I did oops with calling the Common Event. OOPS!
All good now. ( ^ o ^ ) /
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,048
Reaction score
10,277
First Language
Czech
Primarily Uses
RMMV
Ok, good to know :) You're welcome!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

There a thread out there that tells us the best way to open an RPG that isn't 'the protag gets out of bed'?
Updated my state Stacker Script on itch.io, github is down for some reason (probs just me).
Wife watching Locke and Key. This show is so bad!! You can't just acclimate to discovering magic or magical worlds in less than 60 seconds.
I think I still prefer RPG Maker over Dreams. Been playing around with it, and the controls are really the biggest flaw for me.

Forum statistics

Threads
94,331
Messages
919,971
Members
124,083
Latest member
BenjaminW
Top