Various updates

- Server name now changeable
- Additional settings added to UI and default config
- RCON enabled after installation
This commit is contained in:
Greelan 2022-01-27 15:34:07 +11:00
parent 06dcafb6ac
commit 16a21eb736
4 changed files with 103 additions and 15 deletions

View File

@ -19,14 +19,14 @@ App.ExecutableLinux=1110390/Unturned_Headless.x86_64
App.WorkingDir=1110390 App.WorkingDir=1110390
App.LinuxCommandLineArgs= App.LinuxCommandLineArgs=
App.WindowsCommandLineArgs= App.WindowsCommandLineArgs=
App.CommandLineArgs={{$PlatformArgs}} -batchmode -nographics +{{ServerType}}/UnturnedServer {{$FormattedArgs}} App.CommandLineArgs={{$PlatformArgs}} -batchmode -nographics +{{ServerType}}/{{ServerName}} {{$FormattedArgs}}
App.AppSettings={} App.AppSettings={}
App.EnvironmentVariables={"LD_LIBRARY_PATH":"./linux64:%LD_LIBRARY_PATH%:./Unturned_Headless_Data/Plugins/x86_64/","SteamAppId":"304930"} App.EnvironmentVariables={"LD_LIBRARY_PATH":"./linux64:%LD_LIBRARY_PATH%:./Unturned_Headless_Data/Plugins/x86_64/","SteamAppId":"304930"}
App.CommandLineParameterFormat=-{0}/{1} App.CommandLineParameterFormat=-{0}/{1}
App.CommandLineParameterDelimiter= App.CommandLineParameterDelimiter=
App.ExitMethod=String App.ExitMethod=String
App.ExitTimeout=30 App.ExitTimeout=30
App.ExitString=/shutdown App.ExitString=shutdown
App.ExitFile=app_exit.lck App.ExitFile=app_exit.lck
App.HasWriteableConsole=True App.HasWriteableConsole=True
App.HasReadableConsole=True App.HasReadableConsole=True
@ -43,7 +43,7 @@ App.RemoteAdminPassword=Password123
App.AdminMethod=TelnetRCON App.AdminMethod=TelnetRCON
App.RCONConnectDelaySeconds=5 App.RCONConnectDelaySeconds=5
App.RCONConnectRetrySeconds=5 App.RCONConnectRetrySeconds=5
App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":"All","UpdateSource":"SteamCMD","UpdateSourceData":"1110390"},{"UpdateStageName":"Config File Download","UpdateSourcePlatform":"All","UpdateSource":"FetchURL","UpdateSourceData":"https://raw.githubusercontent.com/Greelan/AMPTemplates/unturned/unturnedconfigfile.dat","UpdateSourceTarget":"../","OverwriteExistingFiles":true},{"UpdateStageName":"Config File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Servers/UnturnedServer/Server/Commands.dat","UpdateSourceArgs":"./unturnedconfigfile.dat","OverwriteExistingFiles":false},{"UpdateStageName":"Rocket Directory Creation","UpdateSourcePlatform":"All","UpdateSource":"CreateDirectory","UpdateSourceArgs":"./U3DS/1110390/Modules/Rocket.Unturned"},{"UpdateStageName":"First Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/English.dat","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/English.dat","OverwriteExistingFiles":true},{"UpdateStageName":"Second Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.API.dll","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.API.dll","OverwriteExistingFiles":true},{"UpdateStageName":"Third Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.Core.dll","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.Core.dll","OverwriteExistingFiles":true},{"UpdateStageName":"Fourth Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.Unturned.dll","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.Unturned.dll","OverwriteExistingFiles":true},{"UpdateStageName":"Fifth Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.Unturned.module","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.Unturned.module","OverwriteExistingFiles":true},{"UpdateStageName":"Steam Directory Creation","UpdateSourcePlatform":"Linux","UpdateSource":"CreateDirectory","UpdateSourceArgs":"./U3DS/1110390/Unturned_Headless_Data/Plugins/x86_64"},{"UpdateStageName":"Steamclient Copy","UpdateSourcePlatform":"Linux","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Unturned_Headless_Data/Plugins/x86_64/steamclient.so","UpdateSourceArgs":"./U3DS/1110390/linux64/steamclient.so","OverwriteExistingFiles":true}] App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":"All","UpdateSource":"SteamCMD","UpdateSourceData":"1110390"},{"UpdateStageName":"Config File Download","UpdateSourcePlatform":"All","UpdateSource":"FetchURL","UpdateSourceData":"https://raw.githubusercontent.com/Greelan/AMPTemplates/unturned/unturnedconfigfile.dat","UpdateSourceTarget":"../","OverwriteExistingFiles":true},{"UpdateStageName":"Config Directory Creation","UpdateSourcePlatform":"All","UpdateSource":"CreateDirectory","UpdateSourceArgs":"./U3DS/1110390/Servers/{{ServerName}}/Server"},{"UpdateStageName":"Config File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Servers/{{ServerName}}/Server/Commands.dat","UpdateSourceArgs":"./unturnedconfigfile.dat","OverwriteExistingFiles":false},{"UpdateStageName":"Rocket Directory Creation","UpdateSourcePlatform":"All","UpdateSource":"CreateDirectory","UpdateSourceArgs":"./U3DS/1110390/Modules/Rocket.Unturned"},{"UpdateStageName":"First Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/English.dat","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/English.dat","OverwriteExistingFiles":true},{"UpdateStageName":"Second Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.API.dll","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.API.dll","OverwriteExistingFiles":true},{"UpdateStageName":"Third Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.Core.dll","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.Core.dll","OverwriteExistingFiles":true},{"UpdateStageName":"Fourth Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.Unturned.dll","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.Unturned.dll","OverwriteExistingFiles":true},{"UpdateStageName":"Fifth Rocket File Copy","UpdateSourcePlatform":"All","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Modules/Rocket.Unturned/Rocket.Unturned.module","UpdateSourceArgs":"./U3DS/1110390/Extras/Rocket.Unturned/Rocket.Unturned.module","OverwriteExistingFiles":true},{"UpdateStageName":"Steam Directory Creation","UpdateSourcePlatform":"Linux","UpdateSource":"CreateDirectory","UpdateSourceArgs":"./U3DS/1110390/Unturned_Headless_Data/Plugins/x86_64"},{"UpdateStageName":"Steamclient Copy","UpdateSourcePlatform":"Linux","UpdateSource":"CopyFilePath","UpdateSourceData":"./U3DS/1110390/Unturned_Headless_Data/Plugins/x86_64/steamclient.so","UpdateSourceArgs":"./U3DS/1110390/linux64/steamclient.so","OverwriteExistingFiles":true}]
App.Compatibility=None App.Compatibility=None
App.SteamUpdateAnonymousLogin=True App.SteamUpdateAnonymousLogin=True
App.SteamForceLoginPrompt=False App.SteamForceLoginPrompt=False

View File

@ -1,15 +1,54 @@
[ [
{ {
"DisplayName": "Server Port (REQUIRED)", "DisplayName": "Server Port",
"Category": "Server Settings", "Category": "Server Settings",
"Description": "Must match Application Port 1 from ADS Edit Port menu", "Description": "",
"Keywords": "server port", "Keywords": "",
"FieldName": "Port", "FieldName": "$ApplicationPort1",
"InputType": "number", "InputType": "number",
"IsFlagArgument": false, "IsFlagArgument": false,
"Hidden": true,
"ParamFieldName": "Port", "ParamFieldName": "Port",
"IncludeInCommandLine": false, "IncludeInCommandLine": false,
"DefaultValue": "0" "DefaultValue": "27015"
},
{
"DisplayName": "Enable RCON",
"Category": "Server Settings",
"Description": "",
"Keywords": "",
"FieldName": "RCONEnabled",
"InputType": "number",
"IsFlagArgument": false,
"Hidden": true,
"ParamFieldName": "/RocketSettings/RCON/@Enabled",
"IncludeInCommandLine": false,
"DefaultValue": "true"
},
{
"DisplayName": "RCON Port",
"Category": "Server Settings",
"Description": "",
"Keywords": "",
"FieldName": "$RemoteAdminPort",
"InputType": "number",
"IsFlagArgument": false,
"Hidden": true,
"ParamFieldName": "/RocketSettings/RCON/@Port",
"IncludeInCommandLine": false,
"DefaultValue": "27017"
},
{
"DisplayName": "Server Name",
"Category": "Server Settings",
"Description": "WARNING: You MUST do first-time server setup (update the server and start and stop it once) after changing the name for correct configuration",
"Keywords": "name",
"FieldName": "ServerName",
"InputType": "text",
"IsFlagArgument": false,
"ParamFieldName": "",
"IncludeInCommandLine": false,
"DefaultValue": "UnturnedServer"
}, },
{ {
"DisplayName": "Server Type", "DisplayName": "Server Type",
@ -39,6 +78,18 @@
"IncludeInCommandLine": false, "IncludeInCommandLine": false,
"DefaultValue": "Password123" "DefaultValue": "Password123"
}, },
{
"DisplayName": "RCON Password",
"Category": "Server Settings",
"Description": "Password to connect to RCON. Change this after installing the server",
"Keywords": "RCON,password",
"FieldName": "$RemoteAdminPassword",
"InputType": "number",
"IsFlagArgument": false,
"ParamFieldName": "/RocketSettings/RCON/@Password",
"IncludeInCommandLine": false,
"DefaultValue": "Password123"
},
{ {
"DisplayName": "Owner", "DisplayName": "Owner",
"Category": "Server Settings", "Category": "Server Settings",
@ -51,6 +102,18 @@
"IncludeInCommandLine": false, "IncludeInCommandLine": false,
"DefaultValue": "" "DefaultValue": ""
}, },
{
"DisplayName": "GSLT",
"Category": "Server Settings",
"Description": "Sets the [Game Server Login Token](https://steamcommunity.com/dev/managegameservers) for the server. Required for the server to appear in the server list. Use Steam App ID 304930",
"Keywords": "GSLT,token",
"FieldName": "GSLT",
"InputType": "number",
"IsFlagArgument": false,
"ParamFieldName": "GSLT",
"IncludeInCommandLine": false,
"DefaultValue": ""
},
{ {
"DisplayName": "Welcome Message", "DisplayName": "Welcome Message",
"Category": "Server Settings", "Category": "Server Settings",
@ -73,7 +136,8 @@
"IsFlagArgument": false, "IsFlagArgument": false,
"ParamFieldName": "Maxplayers", "ParamFieldName": "Maxplayers",
"IncludeInCommandLine": false, "IncludeInCommandLine": false,
"DefaultValue": "10" "DefaultValue": "10",
"suffix": "players"
}, },
{ {
"DisplayName": "Map", "DisplayName": "Map",
@ -118,8 +182,25 @@
"EnumValues": { "EnumValues": {
"First": "First person only", "First": "First person only",
"Third": "Third person only", "Third": "Third person only",
"Vehicle": "Third person in vehicle only", "Both": "First and third person allowed",
"Both": "First and third person allowed" "Vehicle": "Third person in vehicle only"
}
},
{
"DisplayName": "Weather",
"Category": "Server Settings",
"Description": "Sets the weather",
"Keywords": "weather",
"FieldName": "Weather",
"InputType": "enum",
"IsFlagArgument": false,
"ParamFieldName": "Weather",
"IncludeInCommandLine": false,
"DefaultValue": "None",
"EnumValues": {
"None": "None",
"Storm": "Storm",
"Blizzard": "Blizzard"
} }
}, },
{ {
@ -132,7 +213,7 @@
"IsFlagArgument": false, "IsFlagArgument": false,
"ParamFieldName": "Cycle", "ParamFieldName": "Cycle",
"IncludeInCommandLine": false, "IncludeInCommandLine": false,
"DefaultValue": "43200", "DefaultValue": "3600",
"suffix": "seconds" "suffix": "seconds"
}, },
{ {

View File

@ -1,11 +1,13 @@
Port 0 Port 27015
Password Password123 Password Password123
Owner Owner
GSLT
Welcome Welcome to Unturned. Hosted using AMP by CubeCoders Welcome Welcome to Unturned. Hosted using AMP by CubeCoders
Maxplayers 10 Maxplayers 10
Map PEI Map PEI
Mode Normal Mode Normal
Perspective Both Perspective Both
Cycle 43200 Weather None
Cycle 3600
Chatrate 0 Chatrate 0
Timeout 500 Timeout 500

View File

@ -1,9 +1,14 @@
[ [
{ {
"ConfigFile": "Servers/UnturnedServer/Server/Commands.dat", "ConfigFile": "Servers/{{ServerName}}/Server/Commands.dat",
"AutoMap": true, "AutoMap": true,
"ConfigType": "kvp", "ConfigType": "kvp",
"ConfigFormat": "{0} {1}", "ConfigFormat": "{0} {1}",
"ConfigFormatRegex": "^(?<key>.+?) (?<value>.*?)$" "ConfigFormatRegex": "^(?<key>.+?) (?<value>.*?)$"
},
{
"ConfigFile": "Servers/{{ServerName}}/Rocket/Rocket.config.xml",
"AutoMap": true,
"ConfigType": "xml"
} }
] ]