-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration
TheBossMagnus edited this page Jun 22, 2024
·
8 revisions
You have the flexibility to tailor the appearance of the generated changelog using a JSON configuration file. Follow these steps to create and customize the configuration:
-
Run the following command to generate a new configuration file in the script directory:
Modpack-changelogger -c new
This will create a new configuration file that you can modify according to your preferences.
-
Open the generated config file in a text editor to customize the options.
The default configuration looks like this:
{
"check": {
"added_mods": true,
"removed_mods": true,
"updated_mods": true,
"loader": true,
"mc_version": false,
"config": false,
"identified_overrides_mods": true,
"unidentified_overrides_mods": false
},
"format": {
"style": "bullet",
"header": {
"show_header": true,
"size": 2,
"title": "Auto",
"show_old_version_number": false,
"show_new_version_number": true
}
}
}
This section defines what changes should be checked when comparing the pack.
-
added_mods
: A boolean value. Iftrue
, the program will check for added mods. The default istrue
. -
removed_mods
: A boolean value. Iftrue
, the program will check for removed mods. The default istrue
. -
updated_mods
: A boolean value. Iftrue
, the program will check for updated mods. The default istrue
. -
loader
: A boolean value. Iftrue
, the program will check for changes in the mod loader. The default istrue
. -
mc_version
: A boolean value. Iftrue
, the program will check for changes in the Minecraft version. The default isfalse
. -
config
: A boolean value. Iftrue
, the program will check for changes in the included config folders. The default isfalse
. -
identified_overrides_mods
: A boolean value. Iftrue
, the program will try to identify the jar included as overrides and add them to the changelog if it succeeds, they will have their project name on Modrinth. The default istrue
. -
unidentified_overrides_mods
: A boolean value. Iftrue
, the program will try to identify the jar included as overrides and add them to the changelog even if it fails, they will have their filename (likemodname.jar
). The default isfalse
.
This section defines the format of the output.
-
style
: A string value. Defines the style of the output. The default is 'bullet'. -
header
: A dictionary that defines the format of the header.-
header
: A boolean value. Iftrue
, a header will be included in the output. The default istrue
. -
size
: An integer value. Defines the size of the header. The default is2
. -
name
: A string value. Defines the name of the modpack. If set to 'Auto', the name will be automatically detected. The default is 'Auto'. -
show_new_version_number
: A boolean value. Iftrue
, the old version of the modpack will be included in the header. The default isfalse
. -
show_new_version_number
: A boolean value. Iftrue
, the new version of the modpack will be included in the header. The default istrue
.
-
After customizing the configuration file, run the following command to generate the changelog using your specified options:
MrpackChangelogger -c path/to/config [other args]