MZ How to adjust the default options of VisuMZ_1_OptionsCore? #Solved

I'm sorry that my English is not very good.
The following content comes from a mechanical translation.



I tried to modify some of the default options of VisuMZ_1_OptionsCore,
I can adjust the default volume and combat speed options.
However, the default values of non-numeric options are still unsolvable.
2021-03-30_210651.png


2021-03-30_210830.png


I have deleted "save/config.rmmzsave", but it is useless.
It's not just combat skills, it includes combat speed, display FPS, and so on.

2021-03-30_212025.png



I also tried to use a script to force adjustments in the new game, but I don't know the script of this option.

What should I do?



2021.04.03
VisuMZ_1_OptionsCore was updated to v1.0.11 on 04/02!
This version fixes this problem,thanks to the friend who reported the error.
There's definitely a bug with those. I just started a new game, set "auto battle at start" and "auto battle use skills" to on, saved it, and when I loaded the saved game they were both off again. Looks like it's not matching up the config properly somewhere. I'd file a report.
There's definitely a bug with those. I just started a new game, set "auto battle at start" and "auto battle use skills" to on, saved it, and when I loaded the saved game they were both off again. Looks like it's not matching up the config properly somewhere. I'd file a report.

Thanks for the reply, but it seems that the situation is different from mine.

If I enter the game, like a player, and then adjust those options will be recorded.
The options will be recorded the next time I start the game and will not change.

I can’t adjust the default options when I enter the game for the first time.
Thanks for the reply, but it seems that the situation is different from mine.

If I enter the game, like a player, and then adjust those options will be recorded.
The options will be recorded the next time I start the game and will not change.

I can’t adjust the default options when I enter the game for the first time.
I think I've discovered a separate but similar bug. Change the options on the title screen and then load your game, and see if your options are still the ones you had when you saved.
I think I've discovered a separate but similar bug. Change the options on the title screen and then load your game, and see if your options are still the ones you had when you saved.

Yes, it will save.

But I don't want players to adjust it, this option should always remain "Skill".
So I want its default value to be "Skill" and hide it.
But I modified the "DefaultJS: function" provided by the plug-in, but there is no way to change it.

Thanks for your help, and I hope your problem can be fixed as soon as possible.
Yeah, I had the same issue with the default settings as well.
YEP Options Core for RMMV had a similar "bug" at one point due to an oversight in the default Load Config code. Load wasn't checking whether the option existed in the provided data, causing it to overwrite the default value every time. Relevant post:
If you change the Load Config code to this, does it work?
Code:
if (config[symbol] !== undefined) ConfigManager[symbol] = !!config[symbol];
That problem seems to be present in v1.00 of VisuStella Options Core, at least (I haven't gotten around to downloading an updated version).

[Edit: after further testing it seems to be a different issue.]
YEP Options Core for RMMV had a similar "bug" at one point due to an oversight in the default Load Config code. Load wasn't checking whether the option existed in the provided data, causing it to overwrite the default value every time. Relevant post:

That problem seems to be present in v1.00 of VisuStella Options Core, at least (I haven't gotten around to downloading an updated version).

I tried to enter it, but it didn't work.
Or am I mistaken about what you mean?
2021-03-31_124334.png

I tried to cancel (//ConfigManager[symbol] = config[symbol]; )the line above, but it didn't work either..

Mine is VisuStella Options Core v1.09, but I tried to update to VisuStella Options Core v1.10 (the latest) but it didn't help.
My MZ version is 1.2.0.



But this is an option that is not allowed to be adjusted by the player, maybe I can use SCRIPT to set it.
Although there is no fundamental solution to the problem, it can at least achieve the effect I want.
It’s just that I don’t know that script.
Moved to: Plugin Support
I tried to enter it, but it didn't work.
Or am I mistaken about what you mean?
View attachment 184504
Sorry, I should have given an example! 😴 Try this for your Load Option code:
JavaScript:
// Declare Constants
const config = arguments[0];
const symbol = arguments[1];

// Return value
if (config[symbol] !== undefined) {
  ConfigManager[symbol] = config[symbol];
}
I.e. "only change this setting if there is a value for it in the loaded options". (ConfigManager is the in-game data and config is the data it has loaded from file.)
Sorry, I should have given an example! 😴 Try this for your Load Option code:
JavaScript:
// Declare Constants
const config = arguments[0];
const symbol = arguments[1];

// Return value
if (config[symbol] !== undefined) {
  ConfigManager[symbol] = config[symbol];
}
I.e. "only change this setting if there is a value for it in the loaded options". (ConfigManager is the in-game data and config is the data it has loaded from file.)

No, it just doesn't work.

2021-03-31_214203.png


The default is still on the "Attack" side.
I also failed to test on VisuMZ_Sample_Game_Project, that VisuStella demo project.
OK I just downloaded the current Sample Project (update #32) and can confirm that the code entered for certain Default Value fields (e.g. Auto Battle Style) simply does not run when it should. Sorry for the confusion! 😴
VisuMZ_1_OptionsCore was updated to v1.0.11 on 04/02!
This version fixes this problem, thanks to the friend who reported the error.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-adjust-the-default-options-of-visumz_1_optionscore-solved.134918/