Loading...
Beta Modpages Unclaimed

Config Swapper

Swap out entire config sets via command

0 Likes
1452893 Downloads
Created by Darkere

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 (only configs in TOML format are supported at this time).  

 

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.

 

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. 

 

Please keep in mind that Configswapper cannot revert a mode in any way. As such all config changes need to the specified in every mode. 

 

 

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". 

 

In this folder use the same folder structure as from the instances root. 

e.g. to change values in config/forge-client.toml add a folder called config and a file called forge-client.toml.

Add the category and key + value combination of the config you want to change to the file in the same format as it is in the original.

 

The simplest way is to copy the original and remove all values to you do not want to change.

 

For serverconfigs put them into a folder called serverconfig.

 

Format before 2.0

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.

 

 

Since 1.6 you can apply configswapper to any file (in TOML format) instead of just files registered to forge.

Example: 

 

customfilepath=config/forge-client.toml

 

client.disableStairSlabCulling = true

 

The customfilepath needs to be the first line in the file. ModID and configtype are gone, as they are only used to identify the file.

The file path can start at the instance root or at the world's root folder.

 

 

 

 

Questions? Ask me on Discord
https://discord.gg/fdvYUCvezx


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Clumps

Clumps XP orbs together to reduce lag

Morpheus

Sleep vote system

FTB Utilities (Forge)

FTB Utilities is a mod by FTB. It aims to provide several useful utilities within the FTB Platform ranging from friends list, server configuration utilities, world borders, guide system and many other features...

spark

spark is a performance profiler for Minecraft clients, servers and proxies.

Lootr (Forge & NeoForge)

A mod that makes it so nobody misses out on Loot! All loot chests are instanced per player and visually unique.