server content fix

This commit is contained in:
Frank Harris 2026-06-18 12:11:47 -05:00
parent 8a56ddc83c
commit 67022a3846
9 changed files with 589 additions and 740 deletions

View file

@ -14,16 +14,20 @@ _gsp_content/
runtime/
```
## Content Type
## Category And Hook Metadata
The Server Content Manager includes the `Server-side Application` content type.
When this type is installed, the Panel writes a JSON hook manifest to:
All server content uses the scripted installer workflow.
`Server-side Application` is a category used for sorting/filtering, plus a
startup-hook metadata preset. Any content item with startup-hook metadata
enabled writes a JSON hook manifest to:
```text
_gsp_content/hooks/<app>.json
```
The agents read these manifests during server startup.
The agents read these manifests during server startup. The actual files for the
content item may be installed anywhere the game requires them.
## Hook Manifest
@ -86,5 +90,25 @@ second, then continue normal game process and screen/session cleanup.
Windows `_alsoRun.bat` support remains for compatibility, but it is deprecated.
New companion applications should be installed as `Server-side Application`
content so both Linux and Windows agents can manage them through the same hook
content with hook metadata so both Linux and Windows agents can manage them through the same hook
contract.
## Examples
Ordinary mod install:
- Category: `Mod`
- Install script handles download/extract/move
- No startup hook metadata
BEC install:
- Category: `Server-side Application`
- Install script places BEC files in the required folder
- Startup hook metadata writes `_gsp_content/hooks/bec.json`
Config install:
- Category: `Config`
- Install script writes or patches config files
- No special install mechanism beyond the scripted installer