Necesse: add mods functionality (#475)

This commit is contained in:
Greelan 2023-10-11 15:00:31 +11:00 committed by GitHub
parent c26b95890f
commit fa576ba69d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 44 additions and 3 deletions

View File

@ -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

View File

@ -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": {}
}
]

30
necesseupdates.json Normal file
View File

@ -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"
}
]