- Joined
- Dec 22, 2014
- Messages
- 359
- Reaction score
- 111
- First Language
- English
- Primarily Uses
- RMVXA
- Script github: https://raw.githubusercontent.com/Archeia/YEARepo/master/Menu/System_Options.rb
- Official link: https://yanflychannel.wordpress.com/rmvxa/menu-scripts/system-options/
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/

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:

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.)
Last edited:

