diff --git a/necesse.kvp b/necesse.kvp index bfa5905..c526cdf 100644 --- a/necesse.kvp +++ b/necesse.kvp @@ -20,6 +20,7 @@ Meta.NoCommercialUsage=False App.DisplayName=Necesse App.RootDir=./necesse/ App.BaseDirectory=./necesse/1169370/ +App.SteamWorkshopDownloadLocation={{$FullBaseDir}}workshop App.ExecutableWin=1169370\jre\bin\java.exe App.ExecutableLinux=1169370/jre/bin/java App.WorkingDir=1169370 @@ -41,10 +42,10 @@ App.SupportsLiveSettingsChanges=False App.LiveSettingChangeCommandFormat=set {0} "{1}" App.ApplicationIPBinding=0.0.0.0 App.Ports=[{"Protocol":"UDP","Port":14159,"Ref":"GamePort","Name":"Game Port","Description":"Port for game traffic"}] -App.AdminPortRef= +App.AdminPortRef=0 App.PrimaryApplicationPortRef=GamePort App.UniversalSleepApplicationUDPPortRef=GamePort -App.UniversalSleepSteamQueryPortRef= +App.UniversalSleepSteamQueryPortRef=0 App.MaxUsers=20 App.UseRandomAdminPassword=False App.RemoteAdminPassword=Password123 @@ -55,7 +56,7 @@ App.RCONConnectRetrySeconds=5 App.RCONHeartbeatMinutes=0 App.RCONHeartbeatCommand=ping App.TelnetLoginFormat={0} -App.UpdateSources=[{"UpdateStageName":"SteamCMD Download","UpdateSourcePlatform":"All","UpdateSource":"SteamCMD","UpdateSourceData":"1169370","UpdateSourceArgs":"1169040"},{"UpdateStageName":"Config Directory Creation","UpdateSourcePlatform":"All","UpdateSource":"CreateDirectory","UpdateSourceArgs":"./necesse/1169370/cfg"},{"UpdateStageName": "Config Template Download","UpdateSourcePlatform": "All", "UpdateSource": "FetchURL", "UpdateSourceData": "https://github.com/CubeCoders/AMPTemplates/raw/main/necesseserverconfig.cfg", "UpdateSourceTarget": "../", "OverwriteExistingFiles": "true"}] +App.UpdateSources=@IncludeJson[necesseupdates.json] App.Compatibility=None App.SteamUpdateAnonymousLogin=True App.SteamForceLoginPrompt=False diff --git a/necesseconfig.json b/necesseconfig.json index b54b36c..48b4c80 100644 --- a/necesseconfig.json +++ b/necesseconfig.json @@ -129,5 +129,15 @@ "IncludeInCommandLine": false, "DefaultValue": "Welcome to Necesse", "EnumValues": {} + }, + { + "DisplayName": "Mods", + "Category": "Server Settings", + "Description": "Mods can be installed via \"Steam workshop items\" in the SteamCMD and Updates tab. Update the server to download the mods to the 'workshop' directory. Then copy each relevant jar file to the 'mods' directory to load them on server start", + "Keywords": "mods,workshop", + "FieldName": "mods", + "InputType": "hidden", + "ParamFieldName": "mods", + "EnumValues": {} } ] \ No newline at end of file diff --git a/necesseupdates.json b/necesseupdates.json new file mode 100644 index 0000000..fcb771e --- /dev/null +++ b/necesseupdates.json @@ -0,0 +1,30 @@ +[ + { + "UpdateStageName":"SteamCMD Download", + "UpdateSourcePlatform":"All", + "UpdateSource":"SteamCMD", + "UpdateSourceData":"1169370", + "UpdateSourceArgs":"1169040" + }, + { + "UpdateStageName":"Config Directory Creation", + "UpdateSourcePlatform":"All", + "UpdateSource":"CreateDirectory", + "UpdateSourceArgs":"{{$FullBaseDir}}cfg" + }, + { + "UpdateStageName":"Mods Directory Creation", + "UpdateSourcePlatform":"All", + "UpdateSource":"CreateDirectory", + "UpdateSourceArgs":"{{$FullBaseDir}}mods", + "OverwriteExistingFiles":false + }, + { + "UpdateStageName":"Config Template Download", + "UpdateSourcePlatform":"All", + "UpdateSource":"FetchURL", + "UpdateSourceData":"https://github.com/CubeCoders/AMPTemplates/raw/main/necesseserverconfig.cfg", + "UpdateSourceTarget":"../", + "OverwriteExistingFiles":"true" + } +] \ No newline at end of file