diff --git a/Docs/source/admin/quickstart.rst b/Docs/source/admin/quickstart.rst index 471bbe6d..d58b5475 100644 --- a/Docs/source/admin/quickstart.rst +++ b/Docs/source/admin/quickstart.rst @@ -5,7 +5,7 @@ Prerequisites ------------------------------- - Linux Dedicated Server - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages -- `MetaMod 2.0 `_ +- `MetaMod 2.0 `_ - `CounterStrikeSharp by roflmuffin `_ (depending on your selected package, there is no need to install this seperatly) - Dotnet Runtime needed by `CounterStrikeSharp by roflmuffin `_ (depending on your selected package, there is no need to install this seperatly) @@ -18,7 +18,7 @@ Prerequisites .. Linux - Stable with CounterStrikeSharp and Dotnet Runtime (recommended) .. ................................................................................ - .. - Install `MetaMod 2.0 `_ on your Linux Dedicated Server + .. - Install `MetaMod 2.0 `_ on your Linux Dedicated Server .. - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages .. - Download one of our releases including `CounterStrikeSharp by roflmuffin `_ and the Dotnet Runtime named ``PugSharp_with_cssharp_and_runtime_linux_X.X.X.zip`` from our `releases `_ and unpack it to your csgo folder. .. - Have fun and report bugs :D @@ -26,7 +26,7 @@ Prerequisites .. Windows - Stable with CounterStrikeSharp and Dotnet Runtime (recommended) .. .............................................................................. - .. - Install `MetaMod 2.0 `_ on your Windows Dedicated Server + .. - Install `MetaMod 2.0 `_ on your Windows Dedicated Server .. - Download one of our releases including `CounterStrikeSharp by roflmuffin `_ and the Dotnet Runtime named ``PugSharp_with_cssharp_and_runtime_windows_X.X.X.zip`` from our `releases `_ and unpack it to your csgo folder. .. - Have fun and report bugs :D @@ -36,7 +36,7 @@ Prerequisites .. .. warning:: .. This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so. Only use this if you know why you want to do that. - .. - Install `MetaMod 2.0 `_ on your Linux Dedicated Server + .. - Install `MetaMod 2.0 `_ on your Linux Dedicated Server .. - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages .. - Download one of our releases including `CounterStrikeSharp by roflmuffin `_ named ``PugSharp_with_cssharp_linux_X.X.X.zip`` from our `releases `_ and unpack it to your csgo folder. .. - check the ``Add dotnet runtime`` step in `the ci file of CounterStrikeSharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the ``aspnetcore-runtime-X.X.X-linux-x64.tar.gz`` linked there. @@ -50,7 +50,7 @@ Prerequisites .. .. warning:: .. This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so. Only use this if you know why you want to do that. - .. - Install `MetaMod 2.0 `_ on your Windows Dedicated Server + .. - Install `MetaMod 2.0 `_ on your Windows Dedicated Server .. - Download one of our releases including `CounterStrikeSharp by roflmuffin `_ named ``PugSharp_with_cssharp_windows_X.X.X.zip`` from our `releases `_ and unpack it to your csgo folder. .. - check the ``Add dotnet runtime`` step in `the ci file of CounterStrikeSharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the ``aspnetcore-runtime-X.X.X-win-x64.zip`` linked there. .. - Extract the contents of the dotnet runtime into ``addons/counterstrikesharp/dotnet`` of your csgo server @@ -63,7 +63,7 @@ Prerequisites .. .. warning:: .. This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so and also update `CounterStrikeSharp by roflmuffin `_ if the version of it that PugSharp depends on changes. Only use this if you know why you want to do that. - .. - Install `MetaMod 2.0 `_ on your Linux Dedicated Server + .. - Install `MetaMod 2.0 `_ on your Linux Dedicated Server .. - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages .. - Download one of our releases named ``PugSharp_linux_X.X.X.zip`` from our `releases `_ and unpack it to your csgo folder. .. - check the ``CounterStrikeSharp.API`` dependency version in `the csproj file of Pugsharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the `CounterStrikeSharp release `_ that is configured there. @@ -80,7 +80,7 @@ Prerequisites .. .. warning:: .. This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so and also update `CounterStrikeSharp by roflmuffin `_ if the version of it that PugSharp depends on changes. Only use this if you know why you want to do that. - .. - Install `MetaMod 2.0 `_ on your Windows Dedicated Server + .. - Install `MetaMod 2.0 `_ on your Windows Dedicated Server .. - Download one of our releases named ``PugSharp_windows_X.X.X.zip`` from our `releases `_ and unpack it to your csgo folder. .. - check the ``CounterStrikeSharp.API`` dependency version in `the csproj file of Pugsharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the `CounterStrikeSharp release `_ that is configured there. .. - Extract the contents of the CounterStrikeSharp into the csgo folder of your csgo server @@ -97,7 +97,7 @@ We have multiple packages depending on your operating system and if you want to Linux - Beta with CounterStrikeSharp and Dotnet Runtime (recommended) ................................................................................ -- Install `MetaMod 2.0 `_ on your Linux Dedicated Server +- Install `MetaMod 2.0 `_ on your Linux Dedicated Server - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages - Download one of our pre-releases including `CounterStrikeSharp by roflmuffin `_ and the Dotnet Runtime named ``PugSharp_with_cssharp_and_runtime_linux_X.X.X-beta.zip`` from our `releases `_ and unpack it to your csgo folder. - Have fun and report bugs :D @@ -105,7 +105,7 @@ Linux - Beta with CounterStrikeSharp and Dotnet Runtime (recommended) Windows - Beta with CounterStrikeSharp and Dotnet Runtime (recommended) .............................................................................. -- Install `MetaMod 2.0 `_ on your Windows Dedicated Server +- Install `MetaMod 2.0 `_ on your Windows Dedicated Server - Download one of our pre-releases including `CounterStrikeSharp by roflmuffin `_ and the Dotnet Runtime named ``PugSharp_with_cssharp_and_runtime_windows_X.X.X-beta.zip`` from our `releases `_ and unpack it to your csgo folder. - Have fun and report bugs :D @@ -115,7 +115,7 @@ Linux - Beta with CounterStrikeSharp .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Linux Dedicated Server +- Install `MetaMod 2.0 `_ on your Linux Dedicated Server - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages - Download one of our pre-releases including `CounterStrikeSharp by roflmuffin `_ named ``PugSharp_with_cssharp_linux_X.X.X-beta.zip`` from our `releases `_ and unpack it to your csgo folder. - check the ``Add dotnet runtime`` step in `the ci file of CounterStrikeSharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the ``aspnetcore-runtime-X.X.X-linux-x64.tar.gz`` linked there. @@ -129,7 +129,7 @@ Windows - Beta With CounterStrikeSharp .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Windows Dedicated Server +- Install `MetaMod 2.0 `_ on your Windows Dedicated Server - Download one of our pre-releases including `CounterStrikeSharp by roflmuffin `_ named ``PugSharp_with_cssharp_windows_X.X.X-beta.zip`` from our `releases `_ and unpack it to your csgo folder. - check the ``Add dotnet runtime`` step in `the ci file of CounterStrikeSharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the ``aspnetcore-runtime-X.X.X-win-x64.zip`` linked there. - Extract the contents of the dotnet runtime into ``addons/counterstrikesharp/dotnet`` of your csgo server @@ -142,7 +142,7 @@ Linux Beta .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so and also update `CounterStrikeSharp by roflmuffin `_ if the version of it that PugSharp depends on changes. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Linux Dedicated Server +- Install `MetaMod 2.0 `_ on your Linux Dedicated Server - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages - Download one of our pre-releases named ``PugSharp_linux_X.X.X-beta.zip`` from our `releases `_ and unpack it to your csgo folder. - check the ``CounterStrikeSharp.API`` dependency version in `the csproj file of Pugsharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the `CounterStrikeSharp release `_ that is configured there. @@ -159,7 +159,7 @@ Windows Beta .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so and also update `CounterStrikeSharp by roflmuffin `_ if the version of it that PugSharp depends on changes. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Windows Dedicated Server +- Install `MetaMod 2.0 `_ on your Windows Dedicated Server - Download one of our pre-releases named ``PugSharp_windows_X.X.X-beta.zip`` from our `releases `_ and unpack it to your csgo folder. - check the ``CounterStrikeSharp.API`` dependency version in `the csproj file of Pugsharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the `CounterStrikeSharp release `_ that is configured there. - Extract the contents of the CounterStrikeSharp into the csgo folder of your csgo server @@ -178,7 +178,7 @@ We have multiple packages depending on your operating system and if you want to Linux - Alpha with CounterStrikeSharp and Dotnet Runtime (recommended) ................................................................................ -- Install `MetaMod 2.0 `_ on your Linux Dedicated Server +- Install `MetaMod 2.0 `_ on your Linux Dedicated Server - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages - Download one of our alphas including `CounterStrikeSharp by roflmuffin `_ and the Dotnet Runtime named ``latest_build_linux_with_cssharp_and_runtime`` from our `alpha builds `_ (click on a run, scroll down to artifacts) and unpack the containing ``PugSharp_with_cssharp_and_runtime_linux_X.X.X-alpha.zip`` to your csgo folder. - Have fun and report bugs :D @@ -186,7 +186,7 @@ Linux - Alpha with CounterStrikeSharp and Dotnet Runtime (recommended) Windows - Alpha with CounterStrikeSharp and Dotnet Runtime (recommended) .............................................................................. -- Install `MetaMod 2.0 `_ on your Windows Dedicated Server +- Install `MetaMod 2.0 `_ on your Windows Dedicated Server - Download one of our alphas including `CounterStrikeSharp by roflmuffin `_ and the Dotnet Runtime named ``latest_build_windows_with_cssharp_and_runtime`` from our `alpha builds `_ (click on a run, scroll down to artifacts) and unpack the containing ``PugSharp_with_cssharp_and_runtime_windows_X.X.X-alpha.zip`` to your csgo folder. - Have fun and report bugs :D @@ -196,7 +196,7 @@ Linux - Alpha with CounterStrikeSharp .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Linux Dedicated Server +- Install `MetaMod 2.0 `_ on your Linux Dedicated Server - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages - Download one of our alphas including `CounterStrikeSharp by roflmuffin `_ named ``latest_build_linux_with_cssharp`` from our `alpha builds `_ (click on a run, scroll down to artifacts) and unpack the containing ``PugSharp_with_cssharp_linux_X.X.X-alpha.zip`` to your csgo folder. - check the ``Add dotnet runtime`` step in `the ci file of CounterStrikeSharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the ``aspnetcore-runtime-X.X.X-linux-x64.tar.gz`` linked there. @@ -210,7 +210,7 @@ Windows - Alpha With CounterStrikeSharp .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Windows Dedicated Server +- Install `MetaMod 2.0 `_ on your Windows Dedicated Server - Download one of our alphas including `CounterStrikeSharp by roflmuffin `_ named ``latest_build_windows_with_cssharp`` from our `alpha builds `_ (click on a run, scroll down to artifacts) and unpack the containing ``PugSharp_with_cssharp_windows_X.X.X-alpha.zip`` to your csgo folder. - check the ``Add dotnet runtime`` step in `the ci file of CounterStrikeSharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the ``aspnetcore-runtime-X.X.X-win-x64.zip`` linked there. - Extract the contents of the dotnet runtime into ``addons/counterstrikesharp/dotnet`` of your csgo server @@ -223,7 +223,7 @@ Linux Alpha .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so and also update `CounterStrikeSharp by roflmuffin `_ if the version of it that PugSharp depends on changes. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Linux Dedicated Server +- Install `MetaMod 2.0 `_ on your Linux Dedicated Server - ``libicu`` / ``icu-libs`` / ``libicu-dev`` (depending on your distribution) install from your package manager for support of multiple languages - Download one of our alphas named ``latest_build_linux`` from our `alpha builds `_ (click on a run, scroll down to artifacts) and unpack the containing ``PugSharp_linux_X.X.X-alpha.zip`` to your csgo folder. - check the ``CounterStrikeSharp.API`` dependency version in `the csproj file of Pugsharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the `CounterStrikeSharp release `_ that is configured there. @@ -240,7 +240,7 @@ Windows Alpha .. warning:: This method is not recommended, since you have to make sure you update your dotnet runtime yourself, if `CounterStrikeSharp by roflmuffin `_ does so and also update `CounterStrikeSharp by roflmuffin `_ if the version of it that PugSharp depends on changes. Only use this if you know why you want to do that. -- Install `MetaMod 2.0 `_ on your Windows Dedicated Server +- Install `MetaMod 2.0 `_ on your Windows Dedicated Server - Download one of our alphas named ``latest_build_linux`` from our `alpha builds `_ (click on a run, scroll down to artifacts) and unpack the containing ``PugSharp_windows_X.X.X-alpha.zip`` to your csgo folder. - check the ``CounterStrikeSharp.API`` dependency version in `the csproj file of Pugsharp `_ (make sure you use the one from the corresponding release instead the one from the ``main`` branch) and download the `CounterStrikeSharp release `_ that is configured there. - Extract the contents of the CounterStrikeSharp into the csgo folder of your csgo server diff --git a/Makefile b/Makefile index 41622ee4..470d6156 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ install-counterstrikesharp: install-counterstrikesharp-docker: docker run --rm --interactive \ -v $(currentDir):/app \ - mcr.microsoft.com/dotnet/sdk:7.0 /bin/sh -c " \ + mcr.microsoft.com/dotnet/sdk:8.0 /bin/sh -c " \ apt-get update && apt-get install jq unzip -y; \ mkdir -p /app/cs2/game/csgo/addons/; \ wget -q -O /app/counterstrikesharp.zip $(shell curl -s -L -H "Accept: application/vnd.github+json" https://api.github.com/repos/roflmuffin/CounterStrikeSharp/releases/tags/$(shell dotnet list PugSharp/PugSharp.csproj package --format json | jq -r '.projects[].frameworks[].topLevelPackages[] | select(.id == "CounterStrikeSharp.API") | .resolvedVersion' | sed 's|1.0.|v|g') | jq -r '.assets.[] | select(.browser_download_url | test("with-runtime.*linux")) | .browser_download_url'); \ @@ -109,18 +109,18 @@ build-release: build-debug-docker: docker run --rm --interactive \ -v $(currentDir):/app \ - mcr.microsoft.com/dotnet/sdk:7.0 /bin/sh -c " \ + mcr.microsoft.com/dotnet/sdk:8.0 /bin/sh -c " \ cd /app && dotnet publish -c debug; chown -R $(user) /app" build-release-docker: docker run --rm --interactive \ -v $(currentDir):/app \ - mcr.microsoft.com/dotnet/sdk:7.0 /bin/sh -c " \ + mcr.microsoft.com/dotnet/sdk:8.0 /bin/sh -c " \ cd /app && dotnet publish -c release; chown -R $(user) /app" copy-pugsharp: mkdir -p $(currentDir)/cs2/game/csgo/addons/counterstrikesharp/plugins/PugSharp - cp -rf $(currentDir)/PugSharp/bin/Debug/net7.0/publish/* $(currentDir)/cs2/game/csgo/addons/counterstrikesharp/plugins/PugSharp + cp -rf $(currentDir)/PugSharp/bin/Debug/net8.0/publish/* $(currentDir)/cs2/game/csgo/addons/counterstrikesharp/plugins/PugSharp copy-pugsharp-sample-configs: mkdir -p $(currentDir)/cs2/game/csgo/cfg diff --git a/PugSharp.Api.Contract/PugSharp.Api.Contract.csproj b/PugSharp.Api.Contract/PugSharp.Api.Contract.csproj index ca9ed9a9..f32fd49e 100644 --- a/PugSharp.Api.Contract/PugSharp.Api.Contract.csproj +++ b/PugSharp.Api.Contract/PugSharp.Api.Contract.csproj @@ -13,7 +13,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Api.G5Api.Tests/PugSharp.Api.G5Api.Tests.csproj b/PugSharp.Api.G5Api.Tests/PugSharp.Api.G5Api.Tests.csproj index 5036a3b1..b01d8932 100644 --- a/PugSharp.Api.G5Api.Tests/PugSharp.Api.G5Api.Tests.csproj +++ b/PugSharp.Api.G5Api.Tests/PugSharp.Api.G5Api.Tests.csproj @@ -27,7 +27,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Api.G5Api/PugSharp.Api.G5Api.csproj b/PugSharp.Api.G5Api/PugSharp.Api.G5Api.csproj index ac77237d..cea57fb1 100644 --- a/PugSharp.Api.G5Api/PugSharp.Api.G5Api.csproj +++ b/PugSharp.Api.G5Api/PugSharp.Api.G5Api.csproj @@ -16,7 +16,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Api.Json/PugSharp.Api.Json.csproj b/PugSharp.Api.Json/PugSharp.Api.Json.csproj index 8eadce08..ef14e659 100644 --- a/PugSharp.Api.Json/PugSharp.Api.Json.csproj +++ b/PugSharp.Api.Json/PugSharp.Api.Json.csproj @@ -17,7 +17,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.ApiStats/PugSharp.ApiStats.csproj b/PugSharp.ApiStats/PugSharp.ApiStats.csproj index 10e6bf3e..788d80af 100644 --- a/PugSharp.ApiStats/PugSharp.ApiStats.csproj +++ b/PugSharp.ApiStats/PugSharp.ApiStats.csproj @@ -18,7 +18,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Config/PugSharp.Config.csproj b/PugSharp.Config/PugSharp.Config.csproj index 2eb76c6c..9c9eeff2 100644 --- a/PugSharp.Config/PugSharp.Config.csproj +++ b/PugSharp.Config/PugSharp.Config.csproj @@ -15,7 +15,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Config/Team.cs b/PugSharp.Config/Team.cs index c9d4193b..59e567f3 100644 --- a/PugSharp.Config/Team.cs +++ b/PugSharp.Config/Team.cs @@ -5,10 +5,10 @@ namespace PugSharp.Config; public class Team { [JsonPropertyName("id")] - public required string Id { get; set; } = Ulid.NewUlid().ToString(); + public string Id { get; set; } = Ulid.NewUlid().ToString(); [JsonPropertyName("name")] - public required string Name { get; set; } = string.Empty; + public string Name { get; set; } = string.Empty; [JsonPropertyName("tag")] public string Tag { get; init; } = string.Empty; diff --git a/PugSharp.DebugDummy/PugSharp.DebugDummy.csproj b/PugSharp.DebugDummy/PugSharp.DebugDummy.csproj index 1d0fd3d8..81d2a568 100644 --- a/PugSharp.DebugDummy/PugSharp.DebugDummy.csproj +++ b/PugSharp.DebugDummy/PugSharp.DebugDummy.csproj @@ -20,7 +20,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Match.Contract/PugSharp.Match.Contract.csproj b/PugSharp.Match.Contract/PugSharp.Match.Contract.csproj index a87175cf..f12eec92 100644 --- a/PugSharp.Match.Contract/PugSharp.Match.Contract.csproj +++ b/PugSharp.Match.Contract/PugSharp.Match.Contract.csproj @@ -17,7 +17,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Match.Tests/PugSharp.Match.Tests.csproj b/PugSharp.Match.Tests/PugSharp.Match.Tests.csproj index e04de26a..04e9f951 100644 --- a/PugSharp.Match.Tests/PugSharp.Match.Tests.csproj +++ b/PugSharp.Match.Tests/PugSharp.Match.Tests.csproj @@ -28,7 +28,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Match/PugSharp.Match.csproj b/PugSharp.Match/PugSharp.Match.csproj index 638648cd..74b7fefa 100644 --- a/PugSharp.Match/PugSharp.Match.csproj +++ b/PugSharp.Match/PugSharp.Match.csproj @@ -23,7 +23,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Server.Contract/PugSharp.Server.Contract.csproj b/PugSharp.Server.Contract/PugSharp.Server.Contract.csproj index d1c69b2f..7a565e6d 100644 --- a/PugSharp.Server.Contract/PugSharp.Server.Contract.csproj +++ b/PugSharp.Server.Contract/PugSharp.Server.Contract.csproj @@ -17,7 +17,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Shared/PugSharp.Shared.csproj b/PugSharp.Shared/PugSharp.Shared.csproj index b31fe95f..9ada5416 100644 --- a/PugSharp.Shared/PugSharp.Shared.csproj +++ b/PugSharp.Shared/PugSharp.Shared.csproj @@ -14,7 +14,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Tests/PugSharp.Tests.csproj b/PugSharp.Tests/PugSharp.Tests.csproj index 521e7189..047d19a5 100644 --- a/PugSharp.Tests/PugSharp.Tests.csproj +++ b/PugSharp.Tests/PugSharp.Tests.csproj @@ -9,7 +9,7 @@ - + @@ -37,7 +37,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp.Translation/PugSharp.Translation.csproj b/PugSharp.Translation/PugSharp.Translation.csproj index 9f7aec55..c3ba0d46 100644 --- a/PugSharp.Translation/PugSharp.Translation.csproj +++ b/PugSharp.Translation/PugSharp.Translation.csproj @@ -29,7 +29,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/PugSharp/PugSharp.csproj b/PugSharp/PugSharp.csproj index c5a9d7f0..973584c0 100644 --- a/PugSharp/PugSharp.csproj +++ b/PugSharp/PugSharp.csproj @@ -7,7 +7,7 @@ - + none runtime compile; build; native; contentfiles; analyzers; buildtransitive @@ -29,7 +29,7 @@ - + all runtime; build; native; contentfiles; analyzers diff --git a/README.md b/README.md index b644398f..dd048d06 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,6 @@ If you want to know how to use PugSharp, hop over to our [Documentation](https:/ - Plugin Framework: [CounterStrikeSharp by roflmuffin](https://github.com/roflmuffin/CounterStrikeSharp) - Docker test setup: [joedwards32/cs2](https://github.com/joedwards32/CS2) - Metamod fix script: [ghostcap-gaming/cs2-metamod-re-enable-script](https://github.com/ghostcap-gaming/cs2-metamod-re-enable-script) -- Metamod: https://www.sourcemm.net/ +- Metamod: https://www.metamodsource.net/ - Version detection stolen (and modified) with permission from [CS2-AutoUpdater](https://github.com/dran1x/CS2-AutoUpdater) 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