Corter‐Modsync support - zhliau/fika-headless-docker GitHub Wiki

This image supports the unique plugin updater process that Corter-ModSync employs to update client plugins. To enable support:

  • Copy the Fika.Headless.dll or Fika.Dedicated.dll plugin file into the server's BepInEx directory (the directory that modsync treats as the source of truth).
  • (IMPORTANT) Ensure you have "BepInEx/plugins/Fika.Headless.dll" or "BepInEx/plugins/Fika.Dedicated.dll" in the commonModExclusions list in the ModSync server configuration. It should already be there by default. This is to ensure that ModSync does not push the Headless plugin to clients nor delete it from the container, especially if you are enforcing the BepInEx/plugins path on all connecting clients
  • Set the USE_MODSYNC env var to true when starting the container.

The container will then anticipate that ModSync may close the headless client for an update, and restart the headless client once updates are completed.

[!NOTE] Enabling USE_MODSYNC does NOT mean that the headless client will periodically restart to check for updates to plugins. If you wish to do this, you must build it via a periodic restarter script or a cron job. You can mount the docker socket into a docker:cli image and run a simple bash while loop or something. See the example docker-compose.yml in this repo for details