View the Project on GitHub LUDevNet/LUpdate
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
└──/luproject
You need to do the following:
lupdate pki to generate primary.pkilupdate cache to populate the sd0 cache and create trunk.txtlupdate pack to pre-package all PK-archives with front (--filter *front*)lupdate cache again to cache PK filestrunk.txt to what the frontend needsNote: 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.