From 0bd10b996933deb182513e4fbb1bc46bdac425cb Mon Sep 17 00:00:00 2001 From: Gurge44 Date: Fri, 9 Oct 2026 13:14:13 +0200 Subject: [PATCH] Update to BepInEx 785 --- .github/workflows/release-without-mono.yml | 6 +++--- .github/workflows/release.yml | 11 ++++++----- EHR.csproj | 4 ++-- Patches/ChatControlPatch.cs | 2 +- Patches/HudPatch.cs | 4 +--- packaging/mono/INSTRUCTIONS.txt | 2 +- 6 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-without-mono.yml b/.github/workflows/release-without-mono.yml index 48344f4e7..e1544dc7c 100644 --- a/.github/workflows/release-without-mono.yml +++ b/.github/workflows/release-without-mono.yml @@ -187,13 +187,13 @@ jobs: # IL2CPP # ----------------------------- - - name: Download BepInEx 6 pre-release 735 + - name: Download BepInEx 6 pre-release 785 run: | - curl -L https://builds.bepinex.dev/projects/bepinex_be/735/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.735%2B5fef357.zip -o bepinex-x64.zip + curl -L https://builds.bepinex.dev/projects/bepinex_be/785/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.785%2B5fef357.zip -o bepinex-x64.zip unzip bepinex-x64.zip -d epic chmod -R u+rwX,go+rX epic - curl -L https://builds.bepinex.dev/projects/bepinex_be/735/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.735%2B5fef357.zip -o bepinex-x86.zip + curl -L https://builds.bepinex.dev/projects/bepinex_be/785/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.785%2B5fef357.zip -o bepinex-x86.zip unzip bepinex-x86.zip -d steam chmod -R u+rwX,go+rX steam diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 627bd29ea..c894c187d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -207,13 +207,13 @@ jobs: # IL2CPP # ----------------------------- - - name: Download BepInEx 6 pre-release 735 + - name: Download BepInEx 6 pre-release 785 run: | - curl -L https://builds.bepinex.dev/projects/bepinex_be/735/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.735%2B5fef357.zip -o bepinex-x64.zip + curl -L https://builds.bepinex.dev/projects/bepinex_be/785/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.785%2B5fef357.zip -o bepinex-x64.zip unzip bepinex-x64.zip -d epic chmod -R u+rwX,go+rX epic - curl -L https://builds.bepinex.dev/projects/bepinex_be/735/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.735%2B5fef357.zip -o bepinex-x86.zip + curl -L https://builds.bepinex.dev/projects/bepinex_be/785/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.785%2B5fef357.zip -o bepinex-x86.zip unzip bepinex-x86.zip -d steam chmod -R u+rwX,go+rX steam @@ -235,7 +235,9 @@ jobs: cp -rf packaging/il2cppinterop/* epic/BepInEx/core/ - name: Steam App ID - run: echo "945360" > steam/steam_appid.txt + run: | + echo "945360" > steam/steam_appid.txt + echo "945360" > epic/steam_appid.txt # ----------------------------- # Mono @@ -299,7 +301,6 @@ jobs: file_path: release-artifacts/EHR.v${{ github.event.inputs.version }}_Steam_Epic-Games_Microsoft-Store.zip display_name: EHR v${{ github.event.inputs.version }} (x64 - Steam/Epic/MS Store) release_type: release - game_versions: "18.0.0" # --------------------------------------------------------- # 6) Create GitHub Release diff --git a/EHR.csproj b/EHR.csproj index 2add63ad8..d8f3a8976 100644 --- a/EHR.csproj +++ b/EHR.csproj @@ -44,8 +44,8 @@ - - + + diff --git a/Patches/ChatControlPatch.cs b/Patches/ChatControlPatch.cs index 677d5f70b..7bdf88feb 100644 --- a/Patches/ChatControlPatch.cs +++ b/Patches/ChatControlPatch.cs @@ -1,11 +1,11 @@ using System; #if !IL2CPP using System.Collections; +using EHR.Patches; #endif using System.Collections.Generic; using System.Linq; using AmongUs.Data; -using EHR.Patches; using EHR.Roles; using HarmonyLib; using Hazel; diff --git a/Patches/HudPatch.cs b/Patches/HudPatch.cs index ff3a2b11d..079792882 100644 --- a/Patches/HudPatch.cs +++ b/Patches/HudPatch.cs @@ -910,7 +910,7 @@ internal static class SabotageMapPatch for (int roomId = 0; roomId < countRooms; roomId++) { MapRoom mr = __instance.rooms[roomId]; - if (!mr.special || !mr.special.transform) continue; + if (!mr || !mr.special || !mr.special.transform) continue; SystemTypes room = mr.room; @@ -959,9 +959,7 @@ internal static class MapRoomDoorsStartPatch } } } -#if !IL2CPP [HarmonyPatch(typeof(MapRoom), nameof(MapRoom.DoorsUpdate))] -#endif internal static class MapRoomDoorsUpdatePatch { public static Dictionary DoorTimerTexts = []; diff --git a/packaging/mono/INSTRUCTIONS.txt b/packaging/mono/INSTRUCTIONS.txt index 954ffdf1b..877833b09 100644 --- a/packaging/mono/INSTRUCTIONS.txt +++ b/packaging/mono/INSTRUCTIONS.txt @@ -7,4 +7,4 @@ For Epic Games, you need to have the newly created folder at the exact same location with the exact same name as the original AmongUs folder, and launch from the Epic Games launcher (delete the old folder or rename it) -Feel free to delete "INSTRUCTIONS.txt" and "AmongUsDotNetInstaller.exe" after you've successfully completed all steps and got EHR to load properly. \ No newline at end of file +Feel free to delete "INSTRUCTIONS.txt" and "AmongUsDotNetInstaller.exe" after you've successfully completed all steps and got EHR to load properly. Although you might need them when the base game updates. \ No newline at end of file