mirror of
https://github.com/parkervcp/eggs.git
synced 2024-12-02 12:52:58 +08:00
95 lines
20 KiB
JSON
95 lines
20 KiB
JSON
|
{
|
||
|
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
|
||
|
"meta": {
|
||
|
"version": "PTDL_v1",
|
||
|
"update_url": null
|
||
|
},
|
||
|
"exported_at": "2021-08-17T10:00:02-05:00",
|
||
|
"name": "Wargame: Red Dragon - Patched",
|
||
|
"author": "f.falk@pm.me",
|
||
|
"description": "Wargame: Red Dragon is thrilling in single-player mode with its new dynamic campaign system, and also offers an extensive multiplayer mode where up to 20 players can compete against each other simultaneously.\r\n\r\nThis version is patched using https:\/\/github.com\/wargame-mods\/wargame-server\/",
|
||
|
"features": null,
|
||
|
"images": [
|
||
|
"quay.io\/parkervcp\/pterodactyl-images:base_debian"
|
||
|
],
|
||
|
"file_denylist": [],
|
||
|
"startup": ".\/wargame3-server +ip {{SERVER_IP}} +port {{SERVER_PORT}} +ip_mms {{SRV_MMS_IP}} +port_mms {{SRV_MMS_PORT}} +rcon_password {{SRV_RCON}} +rcon_port {{SRV_RCON_PORT}} +chat_log_file chat.txt > \/dev\/null & python3 control.py --rcon_port {{SRV_RCON_PORT}} --rcon_password {{SRV_RCON}}",
|
||
|
"config": {
|
||
|
"files": "{\r\n \"login.ini\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"login\": \"login=\\\"{{server.build.env.SRV_LOGIN}}\\\"\",\r\n \"dedicated_key\": \"dedicated_key=\\\"{{server.build.env.SRV_APIKEY}}\\\"\"\r\n }\r\n },\r\n \"variables.ini\": {\r\n \"parser\": \"file\",\r\n \"find\": {\r\n \"ServerName\": \"ServerName=\\\"{{server.build.env.SRV_NAME}}\\\"\"\r\n }\r\n }\r\n}",
|
||
|
"startup": "{\r\n \"done\": \"Server control started\"\r\n}",
|
||
|
"logs": "{}",
|
||
|
"stop": "^C"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"installation": {
|
||
|
"script": "#!\/bin\/bash\r\n# TS3 Installation Script\r\n#\r\n# Server Files: \/mnt\/server\r\n\r\napk add wget bash jq curl openssl unzip python3\r\n\r\n# Download server files, only available in docker unfortunately\r\n# Docker-in-docker requires special setup to work, so this is a bit of a workaround\r\n# https:\/\/stackoverflow.com\/questions\/37905763\/how-do-i-download-docker-images-without-using-the-pull-command\r\nwget https:\/\/raw.githubusercontent.com\/moby\/moby\/master\/contrib\/download-frozen-image-v2.sh\r\nchmod +x download-frozen-image-v2.sh\r\nmkdir 'img'\r\n.\/download-frozen-image-v2.sh 'img' eugensystems\/wargame3:latest\r\nmkdir 'img-files'\r\nfind -type f -name layer.tar -exec tar -zxf {} --directory 'img-files' \\;\r\ncp 'img-files\/server\/wargame3-server' \/mnt\/server\r\n\r\n# Generate pkey\/cert\r\nopenssl genrsa -out \/mnt\/server\/pkey 2048\r\nopenssl req -new -batch -key \/mnt\/server\/pkey -out \/mnt\/server\/cert.req\r\nopenssl x509 -req -days 365 -in \/mnt\/server\/cert.req -signkey \/mnt\/server\/pkey -out \/mnt\/server\/cert\r\n\r\n# Set up wargame patch\r\nwget https:\/\/github.com\/wargame-mods\/wargame-server\/archive\/refs\/heads\/master.zip\r\nunzip -j master.zip\r\npython3 patch.py \/mnt\/server\/wargame3-server\r\nmv \/mnt\/server\/wargame3-server.patched \/mnt\/server\/wargame3-server\r\ncp control.py \/mnt\/server\/control.py\r\ntouch \/mnt\/server\/chat.txt\r\ntouch \/mnt\/server\/badwords.txt\r\n\r\n# Generate config files\r\n# Comments copied from https:\/\/eugensystems.com\/downloads\/wargame3_server.tar.bz2\r\ncat <<EOF > \/mnt\/server\/install.txt\r\nWargame2 Dedicated Server is provided \"AS IS\" WITHOUT WARRANTY OF ANY KIND,\r\nEITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r\nOF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.\r\n\r\nTo install dedicated server, please follow these steps :\r\n- Edit login.ini file and insert your login and the dedicated key that eugen must have provided\r\n- Edit variables.ini and configure the games options\r\n- Launch wargame3-server with command line : .\/wargame3-server +port XXXX +ip_mms 178.32.126.73 +port_mms 10002 +ip YY.YY.YY.YY\r\nwhere your must replace XXXX by a valid port > 10000 and YY.YY.YY.YY by the IP of your server.\r\n\r\nEnjoy !\r\n\r\n\r\nOptional steps :\r\n- You can use rcon protocol to kick\/ban people, change server properties at runtime.\r\nYou can active rcon by specify the option +rcon_password and +rcon_port when you start your server.\r\nYou should then be able to connect using rcon client. Available commands are :\r\ndisplay_all_clients -> Display the list of connected clients with their Id\r\nkick CLIENT_ID -> Kick the client with Id CLIENT_ID\r\nkick CLIENT_PSEUDO -> Kick the client with pseudo CLIENT_PSEUDO (CLIENT_PSEUDO can be a part of his real pseudo)\r\nban CLIENT_ID DELAY_IN_HOUR -> Ban the player with Id CLIENT_ID for DELAY_IN_HOUR hours\r\nban CLIENT_PSEUDO DELAY_IN_HOUR -> Ban the player with pseudo CLIENT_PSEUDO for DELAY_IN_HOUR hours (CLIENT_PSEUDO can be a part of his real pseudo)\r\nunban CLIENT_ID -> Unban the player with Id CLIENT_ID\r\nsetsvar VARIABLE_NAME VARIABLE_VALUE -> Allow you to change one of the settings of the server (have a look at variables.ini)\r\n\r\n- You can have a look at the admins.ini file to add some admins to your server\r\nEOF\r\n\r\ncat <<EOF > \/mnt\/server\/banned_clients.ini\r\n; This file contains the list of the banned user\r\n; Its lines should be like :\r\n; 120487=1373993738\r\n; where 120487 is the client Id of the banned player and 1373993738 is the end date of the ban stored using Unix time (http:\/\/en.wikipedia.org\/wiki\/Unix_time)\r\n; If the end date is 0, it means that the player is banned forever\r\nEOF\r\n\r\ncat <<EOF > \/mnt\/server\/admins.ini\r\n; This file contains the list of the admins\r\n;\r\n; Its lines should be like :\r\n; 120487=\"abcdefghi
|
||
|
"container": "alpine",
|
||
|
"entrypoint": "ash"
|
||
|
}
|
||
|
},
|
||
|
"variables": [
|
||
|
{
|
||
|
"name": "Server Name",
|
||
|
"description": "The server name shown in matchmaking",
|
||
|
"env_variable": "SRV_NAME",
|
||
|
"default_value": "Wargame Server",
|
||
|
"user_viewable": true,
|
||
|
"user_editable": true,
|
||
|
"rules": "required|string"
|
||
|
},
|
||
|
{
|
||
|
"name": "Login",
|
||
|
"description": "Username provided to Eugen when requesting an API key",
|
||
|
"env_variable": "SRV_LOGIN",
|
||
|
"default_value": "",
|
||
|
"user_viewable": true,
|
||
|
"user_editable": true,
|
||
|
"rules": "required|string"
|
||
|
},
|
||
|
{
|
||
|
"name": "API Key",
|
||
|
"description": "API Key provided by Eugen. Send an email to \"eugsupport@eugen.fr\" containing your EugNet login, E-Mail used to register, and Wargame CD key to receive one.",
|
||
|
"env_variable": "SRV_APIKEY",
|
||
|
"default_value": "",
|
||
|
"user_viewable": true,
|
||
|
"user_editable": true,
|
||
|
"rules": "required|string"
|
||
|
},
|
||
|
{
|
||
|
"name": "RCon Password",
|
||
|
"description": "Password used to connect to server RCon",
|
||
|
"env_variable": "SRV_RCON",
|
||
|
"default_value": "",
|
||
|
"user_viewable": true,
|
||
|
"user_editable": true,
|
||
|
"rules": "required|string"
|
||
|
},
|
||
|
{
|
||
|
"name": "RCon port",
|
||
|
"description": "Port used to connect to server RCon",
|
||
|
"env_variable": "SRV_RCON_PORT",
|
||
|
"default_value": "",
|
||
|
"user_viewable": true,
|
||
|
"user_editable": false,
|
||
|
"rules": "required|integer|min:1"
|
||
|
},
|
||
|
{
|
||
|
"name": "Matchmaking server IP address",
|
||
|
"description": "IP Address to Eugen Matchmaking server",
|
||
|
"env_variable": "SRV_MMS_IP",
|
||
|
"default_value": "178.32.126.73",
|
||
|
"user_viewable": true,
|
||
|
"user_editable": false,
|
||
|
"rules": "required|ip"
|
||
|
},
|
||
|
{
|
||
|
"name": "Matchmaking server port",
|
||
|
"description": "Port used to connect to Eugen Matchmaking server",
|
||
|
"env_variable": "SRV_MMS_PORT",
|
||
|
"default_value": "10002",
|
||
|
"user_viewable": true,
|
||
|
"user_editable": false,
|
||
|
"rules": "required|integer|min:1"
|
||
|
}
|
||
|
]
|
||
|
}
|