forked from pelican-eggs/games-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
egg-pterodactyl-zandronum.json
152 lines (152 loc) · 7.63 KB
/
egg-pterodactyl-zandronum.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"update_url": null,
"version": "PTDL_v2"
},
"exported_at": "2024-06-01T00:17:22+00:00",
"name": "Zandronum",
"author": "[email protected]",
"description": "Zandronum is a multiplayer oriented port, based off Skulltag, for Doom and Doom II by id Software.\r\n\r\nThis egg uses the Freedoom WAD by default.",
"features": null,
"docker_images": {
"Debian": "ghcr.io/parkervcp/yolks:debian"
},
"file_denylist": [],
"startup": "./zandronum-server -port {{SERVER_PORT}} -config /home/container/zandronum.ini +set dmflags {{DMFLAGS}} +set dmflags2 {{DMFLAGS2}} +set zadmflags {{ZADMFLAGS}} +set compatflags {{COMPATFLAGS}} +set compatflags2 {{COMPATFLAGS2}} +set zacompatflags {{ZACOMPATFLAGS}} -iwad IWAD/{{IWAD}} -file PWAD/{{PWADS}} -host {{MAX_PLAYERS}} +map {{MAP}} -skill {{SKILL}} -netmode 1",
"config": {
"files": "{}",
"logs": "{}",
"startup": "{\r\n \"done\": \"UDP Initialized.\"\r\n}",
"stop": "quit"
},
"scripts": {
"installation": {
"container": "ghcr.io/parkervcp/installers:alpine",
"entrypoint": "ash",
"script": "#!/bin/bash\r\nmkdir -p /mnt/server\r\ncd /mnt/server\r\n\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] \u0026\u0026 echo \"linux-x86_64\" || echo \"linuxserver-armv8\")\r\n\r\necho \"Fetching latest version number of Zandronum\"\r\nversion=\"$(wget -q -O - http://zandronum.com/download |\r\nsed -n 's/.*The latest version is \u003cstrong\u003e\\(.*\\)\u003c\\/strong\u003e.*/\\1/p')\"\r\n\r\nz=\"zandronum\"$version\"-${ARCH}.tar.bz2\"\r\n\r\necho \"Downloading release $version of Zandronum.\"\r\necho \"Executing wget -nc https://zandronum.com/downloads/$z\"\r\nwget -nc https://zandronum.com/downloads/\"$z\"\r\necho \"Untar Zandronum\"\r\necho \"Executing tar -xjvf $z\"\r\ntar -xjvf \"$z\"\r\n\r\necho \"Remove useless files\"\r\nrm \"$z\"\r\nrm zandronum # This is the client, we don't need that.\r\n\r\necho \"Making zandronum-server executable\"\r\nchmod +x zandronum-server\r\n\r\n# Create IWAD and PWAD folder\r\nmkdir -p IWAD\r\nmkdir -p PWAD\r\n\r\n# Download latest freedoom for the default iwad\r\nfreedoom=$(curl -s https://api.github.com/repos/freedoom/freedoom/releases/latest | jq .assets | jq -r .[].browser_download_url | grep -m1 -i freedoom-.*.zip)\r\n\r\necho \"$freedoom\"\r\ncurl -L -o freedoom.zip $freedoom\r\n\r\nunzip -j -o freedoom.zip '*/*' -d IWAD/\r\n\r\n# Removing useless files\r\nrm freedoom.zip\r\nrm IWAD/*.html\r\nrm IWAD/*.pdf\r\n\r\n# Download the configuration file. The server fail to generate a config by itself so we have to supply one or it will crash\r\nwget https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/doom/zandronum/zandronum.ini -O /mnt/server/zandronum.ini\r\n\r\ntouch adminlist.txt\r\ntouch whitelist.txt\r\ntouch banlist.txt\r\n\r\nif [[ \"${GEOIP}\" == \"1\" ]]; then\r\n echo \"setting up GeoIP\"\r\n wget https://raw.githubusercontent.com/parkervcp/eggs/master/game_eggs/doom/zandronum/GeoIP.dat -O /mnt/server/GeoIP.dat\r\nfi\r\n\r\n\r\necho \"Install finished.\""
}
},
"variables": [
{
"name": "Max Players",
"description": "The maximum amount of players allowed on your game server.",
"env_variable": "MAX_PLAYERS",
"default_value": "16",
"user_viewable": true,
"user_editable": false,
"rules": "nullable|integer|max:128",
"field_type": "text"
},
{
"name": "IWAD",
"description": "An IWAD is the main resource file for a Doom-engine game, containing all the game's original sounds, levels, and graphics.",
"env_variable": "IWAD",
"default_value": "freedoom1.wad",
"user_viewable": true,
"user_editable": true,
"rules": "required|string|max:255",
"field_type": "text"
},
{
"name": "PWADS",
"description": "If you wish to use multiple PWAD you can do so by separating them with spaces.\r\n\r\nA PWAD is a WAD containing lumps of data, often used as addons. They replace in-game assets.",
"env_variable": "PWADS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "Skill",
"description": "Set the difficulty of the game.",
"env_variable": "SKILL",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|between:0,15",
"field_type": "text"
},
{
"name": "map",
"description": "The map the server should start with.",
"env_variable": "MAP",
"default_value": "e1m1",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "dmflags",
"description": "Gameplay flags. https://wiki.zandronum.com/DMFlags",
"env_variable": "DMFLAGS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "dmflags2",
"description": "Gameplay flags. https://wiki.zandronum.com/DMFlags",
"env_variable": "DMFLAGS2",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "zadmflags",
"description": "Zandronum specific gameplay flags. https://wiki.zandronum.com/DMFlags",
"env_variable": "ZADMFLAGS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "compatflags",
"description": "Compatibility flags. https://wiki.zandronum.com/DMFlags",
"env_variable": "COMPATFLAGS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "compatflags2",
"description": "Compatibility flags. https://wiki.zandronum.com/DMFlags",
"env_variable": "COMPATFLAGS2",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "zacompatflags",
"description": "Zandronum specific compatibility flags. https://wiki.zandronum.com/DMFlags",
"env_variable": "ZACOMPATFLAGS",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "nullable|string|max:255",
"field_type": "text"
},
{
"name": "Enable GeoIP",
"description": "GeoIP is used to identify the country of the client's ip address",
"env_variable": "GEOIP",
"default_value": "1",
"user_viewable": true,
"user_editable": true,
"rules": "required|boolean",
"field_type": "text"
}
]
}