RPG Maker Forums

Once you exit the game or start it up again, all settings you've applied in the system menu will be reset.
EX: If you set Autodash to the non-default value, close the game, and re-open it, Autodash will be back to the default value set inside of the script.
My priority here is saving the volume options; I can apply the same coding principles for the other settings later on.

edit: The engine saves settings with save files, but I'd want whatever settings you apply in the System menu to affect the game from startup/all save files, meaning save files would all have the same system settings.

I'm going to guess this is because of Game_System and the script initializing default settings for volume, autodash, instantmsg, and show/hide animations (the last three being module options). There are a few solutions I can think of:

1. tying each option to their own variable or switch, making sure those switches/variables are global (with something like this https://forums.rpgmakerweb.com/inde...switches-variables-to-global-save-data.54165/), and loading those values on startup.
2. saving the settings through the game.ini (or a custom ini) file.

Saving/loading the data onto an ini file could take more work but it might be better optimization-wise.
I've tried option 1 and 2, but failed so far. I've also tried using both the Rutan and Yanfly script, and making Yanfly's volume options = Rutan's volume values, but that was way too messy.

For 2, I know another volume script by user Rutan does an ini load/save function for bgm, bgs, se, me, and a master volume.
https://forums.rpgmakerweb.com/index.php?threads/master-volume-control.74752/
upload_2019-4-14_16-0-2.png

So for the Rutan script, it basically loads up the values on startup(??), and once you leave the Volume option scene, it saves the new volume values in the ini file:
upload_2019-4-14_16-6-12.png
The HZM_VXA::Ini.save part is confusing me a bit, but I'm going to guess that means to save it to the INI_FILENAME specified in the first screenshot (so Game.ini)
(Was going to put this in Learning Ruby and RGSSx but is probably asking for too much assistance to be in that thread.)

Latest Threads

Latest Profile Posts

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.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,447
Members
137,820
Latest member
georg09byron
Top