RMMV YEP_X_AutoSave

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,819
Reaction score
1,581
First Language
English
Primarily Uses
RMMV
So I'm trying to add Yanfly's AutoSave plugin to the OptionsCore plugin, but it doesn't seem to work. I copy-pasted the instructions that say what to put in each field:
JavaScript:
---------
Settings:
---------

Name:
\i[231]Autosave

Help Description:
Enables \c[4]Autosaving\c[0] for your game if ON.
You can still manually save your game.

Symbol:
autosave

Show/Hide:
show = Imported.AutosaveShowOpt;

Enable:
enabled = true;

Ext:
ext = 0;

----------
Functions:
----------

Make Option Code:
this.addCommand(name, symbol, enabled, ext);

Draw Option Code:
var rect = this.itemRectForText(index);
var statusWidth = this.statusWidth();
var titleWidth = rect.width - statusWidth;
this.resetTextColor();
this.changePaintOpacity(this.isCommandEnabled(index));
this.drawOptionsName(index);
this.drawOptionsOnOff(index);

Process OK Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, !value);

Cursor Right Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, true);

Cursor Left Code:
var index = this.index();
var symbol = this.commandSymbol(index);
var value = this.getConfigValue(symbol);
this.changeValue(symbol, false);

Default Config Code:
// Empty. Provided by this plugin.

Save Config Code:
// Empty. Provided by this plugin.

Load Config Code:
// Empty. Provided by this plugin.
However, it doesn't show up w/ the above code. Although it does show up when I use show = true instead of show = Imported.AutosaveShowOpt;. Also, show = Yanfly.Param.AutosaveShowOpt; seems to work as well. Unfortunately, the choices (On/Off) don't actually do anything despite being able to get it to show in the options menu. I also noticed other people had the same issue in this thread:
Too bad a solution was never posted and that thread is now closed...
 

Guardinthena

Artist
Veteran
Joined
Nov 30, 2013
Messages
438
Reaction score
1,068
First Language
English
Primarily Uses
RMVXA
I've had problems in the past with getting things to link correctly with the OptionsCore. Come to think of it, that's actually something I need to add on my To Do list, getting some of those links to work...

In regards to your problem however, I wouldn't be much help. Just wanted to report that I've had problems with OptionsCore in general. Actually, I would never have thought of even linking the Autosave in to the menu. I thought it was its own thing that just autosaved on map entry or something. I assume you're trying to add a quick save to the menu?
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,819
Reaction score
1,581
First Language
English
Primarily Uses
RMMV
Actually, I would never have thought of even linking the Autosave in to the menu. I thought it was its own thing that just autosaved on map entry or something. I assume you're trying to add a quick save to the menu?
The option would be to simply enable/disable the autosave feature (in case the player doesn't want to use it). To be honest, I'm one of those that would probably turn it off lol. I save-scum quite a bit heh...
I think this might be what you are looking for.
Hmm, seems like a compatibility patch for Felski's AutoSave plugin w/ Yanfly's OptionCore. I don't mind giving Felski's a try, but the AutoSave plugin I'm using now is the Yanfly one, not Felski's (which I didn't even know existed until now lol).

Edit: For clarification...
 

xDRAGOONx

Veteran
Veteran
Joined
Jan 22, 2019
Messages
240
Reaction score
195
First Language
English
Primarily Uses
RMMV
My bad...I knew you were using Yanfly's autosave but I didn't fully read Felski's description :kaocry:.

I have since opened up the Auto Save plugin in visual studio and I'm checking to see if anything jumps out at me...no luck yet.
 

Frostorm

[]D[][]V[][]D aka "Staf00"
Veteran
Joined
Feb 22, 2016
Messages
1,819
Reaction score
1,581
First Language
English
Primarily Uses
RMMV
My bad...I knew you were using Yanfly's autosave but I didn't fully read Felski's description :kaocry:.

I have since opened up the Auto Save plugin in visual studio and I'm checking to see if anything jumps out at me...no luck yet.
I tried forcing the autosave feature via:
$gameSystem.setAutosave(true);
$gameSystem.setAutosave(false);

However, it seems that enables/disables both the autosave on main menu open and autosave on map load features at the same time, even though I have the former turned off and the latter turned on in the plugin options. So weird how you can't separate those 2 features when using the script call...
 

xDRAGOONx

Veteran
Veteran
Joined
Jan 22, 2019
Messages
240
Reaction score
195
First Language
English
Primarily Uses
RMMV
Hmmm...that is very interesting. These kinds of bugs always drive me crazy lol. I always assume that there must just be a slight typo somewhere in the code...
 

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

Latest Threads

Latest Profile Posts

My computer broke yesterday, so no RPG maker for at least a week until I can get it repaired. :(
Just wanted to share how my game won 1st place in a game jam for itch.io. Everyone else used Unreal, Unity, GMS2, Godot, etc but I used RPG Maker 2003 :guffaw: It just shows that you can create a good game and it doesn't matter which engine you use
Working on cutscenes~

if your game is the first (or ONLY) in a series and still has a colon in its title, you are a bad person and I hate you...... jk.

who could ever hate BETWEEN: TWO SOULS?

Forum statistics

Threads
107,404
Messages
1,029,443
Members
139,502
Latest member
FLXYM
Top