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,041
Reaction score
10,273
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,041
Reaction score
10,273
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,041
Reaction score
10,273
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,041
Reaction score
10,273
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

I'm currently being attacked by the RPG Maker Hydra: fixing one problem only to have two more rise to take its place.
Hey you! Yeah YOU! Whatcha doin' not backing up your projects? You a masochist or sumthin'? GO BACK UP YOUR PROJECTS! Sheeesh... Didn't think I'd hafta spell it out for yas.
now I need to determine, how MV determines if an auto tile is complete or not.
Edit:From what I can tell it uses Autotile kinds to do that.
Edit 2: The editor determines it and packs picture data for the engine....
Finished with the ground work for my class system, using Ellye's Class Change Equipment and Yanfly's Class Change Core plugins to implement an equip based subclass feature!
Hi people! I was wondering... Here in Brazil, we have a whats app group for we talk about rpg maker and our projects. A more informal way for we meet each other. Is there any whats app group out there? :)

Forum statistics

Threads
94,281
Messages
919,643
Members
124,014
Latest member
pradeepkanojia
Top