]> git.deb.at Git - rhonda/theotherroles.git/commitdiff
Version 3.4.4
authordwd0tcom <info@dominikwierl.com>
Sun, 27 Feb 2022 17:34:05 +0000 (18:34 +0100)
committerdwd0tcom <info@dominikwierl.com>
Sun, 27 Feb 2022 17:34:05 +0000 (18:34 +0100)
README.md
TheOtherRoles/Main.cs
TheOtherRoles/Patches/CustomServerPatch.cs [deleted file]
TheOtherRoles/TheOtherRoles.csproj

index 7dd65c3fad4d3abc66bb0c31c89aff8dfbc86fc3..41ce1f8167a3a9074a9127602b00e5b0ece9683f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -41,6 +41,7 @@ The [Role Assignment](#role-assignment) sections explains how the roles are bein
 # Releases
 | Among Us - Version| Mod Version | Link |
 |----------|-------------|-----------------|
+| 2022.2.23s| v3.4.4| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v3.4.4/TheOtherRoles.zip)
 | 2021.12.15s| v3.4.3| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v3.4.3/TheOtherRoles.zip)
 | 2021.12.15s| v3.4.2| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v3.4.2/TheOtherRoles.zip)
 | 2021.12.15s| v3.4.1| [Download](https://github.com/Eisbison/TheOtherRoles/releases/download/v3.4.1/TheOtherRoles.zip)
@@ -99,6 +100,9 @@ The [Role Assignment](#role-assignment) sections explains how the roles are bein
 <details>
   <summary>Click to show the Changelog</summary>
 
+**Version 3.4.4**
+- Fixed a bug where games were not finished properly on offical servers (special thanks to miniduikboot & 6pak)
+  
 **Version 3.4.3**
 - Fixed a bug where "Guesser Is Impostor Chance" crashed the role system
 - Fixed a bug where a sidekicked Hacker was stuck
index 1e442f43cc0f399ce563d56a41bd086410decee2..e87ffbad7d5434e485abdefd14abf88651670d38 100644 (file)
@@ -21,8 +21,7 @@ namespace TheOtherRoles
     public class TheOtherRolesPlugin : BasePlugin
     {
         public const string Id = "me.eisbison.theotherroles";
-
-        public const string VersionString = "3.4.3";
+        public const string VersionString = "3.4.4";
 
         public static System.Version Version = System.Version.Parse(VersionString);
         internal static BepInEx.Logging.ManualLogSource Logger;
@@ -52,7 +51,7 @@ namespace TheOtherRoles
             ServerManager serverManager = DestroyableSingleton<ServerManager>.Instance;
             IRegionInfo[] regions = defaultRegions;
 
-            var CustomRegion = new DnsRegionInfo(Ip.Value, "Custom", StringNames.NoTranslation, Ip.Value, Port.Value);
+            var CustomRegion = new DnsRegionInfo(Ip.Value, "Custom", StringNames.NoTranslation, Ip.Value, Port.Value, false);
             regions = regions.Concat(new IRegionInfo[] { CustomRegion.Cast<IRegionInfo>() }).ToArray();
             ServerManager.DefaultRegions = regions;
             serverManager.AvailableRegions = regions;
diff --git a/TheOtherRoles/Patches/CustomServerPatch.cs b/TheOtherRoles/Patches/CustomServerPatch.cs
deleted file mode 100644 (file)
index 006e590..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-// Adapted from https://github.com/NuclearPowered/Reactor/blob/master/Reactor/Patches/ServerInfoFixes.cs 
-// Orginial code was written by 6pak and miniduikboot as part of the Reactor api for Among Us (https://github.com/NuclearPowered/Reactor)
-
-using HarmonyLib;
-namespace TheOtherRoles.Patches
-{
-    [HarmonyPatch(typeof(InnerNet.InnerNetClient), nameof(InnerNet.InnerNetClient.GetConnectionData))]
-    public static class InnerNetClientGetConnectionDataPatch
-    {
-        public static void Prefix(ref bool useDtlsLayout)
-        {
-            var serverManager = ServerManager.Instance;
-            DnsRegionInfo region = serverManager.CurrentRegion.TryCast<DnsRegionInfo>();
-            if (region == null || !region.Fqdn.EndsWith("among.us"))
-                useDtlsLayout = false;
-        }
-    }
-
-    [HarmonyPatch(typeof(AuthManager), nameof(AuthManager.CreateDtlsConnection))]
-    public static class AuthManagerCreateDtlsConnection
-    {
-        public static bool Prefix(ref Hazel.Udp.UnityUdpClientConnection __result, string targetIp, ushort targetPort)
-        {
-            var serverManager = ServerManager.Instance;
-            DnsRegionInfo region = serverManager.CurrentRegion.TryCast<DnsRegionInfo>();
-            if (region == null || !region.Fqdn.EndsWith("among.us")) {
-                var remoteEndPoint = new Il2CppSystem.Net.IPEndPoint(Il2CppSystem.Net.IPAddress.Parse(targetIp), (int)(targetPort - 3));
-                __result = new Hazel.Udp.UnityUdpClientConnection(null, remoteEndPoint);
-                return false;
-            }
-            return true;
-        }
-    }
-}
\ No newline at end of file
index 0d40409cff9073cab50e128d004513ea188349c1..4db5fc3b0bd632738d8db5b86b7460791575b502 100644 (file)
@@ -1,7 +1,7 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
     <PropertyGroup>
         <TargetFramework>netstandard2.1</TargetFramework>
-        <Version>3.4.3</Version>
+        <Version>3.4.4</Version>
         <Description>TheOtherRoles</Description>
         <Authors>Eisbison</Authors>
     </PropertyGroup>