-
Notifications
You must be signed in to change notification settings - Fork 3
/
egg-t7x.json
112 lines (112 loc) · 7.47 KB
/
egg-t7x.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-08-17T03:07:42+02:00",
"name": "T7x",
"author": "dominique@wellisch-itservice.de",
"description": "Run a BOIII dedicated server.\r\n\r\nNote: Installation slimming is enabled by default, removing the pre-installed multiplayer maps. This is to reduce the size of the server. You can disable this and have all multiplayer maps installed by default. It's recommended to keep this installed and manually add the maps you want.",
"features": null,
"docker_images": {
"draakoor\/dockerbo3": "draakoor\/dockerbo3"
},
"file_denylist": [],
"startup": "[ $IW4M == 1 ] && python3 runserver.py &wine64 boiii.exe -dedicated -headless +set fs_game \"{{MOD_FOLDER}}\" +set net_port \"{{SERVER_PORT}}\" +set logfile 2 +exec \"{{SERVER_CFG}}\"",
"config": {
"files": "{\r\n \"zone\/server.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"set rcon_password\": \"set rcon_password \\\"{{server.build.env.RCON_PASSWORD}}\\\"\"\r\n }\r\n },\r\n \"zone\/server_cp.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"set rcon_password\": \"set rcon_password \\\"{{server.build.env.RCON_PASSWORD}}\\\"\"\r\n }\r\n },\r\n \"zone\/server_zm.cfg\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"set rcon_password\": \"set rcon_password \\\"{{server.build.env.RCON_PASSWORD}}\\\"\"\r\n }\r\n }\r\n}",
"startup": "{\r\n \"done\": \"GameLogServer.server\"\r\n}",
"logs": "{}",
"stop": "^^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# Install game server - create folder to hold files\r\ninstall_dir=\"\/mnt\/server\"\r\ncd \/tmp\r\nmkdir -p \"${install_dir}\/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 \"${install_dir}\/steamcmd\"\r\nmkdir -p \"${install_dir}\/steamapps\" # Fix steamcmd disk write error when this folder is missing\r\ncd \"${install_dir}\/steamcmd\"\r\n.\/steamcmd.sh +@sSteamCmdForcePlatformType windows +force_install_dir \"${install_dir}\" +login anonymous +app_update 545990 validate +quit\r\n\r\n# Install server files\r\ncd \"${install_dir}\"\r\ncp -r .\/UnrankedServer\/* .\r\ncurl -Ls \"https:\/\/codeload.github.com\/${CONFIG_F}\/zip\/refs\/heads\/main\" -o main.zip\r\nunzip -o main.zip\r\ncp -r .\/t7-server-config-main\/* .\r\necho \"Installed server config files\"\r\n\r\n# Install boiii\r\nmkdir -p mods\r\ncurl -Ls \"${BOIII}\" -o \"boiii.exe\"\r\necho \"Installed boiii\"\r\n\r\n# Installing i4wm log server\r\nif [ ${IW4M} == 1 ]\r\nthen\r\n# Download the iw4m log server\r\ncd \/mnt\/server\r\nwget \"https:\/\/github.com\/RaidMax\/IW4MAdmin-GameLogServer\/releases\/download\/1.0.0\/GameLogServer.zip\"\r\nunzip GameLogServer.zip\r\nrm GameLogServer.zip\r\n#Changes the IW4M Log Server Default Port 1625 to the Same as the server\r\nsed -i \"s\/1625\/${SERVER_PORT}\/g\" runserver.py \r\nfi\r\n\r\n# Cleanup\r\nrm -r steamapps steamcmd main.zip README.md t7-server-config-main UnrankedServer\r\nrm BOIII_CP_Server.bat BOIII_MP_Server.bat BOIII_ZM_Server.bat copydedicated.bat Launch_Server.bat\r\n\r\n# Slimming\r\nif [ ${SLIM_ZONE} == 1 ]\r\nthen\r\n# Create the folders\r\nessential_dir=\"${install_dir}\/essential\"\r\nzone_dir=\"${install_dir}\/zone\"\r\nmkdir -p $essential_dir\r\n\r\n# Copy needed files over\r\ncp -r ${zone_dir}\/{*patch*,*core*,*patch*,$SERVER_CFG} $essential_dir\r\n\r\n# Transfer files over and delete essential dir\r\nrm -r ${zone_dir}\/*\r\ncp -r $essential_dir\/* ${zone_dir}\r\nrm -r $essential_dir\r\necho \"Slimmed installation\"\r\nfi\r\n\r\n#Installing Zombies\r\nif [ ${ZOMBIES} == 1 ]\r\nthen\r\necho \"Installing Zombie Zone Files\"\r\ncd \/mnt\/server\r\nwget https:\/\/wellisch-itservice.de\/t7.zip\r\nunzip t7.zip\r\nrm t7.zip\r\nfi\r\n\r\n#Make sure everything is readable\/runable for container user\r\nchmod -R 755 \/mnt\/server*\r\n\r\n#Install required t7x shit\r\ncd \/mnt\/server\r\nwget https:\/\/wellisch-itservice.de\/t7x.zip\r\nunzip t7x.zip\r\nrm t7x.zip\r\n\r\n# Done\r\necho \"Done!\"",
"container": "ghcr.io\/parkervcp\/installers:debian",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "Server Config",
"description": "The name of the server config file:\r\nmp -> server.cfg\r\nzm -> server_zm.cfg",
"env_variable": "SERVER_CFG",
"default_value": "server.cfg",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:20",
"field_type": "text"
},
{
"name": "Mod Folder",
"description": "The location of the mod folder",
"env_variable": "MOD_FOLDER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:50",
"field_type": "text"
},
{
"name": "RCON Password",
"description": "This overrides the RCON in your config files",
"env_variable": "RCON_PASSWORD",
"default_value": "PleaseChangeMe",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Installation Slimming",
"description": "Removes all unnecessary files from zone, except the ones that are needed.",
"env_variable": "SLIM_ZONE",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
},
{
"name": "Executable Download",
"description": "The link to download boiii.exe",
"env_variable": "BOIII",
"default_value": "https:\/\/wellisch-itservice.de\/t7x.exe",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|url",
"field_type": "text"
},
{
"name": "Config Download",
"description": "The repository that has the t7 config files",
"env_variable": "CONFIG_F",
"default_value": "Draakoor\/t7-server-config",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Zombie Files",
"description": "Installs zombie zone files if activated (value 1)",
"env_variable": "ZOMBIES",
"default_value": "0",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
},
{
"name": "IW4M Log Server - Enabled",
"description": "Installs a log server for IW4M Admin (on installation) and runs it on startup. This does not install IW4M Admin itself, run IW4M Admin on a separate container.",
"env_variable": "IW4M",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
}
]
}