-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathegg-assault-cube.json
More file actions
146 lines (146 loc) · 7.05 KB
/
egg-assault-cube.json
File metadata and controls
146 lines (146 loc) · 7.05 KB
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
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"version": "PLCN_v1",
"update_url": null
},
"exported_at": "2025-02-19T20:55:13+00:00",
"name": "AssaultCube",
"author": "holeintheseat@gmail.com",
"uuid": "5a75a672-5ffc-4b78-9989-9356a3e56754",
"description": "AssaultCube is a FREE, multiplayer, first-person shooter game, based on the CUBE engine.\r\n\r\nTaking place in realistic environments, with fast, arcade gameplay, it's addictive and fun!",
"features": [],
"docker_images": {
"Debian": "ghcr.io\/parkervcp\/yolks:debian"
},
"file_denylist": [],
"startup": ".\/bin_unix\/linux_64_server -Y{{ASSAULT_SERVER_KEY}} -n\"{{ASSAULT_SERVER_DESCRIPTION}}\" -o\"{{ASSAULT_SERVER_MOTD}}\" -c{{ASSAULT_SERVER_MAXPLAYERS}} -x{{ASSAULT_SERVER_ADMINPASSWORD}} -f{{SERVER_PORT}} -p{{ASSAULT_SERVER_PLAYERPASSWORD}} -m{{ASSAULT_SERVER_MASTERSERVER}}",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"dedicated server started, waiting for clients...\"\r\n}",
"logs": "{}",
"stop": "^^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# AssaultCube Server Egg (By HoleInTheSeat) <|-|> (https:\/\/assault.cubers.net\/)\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\n#######-|Dependencies|-#######\r\napt update\r\napt -y install tar make bzip2 build-essential clang libclang-dev libclang1 llvm llvm-dev clang-tools libz-dev curl jq\r\n\r\n#######-|Downloading files|-#######\r\ncd \/mnt\/server\r\n## get release info and download links\r\n\r\nLATEST_JSON=$(curl --silent \"https:\/\/api.github.com\/repos\/assaultcube\/AC\/releases\/latest\")\r\nRELEASES=$(curl --silent \"https:\/\/api.github.com\/repos\/assaultcube\/AC\/releases\")\r\nMATCH=tar.bz2\r\n\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})\r\nelse\r\n VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .tag_name')\r\n if [ \"${VERSION}\" == \"${VERSION_CHECK}\" ]; then\r\n DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION \"${VERSION}\" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})\r\n else\r\n echo -e \"defaulting to latest release\"\r\n DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | head -1)\r\n fi\r\nfi\r\n\r\n\r\ncurl -sSL -o AssaultCube.tar.bz2 ${DOWNLOAD_URL}\r\ntar -xf AssaultCube.tar.bz2\r\nrm AssaultCube.tar.bz2\r\n\r\n#######-|Setting Up Server|-#######\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\nrm -rf bin_win32\/ *.sh\r\n\r\nif [ \"$(uname -m)\" = \"x86_64\" ]; then\r\n echo -e \"x86 System\"\r\nelse\r\n cd \/mnt\/server\/source\/src\r\n make server_install\r\nfi\r\n#######-|Insert Server Authkey|-#######\r\ncd \/mnt\/server\r\nsed -i 's\/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\/{{ASSAULT_SERVER_KEY}}\/' .\/config\/servercmdline.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": "Server Auth Key",
"description": "You must provide your own key for the server to register on the masterserver.\r\nTo generate a key you can run the client and issue the command:\r\n\r\n authkey new server \r\n \r\nSee: (https:\/\/assault.cubers.net\/docs\/server.html)",
"env_variable": "ASSAULT_SERVER_KEY",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": [
"nullable",
"string",
"max:64"
],
"sort": 1
},
{
"name": "Server Description",
"description": "",
"env_variable": "ASSAULT_SERVER_DESCRIPTION",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": [
"nullable",
"string",
"max:512"
],
"sort": 2
},
{
"name": "Message of the Day",
"description": "",
"env_variable": "ASSAULT_SERVER_MOTD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": [
"nullable",
"string",
"max:512"
],
"sort": 3
},
{
"name": "Max Players",
"description": "Set the limit on amount of players able to join (MAX 16)",
"env_variable": "ASSAULT_SERVER_MAXPLAYERS",
"default_value": "16",
"user_viewable": true,
"user_editable": true,
"rules": [
"required",
"string",
"integer",
"max:16"
],
"sort": 4
},
{
"name": "Admin Password",
"description": "",
"env_variable": "ASSAULT_SERVER_ADMINPASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": [
"required",
"string",
"between:5,512"
],
"sort": 5
},
{
"name": "Player Password",
"description": "Password need to join the server.",
"env_variable": "ASSAULT_SERVER_PLAYERPASSWORD",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": [
"nullable",
"string",
"max:512"
],
"sort": 6
},
{
"name": "Master Server",
"description": "Forces the server to register with the hostname or IP address of a different masterserver.\r\nThe default is ms.cubers.net\r\nIf you want your server to be hidden and not report to the masterserver, use -mlocalhost",
"env_variable": "ASSAULT_SERVER_MASTERSERVER",
"default_value": "ms.cubers.net",
"user_viewable": true,
"user_editable": true,
"rules": [
"required",
"string",
"max:512"
],
"sort": 7
},
{
"name": "Version",
"description": "The version of the engine you want to download.",
"env_variable": "VERSION",
"default_value": "latest",
"user_viewable": true,
"user_editable": true,
"rules": [
"required",
"string",
"max:20"
],
"sort": 8
}
]
}