Earlier Versions
| Name | Size | Uploaded | Game Version | Downloads | |
| configswapper-1.5.jar release | 20.33 KB | Aug 29, 2021 | 1.16.5 | 35,361 | Download |
| configswapper-1.4.jar release | 20.32 KB | Aug 28, 2021 | 1.16.5 | 441 | Download |
| configswapper-1.3.jar release | 18.28 KB | May 1, 2021 | 1.16.5 | 311,120 | Download |
| configswapper-2.5.jar beta | 19.07 KB | Jan 8, 2022 | 1.16.5 | 1,744 | Download |
| configswapper-2.4.jar beta | 17.29 KB | Dec 27, 2021 | 1.16.5 | 2,324 | Download |
| configswapper-2.3.jar beta | 17.26 KB | Dec 6, 2021 | 1.16.5 | 783 | Download |
| configswapper-2.2.jar beta | 15.90 KB | Oct 31, 2021 | 1.16.5 | 93,390 | Download |
| configswapper-2.1.jar beta | 15.58 KB | Oct 13, 2021 | 1.16.5 | 6,395 | Download |
| configswapper-2.0.jar beta | 15.47 KB | Oct 13, 2021 | 1.16.5 | 9 | Download |
| configswapper-1.6.jar beta | 21.33 KB | Oct 2, 2021 | 1.16.5 | 32,424 | Download |
| configswapper-1.2.jar beta | 18.16 KB | Feb 11, 2021 | 1.16.5 | 130,071 | Download |
| configswapper-1.1.jar beta | 18.16 KB | Oct 23, 2020 | 1.16.5 | 137,422 | Download |
| configswapper-1.0.jar beta | 18.13 KB | Sep 22, 2020 | 1.16.3 | 23 | Download |
Description
Config Swapper is a tool designed for switching out a predefined amount of config options. Useful for changing game modes.
It does this by finding and changing the Strings in the actual config file.
This means it should be compatible with most mods, even if they implement some form of custom config (as long as they conform to the standard client/common/server config options).
Config Swapper adds a command to change config "/mode <modename>" and also a file called mode.json with the current mode in the root directory of the instance.
The mode in the mode.json gets applied to the game on launch in order to support pack updates.
(If you find this to causes long startup times please contact me, so I can find a better solution)
Whether a specific config options requires a restart depends on the individual mods. Contact the specific mod developer if you need it.
The /mode command also runs a /reload to make sure the player doesn't forget to.
Creating a Config Mode
On initial load the mod will create a folder in the config folder called "configswapper".
In here create a folder with your mode name. e.g. "expert".
Every file in this directory will be read when you change to this mode.
Format
to add a config change you need to know:
– the mod ID of the mod it is from
– the type of the config (client/common/server)
– the categories the config option is under
– the name of the config option.
With this information add a line into a text file in the folder of your mode with the following format
<modID>.<configtype>.<category1>.<category2>.<configname> = <result>
Example:
forge.client.client.disableStairSlabCulling = false
For convenience, I've added a way to reduce the amount of text needed if the options are in the same config/category
Example:
$forge.client.client {
disableStairSlabCulling = false
zoomInMissingModelTextInGui = false
#this is a comment
}
You can make comments using #. As configs might use # as value you cannot mix comment and actual value on a line.
Planned features
– overrides mode that always gets applied when mode changes
Questions? Ask on my Discord
https://discord.gg/fdvYUCvezx
Get 0.05 TON 💎
Download
Add a comment