-
-
Notifications
You must be signed in to change notification settings - Fork 24
PsBuild
PsBuild is a tool to compile PSB description jsons to PSB.
PsBuild is pcc
compatible. PsBuild accepts both res.json
(psbtools decompiler
) and resx.json
(PsbDecompile) as resource json.
resx.json
is a new format of resource json used by PsBuild. When decompiling PSB, some information is lost, and resx.json
is used to keep them, and provide some options for compile at the same time. However, if you specify parameters in PsBuild, the corresponding setting in resx.json
will be ignored.
For example, you can set CryptKey
in resx.json
, and the PSB will be encrypted after compiling. (This only works for EMT PSB.)
resx.json
may changes with the updates of PsBuild. Be careful if you modified it and then switched to a new version of PsBuild.
PsBuild identifies pictures' format by their file extensions and convert common picture formats to the format PSB used. For TLG image support, read Plugins for more details.
- Use
/v{Version}
to set a corresponding PSB version (usually try/v2
first). You can also set version inresx.json
. - If the PSB have to be encrypted, do it using
PsBuild /k{Key}
orEmoteConv
. - Make sure the jsons are valid (both syntax and content).
- If you are using FreeMote libs, make sure you have called
PSB.Merge()
beforePSB.Build()
.