A standalone general purpose modpack versioning and downloading tool
This is a simple guide for end users.
You may add jvm argument: -javaagent=twr-installer.jar in your game launcher or server command line to make it start every launch.
- Run installer.bat/installer.sh it generated.
- Choose
Repair. - Wait for it verify all files and repair
- If this doesn't work, you may delete
mods,config,defaultconfig,kubejsfolder and run repair again
- Run installer.bat/installer.sh it generated.
- Choose
Select Versionthen select a version you would like to stay in. - It won't update to any other version anymore.
- Modify tssap-configs/config.json and set
isClientto false. - Copy jar file,
tssap-configs/config.jsonbut nottssap-configs/data.jsonto your server folder. - Run the application.
- Choose
Updateto download all files.
run java -jar twr-installer.jar headless to run in command line mode.
Translation files located in src/main/resources/com/khjxiaogu/tssap, create a file named your locale code to add translation.
- Place it in the minecraft folder or ship it in overrides folder.
- prepare configuration files in
tssap-configsfolder besides it, scheme:
{
"channels": [
{
"name": "<name of the branch>",
"id": "<unique id of the branch>",
"url": "<meta file url>"
}
],
"selectedChannel": "<id of the default selected branch>",
"selectedVersion": "<version within the selected branch, blank for automatic update>",
"backupIncludes": [
"<paths starts with to backup when overwritten>",
"config/"
],
"isClient": <boolean to indicate this is for client or dedicated server>
}
- Add jvm argument: -javaagent=twr-installer.jar in your game launcher to run it and checks for update every single game launch.
All protocol file json must be compressed with deflate.
{
"versionsPath": "<full url path to version list file>",
"latestVersion": <version scheme>
}
{
"versions": [<array of version scheme>]
}
{
"versionName": "<name of the version>",
"versionDate": "<publish utc date in yyyy-MM-dd HH:mm:ss>",
"packFilePath": "<full url path to modpack scheme>",
"changelogPath": "<changelog full url path>"
}
{
"files": [<array of file scheme>],
"version": "<version name>",
"libraries": {"<library uid>":"<library version>"}
}
Note that libraries are library uid and version for Multimc automatic updating the mod loader or game version if necessary.
{
"file": "<relative path to file in modpack, like config/frostedheart-client.toml>",
"hash": "<SHA256 hash for file ignoring byte 09,0A,0D,20>",
"link": "<Full download link for the file>",
"size": <file size in byte to show correct progress when download>,
"dist": "<client or server to mark the side for the file>",
"compressed": <true if the file is deflated>
}
just run maven install and all is done.