mirror of
https://github.com/parkervcp/eggs.git
synced 2024-12-05 07:22:57 +08:00
95 lines
27 KiB
JSON
95 lines
27 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-17T11:25:43-05:00",
|
||
|
"name": "Steel Division 2",
|
||
|
"author": "f.falk@pm.me",
|
||
|
"description": "Steel Division 2 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.",
|
||
|
"features": null,
|
||
|
"images": [
|
||
|
"quay.io\/parkervcp\/pterodactyl-images:base_debian"
|
||
|
],
|
||
|
"file_denylist": [],
|
||
|
"startup": ".\/steeldiv2-server -ip {{SERVER_IP}} -listenport {{SERVER_PORT}} -port {{SERVER_PORT}} -ipmms {{SRV_MMS_IP}} -portmms {{SRV_MMS_PORT}} -rcon_password {{SRV_RCON}} -rcon_port {{SRV_RCON_PORT}} -chat_log_file chat.txt",
|
||
|
"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\": \"Connection to match making server validated\"\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\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\/steeldivision2:latest\r\nmkdir 'img-files'\r\nfind -type f -name layer.tar -exec tar -zxf {} --directory 'img-files' \\;\r\ncp 'img-files\/server\/steeldiv2-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# Generate config files\r\n# Comments copied from https:\/\/eugensystems.com\/downloads\/wargame3_server.tar.bz2\r\ncat <<EOF > \/mnt\/server\/params_for_ai.json\r\n{\r\n \"0\": [\r\n {\r\n \"name\": \"Deck name in the lobby\",\r\n \"deckContent\": \"JSGssa0xrjGvEa4BrkGuUa3xrGKtAq2RrWGvQq6CrnGr4a7hrSGu0a6RrzGtUa3RrmKt4azhrJGsIaxRrKGsAavxrUE=\",\r\n \"iaLevel\": 1\r\n }\r\n ],\r\n \"1\": [\r\n {\r\n \"name\": \"Deck name in the lobby\",\r\n \"deckContent\": \"Gx6Bgbehg4GDsYFxgsGD8YJBghGA4YSRhKG8YYMhgMGDAoNyhCGE0YRSg5GBoYJhgTGCsYKhgxGFMoKShVI=\",\r\n \"iaLevel\": 2\r\n }\r\n ]\r\n}\r\nEOF\r\ncat <<EOF > \/mnt\/server\/install.txt\r\nSteelDiv2 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 steeldiv2-server with command line : .\/steeldiv2-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 me
|
||
|
"container": "alpine",
|
||
|
"entrypoint": "ash"
|
||
|
}
|
||
|
},
|
||
|
"variables": [
|
||
|
{
|
||
|
"name": "Server Name",
|
||
|
"description": "The server name shown in matchmaking",
|
||
|
"env_variable": "SRV_NAME",
|
||
|
"default_value": "Steel Division 2 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 Steel Division 2 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"
|
||
|
}
|
||
|
]
|
||
|
}
|