{ "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO", "meta": { "version": "PTDL_v2", "update_url": null }, "exported_at": "2023-08-30T22:56:27+02:00", "name": "BattleBit Remastered", "author": "contact@clan-rmg.com", "description": "BattleBit Remastered Dedicated Server Wine Debian", "features": [ "steam_disk_space" ], "docker_images": { "ghcr.io\/parkervcp\/yolks:wine_staging": "ghcr.io\/parkervcp\/yolks:wine_staging" }, "file_denylist": [], "startup": "cd \/home\/container\/ ; winetricks sound=disabled; export WINEARCH=\"win64\"; export WINEDLLOVERRIDES=\"mscoree=n,b;mshtml=n,b\"; wine \/home\/container\/BattleBit.exe -batchmode -nographics \"-Name=\"{{SERVER_NAME}}\"\" \"-Port={{SERVER_PORT}}\" \"-Hz={{SERVER_RATEHZ}}\" \"-AntiCheat=EAC\" \"-MaxPing={{SERVER_MAXPING}}\" \"-VoxelMode={{SERVER_VOXELMODE}}\" \"-ApiEndPoint={{SERVER_APIENDPOINT}}\" \"-apitoken={{SERVER_APITOCKEN}}\" \"-FirstMap={{SERVER_FIRSTMAP}}\" \"-FirstGamemode={{SERVER_FIRSTGAMEMODE}}\" \"-FixedSize={{SERVER_FIXEDSIZE}}\" \"-FirstSize={{SERVER_FIRSTSIZE}}\" \"-MaxSize={{SERVER_MAXSIZE}}\" \"-Password=\"{{SERVER_PASSWORD}}\"\" \"-MaxPlayers={{SERVER_MAXPLAYERS}}\"", "config": { "files": "{}", "startup": "{\r\n \"done\": \"Successfully registered to steam servers\"\r\n}", "logs": "{}", "stop": "^^C" }, "scripts": { "installation": { "script": "#!\/bin\/bash\r\n# Installation Script\r\n#\r\n\r\n## Define variables\r\ndlurl=\"https:\/\/fastdl.clan-rmg.com\/BattleBit\/\"\r\n\r\n# Install packages. Default packages below are not required if using our existing install image thus speeding up the install process.\r\n#apt -y update\r\n#apt -y install curl lib32gcc-s1 ca-certificates unzip\r\n\r\n\r\n\r\n## just in case someone removed the defaults.\r\nif [[ \"${STEAM_USER}\" == \"\" ]] || [[ \"${STEAM_PASS}\" == \"\" ]]; then\r\n echo -e \"steam user is not set.\\n\"\r\n echo -e \"Using anonymous user.\\n\"\r\n STEAM_USER=anonymous\r\n STEAM_PASS=\"\"\r\n STEAM_AUTH=\"\"\r\nelse\r\n echo -e \"user set to ${STEAM_USER}\"\r\nfi\r\n\r\n## download and install steamcmd\r\ncd \/tmp\r\nmkdir -p \/mnt\/server\/steamcmd\r\ncurl -sSL -o steamcmd.tar.gz https:\/\/steamcdn-a.akamaihd.net\/client\/installer\/steamcmd_linux.tar.gz\r\ntar -xzvf steamcmd.tar.gz -C \/mnt\/server\/steamcmd\r\nmkdir -p \/mnt\/server\/steamapps # Fix steamcmd disk write error when this folder is missing\r\ncd \/mnt\/server\/steamcmd\r\n\r\n# SteamCMD fails otherwise for some reason, even running as root.\r\n# This is changed at the end of the install process anyways.\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\n\r\n## install game using steamcmd\r\n.\/steamcmd.sh +force_install_dir \/mnt\/server +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ \"${WINDOWS_INSTALL}\" == \"1\" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s \"-beta ${SRCDS_BETAID}\" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s \"-betapassword ${SRCDS_BETAPASS}\" ) ${INSTALL_FLAGS} validate +quit ## other flags may be needed depending on install. looking at you cs 1.6\r\n\r\n## set up 32 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk32\r\ncp -v linux32\/steamclient.so ..\/.steam\/sdk32\/steamclient.so\r\n\r\n## set up 64 bit libraries\r\nmkdir -p \/mnt\/server\/.steam\/sdk64\r\ncp -v linux64\/steamclient.so ..\/.steam\/sdk64\/steamclient.so\r\n\r\n## Admin Files\r\ntouch $HOME\/Permissions.txt\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"", "container": "ghcr.io\/parkervcp\/installers:debian", "entrypoint": "bash" } }, "variables": [ { "name": "APP ID", "description": "The ID corresponding to the game to download.", "env_variable": "SRCDS_APPID", "default_value": "671860", "user_viewable": false, "user_editable": false, "rules": "required|numeric|digits_between:1,6", "field_type": "text" }, { "name": "WINDOWS_INSTALL", "description": "", "env_variable": "WINDOWS_INSTALL", "default_value": "1", "user_viewable": false, "user_editable": false, "rules": "required|string|max:20", "field_type": "text" }, { "name": "WINETRICKS_RUN", "description": "", "env_variable": "WINETRICKS_RUN", "default_value": "vcrun2013 vcrun2017 corefonts dotnet48", "user_viewable": false, "user_editable": false, "rules": "required|string", "field_type": "text" }, { "name": "WINEPREFIX", "description": "WINEPREFIX", "env_variable": "WINEPREFIX", "default_value": "\/home\/container\/.wine", "user_viewable": false, "user_editable": false, "rules": "required|string|max:64", "field_type": "text" }, { "name": "WINEDEBUG", "description": "", "env_variable": "WINEDEBUG", "default_value": "-all", "user_viewable": false, "user_editable": false, "rules": "required|string|max:20", "field_type": "text" }, { "name": "Server Name", "description": "Name of the server, appears in Steam browser.", "env_variable": "SERVER_NAME", "default_value": "A Pterodactyl hosted Battlebit Server", "user_viewable": true, "user_editable": true, "rules": "required|string|max:64", "field_type": "text" }, { "name": "Max Players", "description": "Maximum number of players", "env_variable": "SERVER_MAXPLAYERS", "default_value": "128", "user_viewable": true, "user_editable": true, "rules": "required|numeric|digits_between:1,254", "field_type": "text" }, { "name": "Server Password", "description": "", "env_variable": "SERVER_PASSWORD", "default_value": "", "user_viewable": true, "user_editable": true, "rules": "max:64", "field_type": "text" }, { "name": "Steam Username", "description": "", "env_variable": "STEAM_USER", "default_value": "", "user_viewable": false, "user_editable": false, "rules": "required|string|max:64", "field_type": "text" }, { "name": "Steam Password", "description": "", "env_variable": "STEAM_PASS", "default_value": "", "user_viewable": false, "user_editable": false, "rules": "nullable|string", "field_type": "text" }, { "name": "Default Size Map", "description": "TINY - 8v8\r\nSMALL - 16v16\r\nMEDIUM - 32v32\r\nBIG - 64v64\r\nULTRA - 127v127", "env_variable": "SERVER_FIXEDSIZE", "default_value": "tiny", "user_viewable": true, "user_editable": true, "rules": "required|string|in:tiny,small,medium,big,ultra", "field_type": "text" }, { "name": "First Max Size", "description": "TINY - 8v8\r\nSMALL - 16v16\r\nMEDIUM - 32v32\r\nBIG - 64v64\r\nULTRA - 127v127", "env_variable": "SERVER_FIRSTSIZE", "default_value": "tiny", "user_viewable": true, "user_editable": true, "rules": "required|string|in:tiny,small,medium,big,ultra", "field_type": "text" }, { "name": "Max Size Map", "description": "TINY - 8v8\r\nSMALL - 16v16\r\nMEDIUM - 32v32\r\nBIG - 64v64\r\nULTRA - 127v127", "env_variable": "SERVER_MAXSIZE", "default_value": "tiny", "user_viewable": true, "user_editable": true, "rules": "required|string|in:tiny,small,medium,big,ultra", "field_type": "text" }, { "name": "First GameMode", "description": "CONQ : CONQUEST | INFCONQ : INFARTRY CONQUEST | DOMI : DOMINATION | RUSH : RUSH | CTF : CAPTURE THE FLAG | FRONTLINE : FRONTLINE", "env_variable": "SERVER_FIRSTGAMEMODE", "default_value": "CONQ", "user_viewable": true, "user_editable": true, "rules": "required|string|in:CONQ,INFCONQ,DOMI,RUSH,CTF,FRONTLINE", "field_type": "text" }, { "name": "First Map", "description": "Server startup MAP", "env_variable": "SERVER_FIRSTMAP", "default_value": "Eduardovo", "user_viewable": true, "user_editable": true, "rules": "required|string|max:64", "field_type": "text" }, { "name": "SteamCMD Branch", "description": "Community-testing branch for test server and API Test | Community-server live branch for community server (do not use currently)", "env_variable": "SRCDS_BETAID", "default_value": "community-testing", "user_viewable": true, "user_editable": true, "rules": "required|string|in:community-testing,community-server", "field_type": "text" }, { "name": "Server API Endpoint", "description": "IP + PORT where is the api", "env_variable": "SERVER_APIENDPOINT", "default_value": "127.0.0.1:29294", "user_viewable": true, "user_editable": true, "rules": "nullable|string", "field_type": "text" }, { "name": "VoxelMode", "description": "", "env_variable": "SERVER_VOXELMODE", "default_value": "false", "user_viewable": true, "user_editable": true, "rules": "required|string|in:true,false", "field_type": "text" }, { "name": "Max Ping", "description": "Maximum ping allowed on the server", "env_variable": "SERVER_MAXPING", "default_value": "500", "user_viewable": true, "user_editable": true, "rules": "required|numeric|digits_between:1,1000", "field_type": "text" }, { "name": "Server Hz", "description": "Hz of the server", "env_variable": "SERVER_RATEHZ", "default_value": "60", "user_viewable": true, "user_editable": true, "rules": "required|string|in:60,120,240", "field_type": "text" }, { "name": "API Token", "description": "Token generated by API", "env_variable": "SERVER_APITOCKEN", "default_value": "", "user_viewable": true, "user_editable": true, "rules": "nullable|string|max:20", "field_type": "text" } ] }