-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathegg-venice-unleashed--with-mount.json
103 lines (103 loc) · 6.21 KB
/
egg-venice-unleashed--with-mount.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
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v2",
"update_url": null
},
"exported_at": "2023-04-10T18:19:01+05:30",
"name": "Venice Unleashed [With Mount]",
"author": "[email protected]",
"description": "Venice Unleashed Egg with mount support",
"features": null,
"docker_images": {
"VU Ptero - Stable": "ghcr.io\/itsmemac\/vu-pterodactyl:main",
"VU Ptero - Staging": "ghcr.io\/itsmemac\/vu-pterodactyl:staging"
},
"file_denylist": [],
"startup": "if [ ! -f \/home\/container\/activated ]; then wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -activate -o_mail ${EMAIL} -o_pass ${PASSWORD}; touch \/home\/container\/activated; else wine ~\/vu\/client\/vu.com -gamepath ~\/bf3 -serverInstancePath \"$(winepath -w ~\/vu\/instance)\" -server -dedicated -noUpdate -${FREQUENCY} -maxPlayers ${MAX_PLAYER} -listen 0.0.0.0:$SERVER_PORT -mHarmonyPort ${HARMONY} -RemoteAdminPort 0.0.0.0:${RCON}; fi",
"config": {
"files": "{}",
"startup": "{\r\n \"done\": \"Game successfully registered with Zeus\"\r\n}",
"logs": "{}",
"stop": "^C"
},
"scripts": {
"installation": {
"script": "#!\/bin\/bash\r\n# Venice Unleashed installer\r\n#\r\n# This will just pull the latest VU server files and unpack it in directory.\r\napt update -y\r\ndpkg --add-architecture i386\r\napt -y --no-install-recommends install curl gnupg2 wget software-properties-common file unzip lib32gcc1 ca-certificates\r\n## VU specific because reasons\r\nchown -R root:root \/mnt\r\nexport HOME=\/mnt\/server\r\nmkdir -p \/mnt\/server\/tmp\r\ncd \/tmp\r\n## install latest wine\r\nwget -nc https:\/\/dl.winehq.org\/wine-builds\/winehq.key\r\napt-key add winehq.key\r\necho \"deb https:\/\/dl.winehq.org\/wine-builds\/debian\/ buster main\" >> \/etc\/apt\/sources.list\r\napt update\r\n## install wine, cabextract, and xvfb for winetricks\r\napt install -y --install-recommends winehq-stable cabextract xvfb\r\nexport WINEPREFIX=\/mnt\/server\/.wine\r\nexport WINEDLLOVERRIDES=\"mscoree,mshtml=\"\r\nexport DISPLAY=:0\r\nexport DISPLAY_WIDTH=1024\r\nexport DISPLAY_HEIGHT=768\r\nexport DISPLAY_DEPTH=16\r\nexport AUTO_UPDATE=1\r\nexport XVFB=1\r\n## install winetricks\r\nwget -q -O \/usr\/sbin\/winetricks https:\/\/raw.githubusercontent.com\/Winetricks\/winetricks\/master\/src\/winetricks \\\r\n&& chmod +x \/usr\/sbin\/winetricks\r\n## install vc redistributable\r\nxvfb-run --auto-servernum winetricks -q vcrun2019\r\n## Make VU Required Directories\r\ncd \/\r\nmkdir -p \/mnt\/server\/vu\/client\r\nmkdir -p \/mnt\/server\/vu\/instance\r\ncd \/mnt\/server\/vu\/client\r\n# Validate and Download VU Server files\r\nif [ ! -z \"${DOWNLOAD_URL}\" ]; then\r\nif curl --output \/dev\/null --silent --head --fail ${DOWNLOAD_URL}; then\r\necho -e \"link is valid. setting download link to ${DOWNLOAD_URL}\"\r\nDOWNLOAD_LINK=${DOWNLOAD_URL}\r\nelse\r\necho -e \"link is invalid closing out\"\r\nexit 2\r\nfi\r\nfi\r\ncurl -sSL ${DOWNLOAD_LINK} -o ${DOWNLOAD_LINK##*\/}\r\n# unpack servver files\r\nFILETYPE=$(file -F ',' ${DOWNLOAD_LINK##*\/} | cut -d',' -f2 | cut -d' ' -f2)\r\nif [ \"$FILETYPE\" == \"gzip\" ]; then\r\ntar xzvf ${DOWNLOAD_LINK##*\/}\r\nelif [ \"$FILETYPE\" == \"Zip\" ]; then\r\nunzip ${DOWNLOAD_LINK##*\/}\r\nelif [ \"$FILETYPE\" == \"XZ\" ]; then\r\ntar xvf ${DOWNLOAD_LINK##*\/}\r\nelse\r\necho -e \"unknown filetype. Exiting\"\r\nexit 2\r\nfi",
"container": "debian:buster-slim",
"entrypoint": "bash"
}
},
"variables": [
{
"name": "VU Server Download URL",
"description": "Official URL provided by VU to download servers files.\r\n(Should not be changed unless you know what you are doing)",
"env_variable": "DOWNLOAD_URL",
"default_value": "https:\/\/veniceunleashed.net\/files\/vu.zip",
"user_viewable": true,
"user_editable": true,
"rules": "required|string",
"field_type": "text"
},
{
"name": "Origin Account Email",
"description": "Your Origin Account Email to validate install",
"env_variable": "EMAIL",
"default_value": "[email protected]",
"user_viewable": true,
"user_editable": true,
"rules": "email",
"field_type": "text"
},
{
"name": "Origin Account Password",
"description": "Your Origin Account Password to validate install",
"env_variable": "PASSWORD",
"default_value": "Password@123",
"user_viewable": true,
"user_editable": true,
"rules": "string",
"field_type": "text"
},
{
"name": "Harmony Port",
"description": "Port used by Harmony services",
"env_variable": "HARMONY",
"default_value": "7948",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric",
"field_type": "text"
},
{
"name": "RCON Port",
"description": "Port used for RCON",
"env_variable": "RCON",
"default_value": "47200",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric",
"field_type": "text"
},
{
"name": "Server Frequency",
"description": "30 - 30Hz (Default) \/\/ high60 - 60Hz High frequency mode \/\/ high120 - 120Hz High frequency mode",
"env_variable": "FREQUENCY",
"default_value": "30",
"user_viewable": true,
"user_editable": true,
"rules": "in:30,high60,high120",
"field_type": "text"
},
{
"name": "Maximum Player Count",
"description": "Sets the maximum players that are allowed to set with vars.maxPlayers & vars.maxSpectators combined.",
"env_variable": "MAX_PLAYER",
"default_value": "",
"user_viewable": true,
"user_editable": true,
"rules": "required|numeric",
"field_type": "text"
}
]
}