-
Notifications
You must be signed in to change notification settings - Fork 32
/
egg-open-t-t-d-server.json
93 lines (93 loc) · 4.75 KB
/
egg-open-t-t-d-server.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
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2024-10-21T19:12:22+00:00",
"name": "OpenTTD",
"author": "[email protected]",
"uuid": "878470b2-369e-4629-95db-7e5fe0eafb99",
"description": "OpenTTD is an open source simulation game based upon the popular Microprose game \"Transport Tycoon Deluxe\", written by Chris Sawyer. It attempts to mimic the original game as closely as possible while extending it with new features.\r\n\r\nOpenTTD is modelled after the original Transport Tycoon game by Chris Sawyer and enhances the game experience dramatically. Many features were inspired by TTDPatch while others are original.",
"features": [],
"docker_images": {
"ghcr.io\/parkervcp\/yolks:debian": "ghcr.io\/parkervcp\/yolks:debian"
},
"file_denylist": [],
"startup": ".\/openttd -D",
"config": {
"files": "{\r\n \"openttd.cfg\": {\r\n \"parser\": \"ini\",\r\n \"find\": {\r\n \"network.server_port\": \"{{server.allocations.default.port}}\",\r\n \"network.server_name\": \"{{server.environment.srv_name}}\",\r\n \"network.lan_internet\": 0,\r\n \"network.server_advertise\": \"{{server.environment.srv_advertise}}\"\r\n }\r\n }\r\n}",
"startup": "{\n \"done\": \"Map generated, starting game\"\n}",
"logs": "{}",
"stop": "exit"
},
"scripts": {
"installation": {
"script": "#!\/bin\/ash\r\napk add --no-cache xz curl tar unzip\r\n\r\nmkdir -p \/mnt\/server\r\ncd \/mnt\/server\r\n\r\necho -e \"\\ncurl -SsL -o openttd-linux.tar.xz https:\/\/cdn.openttd.org\/openttd-releases\/${OPENTTD_VERSION}\/openttd-${OPENTTD_VERSION}-linux-generic-amd64.tar.xz\"\r\ncurl -SsL -o openttd-linux.tar.xz https:\/\/cdn.openttd.org\/openttd-releases\/${OPENTTD_VERSION}\/openttd-${OPENTTD_VERSION}-linux-generic-amd64.tar.xz \r\n\r\necho -e \"\\nUnpacking tar\"\r\ntar -xf openttd-linux.tar.xz --strip-components=1\r\nrm openttd-linux.tar.xz\r\nchmod +x openttd\r\n\r\necho -e \"\\nRunning curl -sSL -o opengfx.zip https:\/\/cdn.openttd.org\/opengfx-releases\/${OPENGFX_VERSION}\/opengfx-${OPENGFX_VERSION}-all.zip\"\r\ncurl -sSL -o opengfx.zip https:\/\/cdn.openttd.org\/opengfx-releases\/${OPENGFX_VERSION}\/opengfx-${OPENGFX_VERSION}-all.zip\r\nunzip opengfx.zip \r\n\r\ntar --strip-components=1 -C baseset\/ -xvf opengfx*.tar\r\nrm -fR open*zip open*tar open*gz\r\n\r\n[ -f \/home\/container\/openttd.cfg ] || curl https:\/\/raw.githubusercontent.com\/parkervcp\/eggs\/master\/game_eggs\/tycoon_games\/openttd\/openttd.cfg > openttd.cfg\r\n\r\n## install end\r\necho \"-----------------------------------------\"\r\necho \"Installation completed...\"\r\necho \"-----------------------------------------\"",
"container": "alpine:latest",
"entrypoint": "ash"
}
},
"variables": [
{
"name": "Server Name",
"description": "The name shown in the serverlist",
"env_variable": "srv_name",
"default_value": "OpenTTD Server",
"user_viewable": true,
"user_editable": true,
"rules": [
"required",
"string",
"max:20"
],
"sort": 1,
"field_type": "text"
},
{
"name": "Show in masterlist?",
"description": "Show the server in the serverlist on the client, true or false",
"env_variable": "srv_advertise",
"default_value": "true",
"user_viewable": true,
"user_editable": true,
"rules": [
"required",
"string",
"in:true,false"
],
"sort": 2,
"field_type": "text"
},
{
"name": "OpenTTD Version",
"description": "The version of OpenTTD i.e. 12.2",
"env_variable": "OPENTTD_VERSION",
"default_value": "13.0-RC2",
"user_viewable": true,
"user_editable": false,
"rules": [
"required",
"string",
"max:20"
],
"sort": 3,
"field_type": "text"
},
{
"name": "OpenGFX Version",
"description": "The OpenGFX Version i.e. 7.1",
"env_variable": "OPENGFX_VERSION",
"default_value": "7.1",
"user_viewable": true,
"user_editable": false,
"rules": [
"required",
"string",
"max:20"
],
"sort": 4,
"field_type": "text"
}
]
}