From ee8ed273db28f28db5f029234c5855f5faff68bb Mon Sep 17 00:00:00 2001 From: TheR00st3r Date: Wed, 8 Jan 2025 00:16:48 +0100 Subject: [PATCH] Fix Server crash on ready after all players --- PugSharp.Tests/PugSharp.Tests.csproj | 2 +- PugSharp/PugSharp.csproj | 2 +- install-windows.ps1 | 38 ++++++++++++++-------------- resources/cfg/PugSharp/live.cfg | 1 - 4 files changed, 21 insertions(+), 22 deletions(-) diff --git a/PugSharp.Tests/PugSharp.Tests.csproj b/PugSharp.Tests/PugSharp.Tests.csproj index 785c7897..047d19a5 100644 --- a/PugSharp.Tests/PugSharp.Tests.csproj +++ b/PugSharp.Tests/PugSharp.Tests.csproj @@ -9,7 +9,7 @@ - + diff --git a/PugSharp/PugSharp.csproj b/PugSharp/PugSharp.csproj index 4ae9eb35..1776c9fe 100644 --- a/PugSharp/PugSharp.csproj +++ b/PugSharp/PugSharp.csproj @@ -7,7 +7,7 @@ - + none runtime compile; build; native; contentfiles; analyzers; buildtransitive diff --git a/install-windows.ps1 b/install-windows.ps1 index ca9aadc0..f73b8030 100644 --- a/install-windows.ps1 +++ b/install-windows.ps1 @@ -34,26 +34,26 @@ Invoke-WebRequest "https://mms.alliedmods.net/mmsdrop/2.0/$latestMM" -OutFile "$ Write-Output "Extract MetaMod Version $latestMM" Expand-Archive "$TARGET_DIR\latestMM.zip" -DestinationPath $TARGET_DIR -Force -Write-Output "Fix GameInfo" -if (Test-Path $GAMEINFO_FILE) { - $NEW_ENTRY = " Game csgo/addons/metamod" - $SEL = Select-String -Path $GAMEINFO_FILE -Pattern $NEW_ENTRY - if ($SEL -ne $null) { - Write-Output "The entry '$NEW_ENTRY' already exists in $GAMEINFO_FILE. No changes were made." - } - else { - (Get-Content $GAMEINFO_FILE) | - Foreach-Object { - $_ # send the current line to output - if ($_ -match "Game_LowViolence") { - #Add Lines after the selected pattern - $NEW_ENTRY - } - } | Set-Content $GAMEINFO_FILE +# Write-Output "Fix GameInfo" +# if (Test-Path $GAMEINFO_FILE) { +# $NEW_ENTRY = " Game csgo/addons/metamod" +# $SEL = Select-String -Path $GAMEINFO_FILE -Pattern $NEW_ENTRY +# if ($SEL -ne $null) { +# Write-Output "The entry '$NEW_ENTRY' already exists in $GAMEINFO_FILE. No changes were made." +# } +# else { +# (Get-Content $GAMEINFO_FILE) | +# Foreach-Object { +# $_ # send the current line to output +# if ($_ -match "Game_LowViolence") { +# #Add Lines after the selected pattern +# $NEW_ENTRY +# } +# } | Set-Content $GAMEINFO_FILE - Write-Output "The file $GAMEINFO_FILE has been modified successfully. '$NEW_ENTRY' has been added." - } -} +# Write-Output "The file $GAMEINFO_FILE has been modified successfully. '$NEW_ENTRY' has been added." +# } +# } Write-Output "Install CounterStrikeSharp" diff --git a/resources/cfg/PugSharp/live.cfg b/resources/cfg/PugSharp/live.cfg index 56248dd9..25e7eec7 100644 --- a/resources/cfg/PugSharp/live.cfg +++ b/resources/cfg/PugSharp/live.cfg @@ -98,7 +98,6 @@ spec_freeze_time_lock 2 spec_replay_enable 0 sv_allow_votes 0 sv_auto_full_alltalk_during_warmup_half_end 0 -sv_coaching_enabled 1 sv_competitive_official_5v5 1 sv_damage_print_enable 0 sv_deadtalk 1