This is a command line tool to generate LU-patcher compatible cache directories.
Assuming a directory structure like the following, where {cat1}, {cat2}, …, {catN} are directories
with data:
/LUpdate.toml
/dev
├──/server
│ ├──/MyServer.exe
│ ├──/res
│ │ ├──{cat1}
│ │ ├──{cat2}
│ │ ⋮
│ │ └──{catN}
│ └──/config.toml
└──/project
├──/MyProject.exe
├──/res
│ ├──{cat1}
│ ├──{cat2}
│ ⋮
│ └──{catN}
└──/config.toml
/cache
├──/luserver
└──/luprojectYou need to do the following:
- Run
lupdate pkito generateprimary.pki - Run
lupdate cacheto populate the sd0 cache and createtrunk.txt - Run
lupdate packto pre-package all PK-archives withfront(--filter *front*) - Run
lupdate cacheagain to cache PK files - Cut down
trunk.txtto what the frontend needs
Note: This process may change in the future
Save the following file as LUpdate.toml in the root directory (i.e. next to dev).
For the PKI you need another config file in the project dir (i.e. server / project)
[general]
src = "dev"
[project.luserver]
dir = "server"
config = "config.toml"
cache = "cache"Example:
[pack.cat1]
dirs = [
"cat1\\sub1",
"cat1\\sub3",
]
[pack.cat2]
dirs = [
"cat2\\subA",
"cat2\\subX"
]This tool is intended to facilitate distributing new user-generated content for private servers. Use is at your own risk. Note that the patcher protocol is using a public HTTP host, so should you use this tool to prepare a full client, you are distributing it and are liable for any consequences of that.