Add Wolfenstein: Enemy Territory (#463)

This commit is contained in:
Greelan 2023-10-11 17:09:53 +11:00 committed by GitHub
parent fa576ba69d
commit 0078bbdafa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1387 additions and 0 deletions

101
wolfenstein-et.kvp Normal file
View File

@ -0,0 +1,101 @@
Meta.DisplayName=Wolfenstein: Enemy Territory
Meta.Description=Wolfenstein: Enemy Territory Dedicated Server
Meta.OS=Windows, Linux
Meta.AarchSupport=NotSupported
Meta.Arch=x86_64
Meta.Author=Greelan
Meta.URL=https://www.splashdamage.com/games/wolfenstein-enemy-territory/
Meta.DisplayImageSource=steam:1873030
Meta.EndpointURIFormat=steam://connect/{0}
Meta.ConfigManifest=wolfenstein-etconfig.json
Meta.MetaConfigManifest=wolfenstein-etmetaconfig.json
Meta.ConfigRoot=wolfenstein-et.kvp
Meta.MinAMPVersion=2.4.6.4
Meta.SpecificDockerImage=cubecoders/ampbase:wine
Meta.DockerRequired=False
Meta.DockerBaseReadOnly=False
Meta.ContainerPolicy=RecommendedOnLinux, SupportedOnWindows
Meta.ContainerPolicyReason=The server requires Wine to run on Linux. Using a container avoids the need to install this dependency on the host.
Meta.ExtraSetupStepsURI=
Meta.Prerequsites=[]
Meta.ExtraContainerPackages=[]
Meta.ConfigReleaseState=NotSpecified
Meta.NoCommercialUsage=False
Meta.ConfigVersion=0.0.0.0
Meta.ReleaseNotes=
Meta.BreakingReleaseNotes=
App.DisplayName=Wolfenstein: Enemy Territory
App.RootDir=./wolfenstein-et/
App.BaseDirectory=./wolfenstein-et/1873030/
App.SteamWorkshopDownloadLocation=
App.ExecutableWin=1873030\etded.exe
App.ExecutableLinux=/usr/bin/wine
App.WorkingDir=1873030
App.LinuxCommandLineArgs="./etded.exe"
App.WindowsCommandLineArgs=
App.CommandLineArgs={{$PlatformArgs}} +set fs_homepath "{{$FullBaseDir}}" +set net_port {{$ServerPort}} +set net_ip {{$ApplicationIPBinding}} +set rconpassword "{{$RemoteAdminPassword}}" {{$FormattedArgs}} +exec server.cfg
App.UseLinuxIOREDIR=False
App.AppSettings={}
App.EnvironmentVariables={"LD_LIBRARY_PATH":"{{$FullBaseDir}}linux64:%LD_LIBRARY_PATH%","SteamAppId":"1873030","WINEPREFIX":"{{$FullRootDir}}.wine","WINEARCH":"win32","WINEDEBUG":"-all"}
App.CommandLineParameterFormat=+set {0} "{1}"
App.CommandLineParameterDelimiter=
App.ExitMethod=String
App.ExitTimeout=30
App.ExitString=quit
App.ExitFile=lock
App.HasWriteableConsole=True
App.HasReadableConsole=True
App.SupportsLiveSettingsChanges=False
App.LiveSettingChangeCommandFormat=set {0} "{1}"
App.ApplicationIPBinding=0.0.0.0
App.Ports=[{"Protocol":"UDP","Port":27960,"Ref":"ServerPort","Name":"Server Port","Description":"Port for game and RCON traffic"}]
App.AdminPortRef=ServerPort
App.PrimaryApplicationPortRef=ServerPort
App.UniversalSleepApplicationUDPPortRef=ServerPort
App.UniversalSleepSteamQueryPortRef=0
App.MaxUsers=20
App.UseRandomAdminPassword=True
App.PersistRandomPassword=True
App.RemoteAdminPassword=
App.AdminMethod=QuakeRCON
App.AdminLoginTransform=None
App.LoginTransformPrefix=
App.RCONConnectDelaySeconds=5
App.RCONConnectRetrySeconds=5
App.RCONHeartbeatMinutes=0
App.RCONHeartbeatCommand=ping
App.TelnetLoginFormat={0}
App.UpdateSources=@IncludeJson[wolfenstein-etupdates.json]
App.PreStartStages=[]
App.ForceUpdate=False
App.ForceUpdateReason=
App.Compatibility=None
App.SteamUpdateAnonymousLogin=False
App.SteamForceLoginPrompt=True
App.RapidStartup=False
App.MonitorChildProcess=True
App.DumpFullChildProcessTree=False
App.MonitorChildProcessWaitMs=100
App.MonitorChildProcessName=etded.exe
App.SupportsUniversalSleep=False
App.WakeupMode=Any
App.ApplicationReadyMode=RCONConnected
App.TemplateMatchRegex={{(\$?[\w]+)}}
Console.FilterMatchRegex=
Console.FilterMatchReplacement=
Console.ThrowawayMessageRegex=^(WARNING|ERROR): Shader.+$
Console.AppReadyRegex=^$
Console.UserJoinRegex=^$
Console.UserLeaveRegex=^$
Console.UserChatRegex=^$
Console.UpdateAvailableRegex=^\[\d\d:\d\d:\d\d\] \[INFO\] A new server update is available! v[\d\.]+.$
Console.MetricsRegex=
Console.SuppressLogAtStart=False
Console.ActivateLogRegex=
Console.UserActions={}
Limits.SleepMode=True
Limits.SleepOnStart=False
Limits.SleepDelayMinutes=5
Limits.DozeDelay=2
Limits.AutoRetryCount=5
Limits.SleepStartThresholdSeconds=25

1135
wolfenstein-etconfig.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
[
{
"ConfigFile":"etmain/server.cfg",
"AutoMap":true,
"ConfigType":"template",
"ConfigFileTemplate":"wolfenstein-et/AMP_server.cfg"
}
]

86
wolfenstein-etserver.cfg Normal file
View File

@ -0,0 +1,86 @@
// This file is controlled by AMP
// Configure any additional required settings in AMP's UI
{{UserSettings}}
set dedicated "{{dedicated}}"
set net_ip "{{net_ip}}"
set net_port "{{net_port}}"
set sv_maxclients "{{sv_maxclients}}"
set g_password "{{g_password}}"
set sv_privateclients "{{sv_privateclients}}"
set sv_privatepassword "{{sv_privatepassword}}"
set rconpassword "{{rconpassword}}"
set refereePassword "{{refereePassword}}"
set sv_maxRate "{{sv_maxRate}}"
set sv_dl_maxRate "{{sv_dl_maxRate}}"
set sv_allowDownload "{{sv_allowDownload}}"
set sv_wwwDownload "{{sv_wwwDownload}}"
set sv_wwwBaseURL "{{sv_wwwBaseURL}}"
set sv_wwwDlDisconnected "{{sv_wwwDlDisconnected}}"
set sv_wwwFallbackURL "{{sv_wwwFallbackURL}}"
set sv_hostname "{{sv_hostname}}"
set server_motd0 "{{server_motd0}}"
set server_motd1 "{{server_motd1}}"
set g_heavyWeaponRestriction "{{g_heavyWeaponRestriction}}"
set g_antilag "{{g_antilag}}"
set g_altStopwatchMode "{{g_altStopwatchMode}}"
set g_autofireteams "{{g_autofireteams}}"
set g_complaintlimit "{{g_complaintlimit}}"
set g_ipcomplaintlimit "{{g_ipcomplaintlimit}}"
set g_fastres "{{g_fastres}}"
set g_friendlyFire "{{g_friendlyFire}}"
set g_minGameClients "{{g_minGameClients}}"
set g_alliedmaxlives "{{g_alliedmaxlives}}"
set g_axismaxlives "{{g_axismaxlives}}"
set g_teamforcebalance "{{g_teamforcebalance}}"
set g_noTeamSwitching "{{g_noTeamSwitching}}"
set g_voiceChatsAllowed "{{g_voiceChatsAllowed}}"
set g_doWarmup "{{g_doWarmup}}"
set g_warmup "{{g_warmup}}"
set g_spectatorInactivity "{{g_spectatorInactivity}}"
set sv_floodProtect "{{sv_floodProtect}}"
set sv_pure "{{sv_pure}}"
set sv_minping "{{sv_minping}}"
set sv_maxping "{{sv_maxping}}"
set match_latejoin "{{match_latejoin}}"
set match_minplayers "{{match_minplayers}}"
set match_mutespecs "{{match_mutespecs}}"
set match_readypercent "{{match_readypercent}}"
set match_timeoutcount "{{match_timeoutcount}}"
set match_warmupDamage "{{match_warmupDamage}}"
set team_maxplayers "{{team_maxplayers}}"
set team_nocontrols "{{team_nocontrols}}"
set pmove_fixed "{{pmove_fixed}}"
set pmove_msec "{{pmove_msec}}"
set g_lms_teamForceBalance "{{g_lms_teamForceBalance}}"
set g_lms_roundlimit "{{g_lms_roundlimit}}"
set g_lms_matchlimit "{{g_lms_matchlimit}}"
set g_lms_lockTeams "{{g_lms_lockTeams}}
set g_lms_followTeamOnly "{{g_lms_followTeamOnly}}"
set g_allowVote "{{g_allowVote}}"
set vote_limit "{{vote_limit}}"
set vote_percent "{{vote_percent}}"
set vote_allow_comp "{{vote_allow_comp}}"
set vote_allow_gametype "{{vote_allow_gametype}}"
set vote_allow_kick "{{vote_allow_kick}}"
set vote_allow_map "{{vote_allow_map}}"
set vote_allow_matchreset "{{vote_allow_matchreset}}"
set vote_allow_mutespecs "{{vote_allow_mutespecs}}"
set vote_allow_nextmap "{{vote_allow_nextmap}}"
set vote_allow_pub "{{vote_allow_pub}}"
set vote_allow_referee "{{vote_allow_referee}}"
set vote_allow_shuffleteams "{{vote_allow_shuffleteams}}"
set vote_allow_swapteams "{{vote_allow_swapteams}}"
set vote_allow_friendlyfire "{{vote_allow_friendlyfire}}"
set vote_allow_timelimit "{{vote_allow_timelimit}}"
set vote_allow_warmupdamage "{{vote_allow_warmupdamage}}"
set vote_allow_antilag "{{vote_allow_antilag}}"
set vote_allow_balancedteams "{{vote_allow_balancedteams}}"
set vote_allow_muting "{{vote_allow_muting}}"
set g_log "{{g_log}}"
set g_logsync "{{g_logsync}}"
set logfile "{{logfile}}"
exec {{MapRotation}}
set com_watchdog "{{com_watchdog}}"
set com_watchdog_cmd "{{com_watchdog_cmd}}"

View File

@ -0,0 +1,57 @@
[
{
"UpdateStageName":"SteamCMD Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"SteamCMD",
"UpdateSourceData":"1873030",
"ForceDownloadPlatform":"Windows"
},
{
"UpdateStageName":"Server.cfg Template File Download",
"UpdateSourcePlatform":"All",
"UpdateSource":"FetchURL",
"UpdateSourceData":"https://raw.githubusercontent.com/CubeCoders/AMPTemplates/main/wolfenstein-etserver.cfg",
"UpdateSourceArgs":"AMP_server.cfg",
"UpdateSourceTarget":"{{$FullRootDir}}",
"OverwriteExistingFiles":true
},
{
"UpdateStageName":"Campaigncycle.cfg Copy",
"UpdateSourcePlatform":"All",
"UpdateSource":"CopyFilePath",
"UpdateSourceData":"{{$FullBaseDir}}etmain/AMP_campaigncycle.cfg",
"UpdateSourceArgs":"{{$FullBaseDir}}etmain/campaigncycle.cfg",
"OverwriteExistingFiles":false
},
{
"UpdateStageName":"Objectivecycle.cfg Copy",
"UpdateSourcePlatform":"All",
"UpdateSource":"CopyFilePath",
"UpdateSourceData":"{{$FullBaseDir}}etmain/AMP_objectivecycle.cfg",
"UpdateSourceArgs":"{{$FullBaseDir}}etmain/objectivecycle.cfg",
"OverwriteExistingFiles":false
},
{
"UpdateStageName":"Lmscycle.cfg Copy",
"UpdateSourcePlatform":"All",
"UpdateSource":"CopyFilePath",
"UpdateSourceData":"{{$FullBaseDir}}etmain/AMP_lmscycle.cfg",
"UpdateSourceArgs":"{{$FullBaseDir}}etmain/lmscycle.cfg",
"OverwriteExistingFiles":false
},
{
"UpdateStageName":"Stopwatchcycle.cfg Copy",
"UpdateSourcePlatform":"All",
"UpdateSource":"CopyFilePath",
"UpdateSourceData":"{{$FullBaseDir}}etmain/AMP_stopwatchcycle.cfg",
"UpdateSourceArgs":"{{$FullBaseDir}}etmain/stopwatchcycle.cfg",
"OverwriteExistingFiles":false
},
{
"UpdateStageName":"Initialise Wine",
"UpdateSourcePlatform":"Linux",
"UpdateSource":"Executable",
"UpdateSourceData":"/bin/bash",
"UpdateSourceArgs":"-c 'WINEPREFIX=\"{{$FullRootDir}}.wine\" WINEARCH=win32 /usr/bin/wineboot --init --update'"
}
]