Skip to content

Commit

Permalink
Ark template updates (#259)
Browse files Browse the repository at this point in the history
* Update ark.json

variables added/changed:
- battleye options added to disable Battleye anti-cheat;
- mapname changed from string to options - all currently-supported maps included;
- serverpassword string added to allow private servers.

run command updated to include the two new variables.

* Update ark-docker.json

variables added/changed:
- battleye options added to disable Battleye anti-cheat;
- mapname changed from string to options - all currently-supported maps included;
- serverpassword string added to allow private servers.

run command updated to include the two new variables.
  • Loading branch information
knoidable authored Feb 21, 2024
1 parent 5aeaa74 commit 370dd42
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 7 deletions.
58 changes: 54 additions & 4 deletions ark/ark-docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"display": "Session Name",
"internal": false
},
"serverpassword": {
"type": "string",
"desc": "Password to join the server",
"display": "Server Password",
"value": ""
},
"serveradminpassword": {
"value": "password",
"required": true,
Expand Down Expand Up @@ -48,12 +54,56 @@
"type": "integer"
},
"mapname": {
"type": "option",
"desc": "Name of the map",
"display": "Map Name",
"internal": false,
"required": true,
"value": "TheIsland"
"value": "TheIsland",
"options": [
{
"value": "TheIsland",
"display": "The Island"
},
{
"value": "TheCenter",
"display": "The Center"
},
{
"value": "ScorchedEarth_P",
"display": "Scorched Earth"
},
{
"value": "Ragnarok",
"display": "Ragnarok"
},
{
"value": "Aberration_P",
"display": "Aberration"
},
{
"value": "Extinction",
"display": "Extinction"
},
{
"value": "Crystalisles",
"display": "Crystal Isles"
}
]
},
"battleye": {
"type": "option",
"display": "BattlEye Anti-Cheat",
"options": [
{
"value": "-NoBattlEye",
"display": "No"
},
{
"value": "",
"display": "Yes"
}
]
},
"exclusive": {
"desc": "Set to yes to only permit friends, leave no for public",
"display": "Exclusive?",
Expand Down Expand Up @@ -82,7 +132,7 @@
}
],
"run": {
"command": "./ShooterGame/Binaries/Linux/ShooterGameServer ${mapname}?listen?SessionName=${sessionname}?ServerAdminPassword=${serveradminpassword}?MultiHome=${ip}?Port=${port}?QueryPort=${queryport}?MaxPlayers=${maxplayers} -server -log ${exclusive}",
"command": "./ShooterGame/Binaries/Linux/ShooterGameServer ${mapname}?listen?SessionName=${sessionname}?ServerPassword=${serverpassword}?ServerAdminPassword=${serveradminpassword}?MultiHome=${ip}?Port=${port}?QueryPort=${queryport}?MaxPlayers=${maxplayers} -server -log ${exclusive} ${battleye}",
"stopCode": 2
},
"environment": {
Expand All @@ -92,4 +142,4 @@
"requirements": {
"arch": "amd64"
}
}
}
56 changes: 53 additions & 3 deletions ark/ark.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"display": "Session Name",
"internal": false
},
"serverpassword": {
"type": "string",
"desc": "Password to join the server",
"display": "Server Password",
"value": ""
},
"serveradminpassword": {
"value": "password",
"required": true,
Expand Down Expand Up @@ -48,11 +54,55 @@
"type": "integer"
},
"mapname": {
"type": "option",
"desc": "Name of the map",
"display": "Map Name",
"internal": false,
"required": true,
"value": "TheIsland"
"value": "TheIsland",
"options": [
{
"value": "TheIsland",
"display": "The Island"
},
{
"value": "TheCenter",
"display": "The Center"
},
{
"value": "ScorchedEarth_P",
"display": "Scorched Earth"
},
{
"value": "Ragnarok",
"display": "Ragnarok"
},
{
"value": "Aberration_P",
"display": "Aberration"
},
{
"value": "Extinction",
"display": "Extinction"
},
{
"value": "Crystalisles",
"display": "Crystal Isles"
}
]
},
"battleye": {
"type": "option",
"display": "BattlEye Anti-Cheat",
"options": [
{
"value": "-NoBattlEye",
"display": "No"
},
{
"value": "",
"display": "Yes"
}
]
},
"exclusive": {
"desc": "Set to yes to only permit friends, leave no for public",
Expand Down Expand Up @@ -86,7 +136,7 @@
}
],
"run": {
"command": "./ShooterGame/Binaries/Linux/ShooterGameServer ${mapname}?listen?SessionName=${sessionname}?ServerAdminPassword=${serveradminpassword}?MultiHome=${ip}?Port=${port}?QueryPort=${queryport}?MaxPlayers=${maxplayers} -server -log ${exclusive}",
"command": "./ShooterGame/Binaries/Linux/ShooterGameServer ${mapname}?listen?SessionName=${sessionname}?ServerPassword=${serverpassword}?ServerAdminPassword=${serveradminpassword}?MultiHome=${ip}?Port=${port}?QueryPort=${queryport}?MaxPlayers=${maxplayers} -server -log ${exclusive} ${battleye}",
"stopCode": 2
},
"environment": {
Expand Down

0 comments on commit 370dd42

Please sign in to comment.