Longvinter: settings updates (#246)

This commit is contained in:
Greelan 2023-04-29 09:36:17 +10:00 committed by GitHub
parent 6e7749ce2c
commit 10fa4ea55c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 109 additions and 7 deletions

View File

@ -14,6 +14,7 @@ Meta.SpecificDockerImage=
Meta.DockerRequired=False
Meta.ContainerPolicy=RecommendedOnLinux
Meta.ContainerPolicyReason=The dependency git-lfs is required for the server to be successfully downloaded on Linux. Using a container avoids the need to install this dependency on the host.
Meta.ExtraSetupStepsURI=https://discourse.cubecoders.com/docs?topic=2200?utm_source=ampcreate&utm_content=longvinter
Meta.Prerequsites=[]
Meta.ConfigReleaseState=NotSpecified
App.DisplayName=Longvinter
@ -22,13 +23,13 @@ App.BaseDirectory=./longvinter/1639880/
App.ExecutableWin=1639880\Longvinter\Binaries\Win64\LongvinterServer-Win64-Shipping.exe
App.ExecutableLinux=1639880/Longvinter/Binaries/Linux/LongvinterServer-Linux-Shipping
App.WorkingDir=1639880
App.LinuxCommandLineArgs=
App.WindowsCommandLineArgs=-FullStdOutLogOutput
App.CommandLineArgs=Longvinter -Port={{$GamePort}} -QueryPort={{$QueryPort}} {{$FormattedArgs}} -stdout {{$PlatformArgs}}
App.LinuxCommandLineArgs=Longvinter -stdout
App.WindowsCommandLineArgs=Longvinter -stdout -FullStdOutLogOutput
App.CommandLineArgs={{$PlatformArgs}} -Port={{$GamePort}} -QueryPort={{$QueryPort}} -MultiHome={{$ApplicationIPBinding}} {{$FormattedArgs}}
App.UseLinuxIOREDIR=False
App.AppSettings={}
App.EnvironmentVariables={"LD_LIBRARY_PATH":"{{$FullBaseDir}}linux64:%LD_LIBRARY_PATH%","SteamAppId":"1635450"}
App.CommandLineParameterFormat=-{0} "{1}"
App.CommandLineParameterFormat=-{0}={1}
App.CommandLineParameterDelimiter=
App.ExitMethod=OS_CLOSE
App.ExitTimeout=30
@ -54,7 +55,7 @@ App.RCONConnectRetrySeconds=5
App.RCONHeartbeatMinutes=0
App.RCONHeartbeatCommand=ping
App.TelnetLoginFormat={0}
App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":"Windows","UpdateSource":"SteamCMD","UpdateSourceData":"1639880","UpdateSourceArgs":"1635450"},{"UpdateStageName":"Clone GitHub Repo","UpdateSourcePlatform":"Linux","UpdateSource":"GitRepo","UpdateSourceData":"https://github.com/Uuvana-Studios/longvinter-linux-server.git","UpdateSourceTarget":"{{$FullBaseDir}}"},{"UpdateStageName":"Set Binary Executable Flag","UpdateSourcePlatform":"Linux","UpdateSource":"SetExecutableFlag","UpdateSourceArgs":"{{$FullBaseDir}}Longvinter/Binaries/Linux/LongvinterServer-Linux-Shipping"},{"UpdateStageName":"SteamCMD Component Download","UpdateSourcePlatform":"Linux","UpdateSource":"SteamCMD","UpdateSourceData":"1007","UpdateSourceTarget":"{{$FullBaseDir}}"},{"UpdateStageName":"Server Config File Download","UpdateSourcePlatform":"All","UpdateSource":"FetchURL","UpdateSourceData":"https://raw.githubusercontent.com/CubeCoders/AMPTemplates/main/longvintergame.ini","UpdateSourceTarget":"{{$FullInstanceDir}}","OverwriteExistingFiles":true},{"UpdateStageName":"Game Config Copy","UpdateSourcePlatform":"Windows","UpdateSource":"CopyFilePath","UpdateSourceData":"{{$FullBaseDir}}Longvinter/Saved/Config/WindowsServer/Game.ini","UpdateSourceArgs":"{{$FullInstanceDir}}longvintergame.ini","OverwriteExistingFiles":false},{"UpdateStageName":"Game Config Copy","UpdateSourcePlatform":"Linux","UpdateSource":"CopyFilePath","UpdateSourceData":"{{$FullBaseDir}}Longvinter/Saved/Config/LinuxServer/Game.ini","UpdateSourceArgs":"{{$FullInstanceDir}}longvintergame.ini","OverwriteExistingFiles":false}]
App.UpdateSources=@IncludeJson[longvinterupdates.json]
App.Compatibility=None
App.SteamUpdateAnonymousLogin=True
App.SteamForceLoginPrompt=False

View File

@ -20,9 +20,23 @@
"FieldName":"serverTag",
"InputType":"text",
"IsFlagArgument":false,
"ParamFieldName":"/game/blueprints/server/gi_advancedsessions.gi_advancedsessions_c.Tag",
"IncludeInCommandLine":false,
"DefaultValue":"none",
"EnumValues":{}
},
{
"DisplayName":"Server Tag",
"Category":"Server Settings",
"Description":"Setting for legacy configs",
"Keywords":"",
"FieldName":"serverTag",
"InputType":"text",
"Hidden":true,
"IsFlagArgument":false,
"ParamFieldName":"/game/blueprints/server/gi_advancedsessions.gi_advancedsessions_c.serverTag",
"IncludeInCommandLine":false,
"DefaultValue":"Default",
"DefaultValue":"none",
"EnumValues":{}
},
{
@ -108,6 +122,34 @@
"True":"true"
}
},
{
"DisplayName":"Enable Co-op",
"Category":"Server Settings",
"Description":"If enabled, players will spawn at the same location (as set under Co-op Spawn Location)",
"Keywords":"co-op,coop,coopplay,spawn",
"FieldName":"CoopPlay",
"InputType":"checkbox",
"IsFlagArgument":false,
"ParamFieldName":"/game/blueprints/server/gi_advancedsessions.gi_advancedsessions_c.CoopPlay",
"IncludeInCommandLine":false,
"DefaultValue":"false",
"EnumValues":{
"False":"false",
"True":"true"
}
},
{
"DisplayName":"Co-op Spawn Location",
"Category":"Server Settings",
"Description":"Sets the spawn point location for players if Co-op is enabled",
"Keywords":"co-op,coop,coopspawn,spawn,location",
"FieldName":"CoopSpawn",
"InputType":"number",
"IsFlagArgument":false,
"ParamFieldName":"/game/blueprints/server/gi_advancedsessions.gi_advancedsessions_c.CoopSpawn",
"IncludeInCommandLine":false,
"DefaultValue":"0"
},
{
"DisplayName":"Enable Tent Decay",
"Category":"Server Settings",
@ -136,5 +178,17 @@
"IncludeInCommandLine":false,
"DefaultValue":"2",
"Suffix":"tents"
},
{
"DisplayName":"Server IP Binding",
"Category":"Server Settings",
"Description":"If required, you can change the binding of the server by editing App.ApplicationIPBinding in GenericModule.kvp for the instance. Stop the instance (not just the server) first",
"Keywords":"ip,binding,localip,address,multihome",
"FieldName":"MultiHome",
"InputType":"hidden",
"IsFlagArgument":false,
"ParamFieldName":"MultiHome",
"IncludeInCommandLine":false,
"EnumValues":{}
}
]

View File

@ -1,10 +1,12 @@
[/game/blueprints/server/gi_advancedsessions.gi_advancedsessions_c]
ServerName=AMP Powered Longvinter Server
serverTag=Default
MaxPlayers=32
ServerMOTD=Welcome to Longvinter Island!
Password=
CommunityWebsite=
CoopPlay=false
CoopSpawn=0
Tag=none
[/game/blueprints/server/gm_longvinter.gm_longvinter_c]
AdminSteamID=

45
longvinterupdates.json Normal file
View File

@ -0,0 +1,45 @@
[
{
"UpdateStageName":"SteamCMD Download",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"SteamCMD",
"UpdateSourceData":"1639880",
"UpdateSourceArgs":"1635450"
},
{
"UpdateStageName":"Clone GitHub Repo",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"GitRepo",
"UpdateSourceData":"https://github.com/Uuvana-Studios/longvinter-linux-server.git",
"UpdateSourceTarget":"{{$FullBaseDir}}"
},
{
"UpdateStageName":"Set Binary Executable Flag",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"SetExecutableFlag",
"UpdateSourceArgs":"{{$FullBaseDir}}Longvinter/Binaries/Linux/LongvinterServer-Linux-Shipping"
},
{
"UpdateStageName":"SteamCMD Component Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"SteamCMD",
"UpdateSourceData":"1007",
"UpdateSourceTarget":"{{$FullBaseDir}}"
},
{
"UpdateStageName":"Server Config File Copy",
"UpdateSourcePlatform":"Windows",
"UpdateSource":"CopyFilePath",
"UpdateSourceData":"{{$FullBaseDir}}Longvinter/Saved/Config/WindowsServer/Game.ini",
"UpdateSourceArgs":"{{$FullBaseDir}}Longvinter/Saved/Config/WindowsServer/Game.ini.default",
"OverwriteExistingFiles":true
},
{
"UpdateStageName":"Server Config File Copy",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"CopyFilePath",
"UpdateSourceData":"{{$FullBaseDir}}Longvinter/Saved/Config/LinuxServer/Game.ini",
"UpdateSourceArgs":"{{$FullBaseDir}}Longvinter/Saved/Config/LinuxServer/Game.ini.default",
"OverwriteExistingFiles":true
}
]