From e79280e4c460bdfbae99c8b665b232b203cb94a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Astral=E2=9C=A8?= Date: Sat, 7 Sep 2024 10:29:13 +0200 Subject: [PATCH] v1.1.7 sry for delay --- README.md | 36 ++++++++++++++++++++---------------- src/AUnlocker.cs | 4 ++-- src/AUnlocker.csproj | 4 ++-- src/ChatPatches.cs | 11 +++++++++-- src/OtherPatches.cs | 5 +---- 5 files changed, 34 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 092b521..14a684f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ # 🎉 Features -| Unlock Cosmetics | Account Patches | Chat Patches | Other Patches | +| Unlock Cosmetics[*](https://github.com/astra1dev/AUnlocker?tab=readme-ov-file#%EF%B8%8F-disclaimer) | Account Patches | Chat Patches | Other Patches | |------------------|-----------------|--------------|---------------| | Hats | Unlock free chat | Copy-pasting allowed | Unlock FPS | Visors | Unlock friend list | URLs and Emails allowed | Unlock April Fools Mode @@ -29,15 +29,14 @@ | Nameplates | Remove "minor" status | | Cosmicubes | Remove disconnect penalty | | Bundles | | - -These features can be individually enabled / disabled by editing the file `[YOUR_AMONG_US_FOLDER]/BepInEx/config/AUnlocker.cfg` +> [!NOTE] +> Features can be individually enabled & disabled by editing the file `[YOUR_AMONG_US_FOLDER]/BepInEx/config/AUnlocker.cfg`
# 🔥 Releases Before you download anything, make sure your platform is supported: -- ✅ PC / Desktop (Steam, itch.io, Epic Games) -- ❌ Microsoft Store +- ✅ PC / Desktop (Steam, itch.io, Epic Games, Microsoft Store) - ❌ Mobile (Google Play & App Store) - ❌ Consoles (Playstation, Nintendo Switch, XBox) @@ -46,6 +45,7 @@ The table below lists the most recent AUnlocker release for each Among Us versio | Among Us Version | AUnlocker Version | |:-:|:-:| +| `2024.9.4` | v1.1.7 [(Download)](https://github.com/astra1dev/AUnlocker/releases/tag/v1.1.7) | | `2024.8.13` | v1.1.6 [(Download)](https://github.com/astra1dev/AUnlocker/releases/tag/v1.1.6) | | `2024.6.18` | v1.1.5 [(Download)](https://github.com/astra1dev/AUnlocker/releases/tag/v1.1.5) | | `2024.3.05` | v1.1.4 [(Download)](https://github.com/astra1dev/AUnlocker/releases/tag/v1.1.4) | @@ -59,14 +59,14 @@ The table below lists the most recent AUnlocker release for each Among Us versio # 💾 Installation ## Windows -- Download the latest `AUnlocker_v*.zip` file from [here](https://github.com/astra1dev/AUnlocker/releases). Make sure you are running the latest Among Us version. +- [Download](https://github.com/astra1dev/AUnlocker/releases/latest) either `AUnlocker_v*_Steam_Epic_Itch.zip` or `AUnlocker_v*_MicrosoftStore.zip` depending on your edition of Among Us. - Extract the contents of the zip into your Among Us folder. You can find your Among Us folder like this: - - **Steam:** Right-click Among Us in your library → click `manage` → click on `browse local files` - - **Epic Games:** Right-click Among Us in your library → click `manage` → click on the little folder icon next to `Installation` + - **Steam:** Right-click Among Us in your library → click `manage` → click `browse local files` + - **Epic Games:** Right-click Among Us in your library → click `manage` → click the small folder icon next to `Installation` - **Itch.io:** Open the Itch.io app → Right-click Among Us in your library → click `manage` → click `open folder in Explorer`. + - **Microsoft Store:** Check [this support article](https://answers.microsoft.com/en-us/xbox/forum/all/where-can-i-find-the-gamefiles-of-a-game/5cb9a0c3-7948-4316-abc5-f27d1767b932) on how to find and access your Among Us folder. - Your game folder should look like this after installation: - - Launch Among Us. The first launch will take **MUCH** longer, so don't worry if you have to wait a few minutes. ## 🐧 Linux @@ -74,14 +74,14 @@ Check out [this guide](https://docs.bepinex.dev/articles/advanced/proton_wine.ht
-If you already installed one or more Among Us mods in the past: +👾 If you are already using other mods or already have BepInEx installed: - You should see a folder called `BepInEx` inside your Among Us folder. -- Download `AUnlocker_v*.dll` from the [latest release](https://github.com/astra1dev/AUnlocker/releases), place it into `BepInEx/plugins` and launch Among Us. +- Download `AUnlocker_v*.dll` from the [latest release](https://github.com/astra1dev/AUnlocker/releases/latest), place it into `BepInEx/plugins` and launch Among Us. -If you don't want to download the pre-compiled DLL, you can build AUnlocker from source by following these steps: +👷‍♂️ If you don't want to download the pre-compiled DLL, you can build AUnlocker from source by following these steps: - Download the necessary files with `git clone https://github.com/astra1dev/AUnlocker` - Run the command `dotnet build` from the AUnlocker folder (where `AUnlocker.sln` is located) -- The compiled mod dll will be located here: `AUnlocker/src/bin/Debug/net6.0/AUnlocker.dll` +- The compiled mod dll will be located here: `src/bin/Debug/net6.0/AUnlocker.dll`
@@ -100,16 +100,20 @@ Getting started modding Among Us:
# ⚠️ Disclaimer -This mod is not affiliated with Among Us or Innersloth LLC, and the content contained therein is not endorsed or otherwise sponsored by Innersloth LLC. Portions of the materials contained herein are property of Innersloth LLC. © Innersloth LLC. -This mod does not unlock all cosmetics **permanently**, so it does **not** add them to your account. This is because your progress is stored on the Innersloth servers and we cannot just modify it. However, this mod uses BepInEx and the Reactor Framework to Postfix Among Us game methods and unlock all cosmetics **temporarily**. If you uninstall this mod, the cosmetics will be locked again. The cosmetics you have already unlocked legitimately, e.g. through buying a cosmicube, are **untouched** by this mod. +AUnlocker does not unlock all cosmetics **permanently**, so it does **not** add them to your account. This is because your progress is stored on the Innersloth servers. If you uninstall this mod, the cosmetics will be locked again. The cosmetics you have already unlocked, e.g. through buying a cosmicube, are **untouched** by this mod. + +This mod is not affiliated with Among Us or Innersloth LLC, and the content contained therein is not endorsed or otherwise sponsored by Innersloth LLC. Portions of the materials contained herein are property of Innersloth LLC. © Innersloth LLC.
-GitHub Stats: +📊 Stats: + + + \ No newline at end of file diff --git a/src/AUnlocker.cs b/src/AUnlocker.cs index 500ab9f..dff14ba 100644 --- a/src/AUnlocker.cs +++ b/src/AUnlocker.cs @@ -24,7 +24,7 @@ public partial class AUnlocker : BasePlugin public static ConfigEntry UnlockCosmetics; // OtherPatches - public static ConfigEntry UnlockFPS; + public static ConfigEntry UnlockFPS; public static ConfigEntry NoTelemetry; public static ConfigEntry UnlockAprilFoolsMode; public static ConfigEntry EnableHorseMode; @@ -40,7 +40,7 @@ public override void Load() // CosmeticPatches UnlockCosmetics = Config.Bind("CosmeticPatches", "CosmeticPatches", true, "Unlocks all cosmetics"); // OtherPatches - UnlockFPS = Config.Bind("OtherPatches", "UnlockFPS", false, "Unlock FPS"); + UnlockFPS = Config.Bind("OtherPatches", "UnlockFPS", 60, "Enter how many FPS you want"); NoTelemetry = Config.Bind("OtherPatches", "NoTelemetry", true, "Stop the game from collecting analytics and sending them to Innersloth"); UnlockAprilFoolsMode = Config.Bind("OtherPatches", "UnlockAprilFoolsMode", false, "Add the ability to enable Long Boi Mode (only client-side)"); EnableHorseMode = Config.Bind("OtherPatches", "EnableHorseMode", false, "Enable Horse Mode (only client-side)"); diff --git a/src/AUnlocker.csproj b/src/AUnlocker.csproj index cdf8a66..5cd5011 100644 --- a/src/AUnlocker.csproj +++ b/src/AUnlocker.csproj @@ -4,7 +4,7 @@ latest embedded - 1.1.6 + 1.1.7 dev Unlock Among Us: cosmetics, account, chat and more! @@ -12,7 +12,7 @@ - + diff --git a/src/ChatPatches.cs b/src/ChatPatches.cs index 7df256c..7e2a841 100644 --- a/src/ChatPatches.cs +++ b/src/ChatPatches.cs @@ -16,6 +16,7 @@ public static void Postfix(ChatController __instance) __instance.freeChatField.textArea.AllowPaste = true; __instance.freeChatField.textArea.AllowSymbols = true; __instance.freeChatField.textArea.AllowEmail = true; + __instance.freeChatField.textArea.allowAllCharacters = true; } } } @@ -45,13 +46,19 @@ public static bool Prefix(TextBoxTMP __instance, char i, ref bool __result) { if (AUnlocker.PatchChat.Value) { - __result = !(i == '\b'); // Bugfix: '\b' messing with chat message + // Bugfix: backspace messing with chat message; + // newline / "enter" to prevent message sending "randomly" (see issue #25) + __result = !(i == '\b'|| i == '\n' || i == '\r'); return false; } else return true; } +} - public static void Postfix(TextBoxTMP __instance) +[HarmonyPatch(typeof(TextBoxTMP), nameof(TextBoxTMP.Start))] +public static class AllowAllCharacters_TextBoxTMP_Start_Postfix +{ + public static void Postfix(TextBoxTMP __instance) { if (AUnlocker.PatchChat.Value) { diff --git a/src/OtherPatches.cs b/src/OtherPatches.cs index 9b9de6a..0afb327 100644 --- a/src/OtherPatches.cs +++ b/src/OtherPatches.cs @@ -9,10 +9,7 @@ public static class UnlockFPS_MainMenuManager_Start_Postfix { public static void Postfix(MainMenuManager __instance) { - if (AUnlocker.UnlockFPS.Value) - { - Application.targetFrameRate = 165; - } + Application.targetFrameRate = AUnlocker.UnlockFPS.Value; } }