This mod can be used by Modpack developers to distribute default options and keybindings without overriding user changes on every modpack update.
Instead of shipping the options.txt directly, you will ship a "defaultoptions" folder in your modpack which contains the defaults previously saved through the /defaultoptions command.
This project is sponsored by Server.pro.
Features
- On the first run, users will start out with the options you configured - and future changes won't be overridden on updated
- Keybinds configured by the modpack will be set as new defaults, meaning changes made by users will persist even on updates
- The server list will be pre-populated with the server list provided by the modpack (and user changes will persist on updates, still)
Instructions
- 1. Configure the options, keybinds and server list as you would like them to be shipped in the modpack
- 2. Join any world and run "/defaultoptions saveAll" to save your current options in the defaultoptions folder (located in the config folder where it should remain)
- 3. Do not include the options.txt and servers.dat from the root directory in your modpack
- 4. Fresh installations (meaning no existing options.txt) will now start out with your default options
If you are using FoamFix Anarchy Version, disable B:initOptions in the FoamFix config or else Default Options will not work. See this GitHub issue for more info.
In reply to Forge_User_12261306:
judging by the splash image above, I think it supports everything
That is exactly what I was looking for. Perfect.
Is it possible to define the "java memory" that will be used in game with such mod ?
In reply to Forge_User_12261306:
The memory to be assigned to Java must be configured before Minecraft launches, at which point the mod isn't loaded yet, so it's not possible.
In reply to BlayTheNinth:
Ok I understand. Java settings are the 1st step before running the game. Anyway your mod is awesome. Thank you again.
Does it saves active Resource Packs too?Yep it does.
Another question: what are permissions for modpacks?
In reply to Insane96:
In reply to BlayTheNinth:
Is there a way to ship the configs via .jar? I'm maintaining a server that a family member is paying for, and we need to set up specific .config settings, however our server host does not allow manual file manipulation.
Pretty much a must have for every modpack, well, at least the larger ones!
Thank you very much for creating Default Options!
Cheers,
Griefed
does this also support custom screen resolutions?
In reply to Kreezxil:
In reply to Kreezxil:
Can this be used by players to keep their changes to the settings from being overwritten? Say a user doesn't like Quark's "greener grass" or "endermen cheese" and turns it off. On update they get turned back on, even if the pack maker never intentionally set it.
Hey I got a question, can I use this mod in order to set default options for mod configurations instead the config folder; as a means to override what the mod has by default but then allow the user to change the settings to their desire and have those changes save?
In reply to NovaViper:
In reply to BlayTheNinth:
I am assuming that overwriteconfig is the option to load the saved options over the existing options.
However, can you add less ambiguous options, such as loadKeys, loadServers, and loadOptions? That way the player can load the parts of the defaults they explicitly want.
Hello! Thanks for your mod! Is it compatible with Journey map? If yes how should I use it? since the config folder for journey map is outside the "standard" config folder.