Skip to content

Instantly share code, notes, and snippets.

@maxomatic458
Last active January 4, 2026 21:07
Show Gist options
  • Select an option

  • Save maxomatic458/b91d5224adeecc072d8ca10af9450f83 to your computer and use it in GitHub Desktop.

Select an option

Save maxomatic458/b91d5224adeecc072d8ca10af9450f83 to your computer and use it in GitHub Desktop.
SPT Fika dedicated client pterodactyl egg
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-07-26T16:29:31+00:00",
"name": "SPT Fika Dedicated Client",
"author": "maxomatic458.dev@gmail.com",
"uuid": "24d8f5a6-ac9e-4c22-b91b-afd21e71c808",
"description": null,
"features": [],
"docker_images": {
"ghcr.io\/pelican-eggs\/yolks:wine_latest": "ghcr.io\/pelican-eggs\/yolks:wine_latest"
},
"file_denylist": [],
"startup": ".\/pre-check.sh && cd Dedicated-Client && (tail -f BepInEx\/LogOutput.log & PID=$!; wine {{EFT_BINARY}} -token=\"{{PROFILE_ID}}\" -config=\"{'BackendUrl':'{{BACKEND_URL}}', 'Version':'live'}\" -batchmode -nographics; kill $PID)",
"config": {
"files": "{}",
"startup": "{\n \"done\": \"Chainloader startup complete\"\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# SPT\/Fika Dedicated (Headless) Client\r\n\r\nGREEN='\\033[0;32m'\r\ncd ${HOME}\r\n\r\necho -e \"${GREEN}installing dotnet\"\r\n\r\n# install dotnet and add sources\r\napt update && apt install -yq dotnet-sdk-${DOTNET_VERSION}\r\ndotnet nuget add source https:\/\/nuget.bepinex.dev\/v3\/index.json\r\n\r\n# download and build the fika plugins\r\n\r\nmkdir tmp\r\ncd tmp\r\n\r\n# build the fika plugin\r\n\r\necho -e \"${GREEN}building the fika plugin\"\r\n\r\ngit clone https:\/\/github.com\/project-fika\/Fika-Plugin -b ${FIKA_PLUGIN_BRANCH}\r\ncd Fika-Plugin\r\ndotnet build --configuration Release\r\n\r\n\r\n\r\ncd ${HOME}\/tmp\r\n\r\n# build the fika dedicated plugin\r\n\r\necho -e \"${GREEN}building the fika dedicated plugin\"\r\n\r\ngit clone https:\/\/github.com\/project-fika\/Fika-Dedicated -b ${FIKA_DEDICATED_BRANCH}\r\ncd Fika-Dedicated\r\ndotnet build --configuration Release\r\n\r\n# setup directories\r\n\r\ncd ${HOME}\r\nmkdir -p \/mnt\/server\/Dedicated-Client\/BepInEx\/plugins\r\n\r\n\r\n\r\n# script that runs before the game runs, to check if required live files\r\n# are present\r\n\r\nmkdir -p \/mnt\/server\/.wine\/drive_c\/live\r\n\r\n# registry files stolen from https:\/\/github.com\/zhliau\/fika-headless-docker\r\n# i should probably find the relevant keys and include them here and just append them\r\n# to the default registry.\r\n\r\necho -e \"${GREEN}importing custom registry files\"\r\n\r\napt install -yq curl\r\n\r\ncd \/mnt\/server\/.wine\r\ncurl -o system.reg https:\/\/raw.githubusercontent.com\/zhliau\/fika-headless-docker\/22ea3d450010f44edcae3efec6f671040b9d98c5\/data\/reg\/system.reg\r\ncurl -o user.reg https:\/\/raw.githubusercontent.com\/zhliau\/fika-headless-docker\/22ea3d450010f44edcae3efec6f671040b9d98c5\/data\/reg\/user.reg\r\n\r\necho -e \"${GREEN}imported custom registry files\"\r\n\r\ncd ${HOME}\r\n\r\necho '#!\/bin\/bash\r\nRED=\"\\033[0;31m\" \r\nif [ ! -f .\/.wine\/drive_c\/live\/ConsistencyInfo ]; then\r\necho -e \"${RED}The live EFT files are not present, put them in \/home\/container\/.wine\/drive_c\/live (EscapeFromTarkov_Data is not required)\"\r\nexit 1\r\nfi\r\nif [ ! -f .\/Dedicated-Client\/EscapeFromTarkov.exe ]; then\r\necho -e \"${RED}The SPT Files are not present, put them in \/home\/container\/Dedicated-Client\"\r\nexit 1\r\nfi\r\n' > pre-check.sh\r\n\r\nchmod +x pre-check.sh\r\n\r\nmv pre-check.sh \/mnt\/server\r\nmv tmp\/Fika-Plugin\/Fika.Core\/bin\/Release\/net471\/Fika.Core.dll \/mnt\/server\/Dedicated-Client\/BepInEx\/plugins\r\nmv tmp\/Fika-Dedicated\/Fika.Dedicated\/bin\/Release\/net471\/Fika.Dedicated.dll \/mnt\/server\/Dedicated-Client\/BepInEx\/plugins\r\n\r\necho -e \"${GREEN}install complete!\"",
"container": "ghcr.io\/parkervcp\/installers:ubuntu",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Profile ID",
"description": "The ID of the profile to use as dedicated client",
"env_variable": "PROFILE_ID",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Backend Url",
"description": "",
"env_variable": "BACKEND_URL",
"default_value": "http:\/\/0.0.0.0:6969",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Fika plugin branch",
"description": "The branch where the fika plugin is compiled from",
"env_variable": "FIKA_PLUGIN_BRANCH",
"default_value": "main",
"user_viewable": false,
"user_editable": false,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Fika dedicated branch",
"description": "The branch where the fika dedicated plugin is compiled from",
"env_variable": "FIKA_DEDICATED_BRANCH",
"default_value": "main",
"user_viewable": false,
"user_editable": false,
"rules": "required|string",
"field_type": "text"
},
{
"name": ".NET version",
"description": "The .NET version used to compile the plugins",
"env_variable": "DOTNET_VERSION",
"default_value": "8.0",
"user_viewable": false,
"user_editable": false,
"rules": "required|string",
"field_type": "text"
},
{
"name": "WINEDEBUG",
"description": "WINEDEBUG: Debug Level of wine",
"env_variable": "WINEDEBUG",
"default_value": "-all",
"user_viewable": false,
"user_editable": false,
"rules": "nullable|string|max:20",
"field_type": "text"
},
{
"name": "WINETRICKS_RUN",
"description": "",
"env_variable": "WINETRICKS_RUN",
"default_value": "vcrun2019",
"user_viewable": false,
"user_editable": false,
"rules": "required|string",
"field_type": "text"
},
{
"name": "WINEARCH",
"description": "",
"env_variable": "WINEARCH",
"default_value": "win64",
"user_viewable": false,
"user_editable": false,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "WINEPREFIX",
"description": "",
"env_variable": "WINEPREFIX",
"default_value": "\/home\/container\/.wine",
"user_viewable": false,
"user_editable": false,
"rules": "string",
"field_type": "text"
},
{
"name": "EFT_BINARY",
"description": "",
"env_variable": "EFT_BINARY",
"default_value": "\/home\/container\/Dedicated-Client\/EscapeFromTarkov.exe",
"user_viewable": true,
"user_editable": false,
"rules": "string|required",
"field_type": "text"
}
]
}
@maxomatic458

maxomatic458 commented Jul 26, 2024

Copy link
Copy Markdown
Author

Note

The fika plugin (which is built from source) will generate a new version everytime it is built, therefore you need to download the Fika.Core.dll and use that for playing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment