Daena Grey

Fully Insane.
Veteran
Joined
Aug 31, 2017
Messages
30
Reaction score
22
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,125
Reaction score
10,639
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

Fully Insane.
Veteran
Joined
Aug 31, 2017
Messages
30
Reaction score
22
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,125
Reaction score
10,639
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

Fully Insane.
Veteran
Joined
Aug 31, 2017
Messages
30
Reaction score
22
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,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
And where do you put the code?
 

Daena Grey

Fully Insane.
Veteran
Joined
Aug 31, 2017
Messages
30
Reaction score
22
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,125
Reaction score
10,639
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

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top