diff --git a/BetterPolus/BetterPolus.csproj b/BetterPolus/BetterPolus.csproj index 76b134a..a327bd1 100644 --- a/BetterPolus/BetterPolus.csproj +++ b/BetterPolus/BetterPolus.csproj @@ -1,21 +1,11 @@ netstandard2.1 - 1.1.3 + 1.1.4 An Among Us mod that tweaks Polus, allowing a more balanced experience. Brybry - - - 2021.6.30s - $(DefineConstants);STEAM - - - - 2021.6.30i - $(DefineConstants);ITCH - @@ -27,8 +17,6 @@ - - diff --git a/BetterPolus/BetterPolusPlugin.cs b/BetterPolus/BetterPolusPlugin.cs index b57b216..e93e0ef 100644 --- a/BetterPolus/BetterPolusPlugin.cs +++ b/BetterPolus/BetterPolusPlugin.cs @@ -2,36 +2,43 @@ using BepInEx.IL2CPP; using BepInEx.Logging; using HarmonyLib; -using Reactor; -using Reactor.Patches; +using System; +using UnityEngine.SceneManagement; namespace BetterPolus { - [BepInPlugin(Id)] + [BepInPlugin(Id, Name, Version)] [BepInProcess("Among Us.exe")] - [BepInDependency(ReactorPlugin.Id)] public class BetterPolusPlugin : BasePlugin { public const string Id = "ch.brybry.betterpolus"; + public const string Name = "BetterPolus Mod"; + public const string Version = "1.1.4"; public Harmony Harmony { get; } = new Harmony(Id); public static ManualLogSource log; - public override void Load() { log = Log; log.LogMessage("BetterPolus Mod loaded"); - - ReactorVersionShower.TextUpdated += (text) => - { - int index = text.text.LastIndexOf('\n'); - text.text = text.text.Insert(index == -1 ? text.text.Length - 1 : index, - "\nLoaded BetterPolus v1.1.3-R by Brybry"); - }; + SceneManager.add_sceneLoaded((Action) ((scene, loadSceneMode) => + { + ModManager.Instance.ShowModStamp(); + })); + Harmony.PatchAll(); } + + [HarmonyPatch(typeof(VersionShower), nameof(VersionShower.Start))] + public static class VersionShowerPatch + { + public static void Postfix(VersionShower __instance) + { + __instance.text.text += " + BetterPolus v1.1.4 by Brybry"; + } + } } } diff --git a/README.md b/README.md index 484fbd2..3901517 100644 --- a/README.md +++ b/README.md @@ -57,9 +57,9 @@ An Among Us mod that tweaks Polus, allowing a more balanced experience. ## Technology -This mod has been created using **[Reactor Modding Framework](https://github.com/NuclearPowered/Reactor)**. The game is patched at runtime via **[Reactor BepInEx](https://github.com/NuclearPowered/BepInEx)** and no game file is actually altered. +The game is patched at runtime via **[BepInEx Bleeding Edge](https://github.com/BepInEx/BepInEx)** and no game file is actually altered. -For the moment, this mod supports **Among Us v2020.12.9s** *(Steam version)*. +For the moment, this mod supports **Among Us v2021.11.9.5**. ## Installation For a better experience, every player in your lobby should download BetterPolus. You *can* play with people that don't have the mod installed but keep in mind that they won't see the same things as you (for example Vitals location). @@ -71,21 +71,19 @@ There are two ways to install the mod : ### All-in-one pack 1. Download the pack for your game version in the **[Releases section](#releases)** below. 2. Extract the content of the zip file into your game folder (**`Steam/steamapps/common/Among Us`**). -3. Run the game from Steam. +3. Run the game. The mod should be installed and it should work. ### Custom install -1. Install Reactor BepInEx by following **[these instructions](https://docs.reactor.gg/docs/basic/install_bepinex/)**. -2. Install Reactor by following **[these instructions](https://docs.reactor.gg/docs/basic/install_reactor)**. +1. Download the latest build of BepInEx Bleeding Edge **[on this page](https://builds.bepis.io/projects/bepinex_be)** (select BepInEx Unity IL2CPP for Windows x86 machines). +2. Unzip the file in your Among Us directory and run the game once. Close the game once you see the title screen. 3. Download the **dll file** for your game version in the **[Releases section](#releases)** below. 4. Copy the dll file into **`Among Us/BepInEx/plugins`**. -5. (Optional) If you want to play on official servers, you must do the following (**doesn't work anymore since v2021.3.31s**) : - - Open **`Among us/BepInEx/config/gg.reactor.api.cfg`** with a text editor. - - Find the line `Modded handshake = true` and change it to `Modded handshake = false`. - - Save and close your editor. +5. Run the game. The mod should be installed and it should work. ## Releases | Among Us Version | Mod Version | All-in-one pack | DLL file | | ---------------- | ----------- | :-------------: | :------: | + | v2021.11.9.5 | Ver. 1.1.4 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.4/BetterPolus_All-in-one-Pack-1.1.4.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.4/BetterPolus-1.1.4.dll)** | | v2021.6.30 | Ver. 1.1.3 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.3/BetterPolus_All-in-one-Pack-1.1.3.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.3/BetterPolus-1.1.3.dll)** | | v2021.3.31.3 | Ver. 1.1.2 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.2/BetterPolus_All-in-one-Pack-1.1.2.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.2/BetterPolus-2021.3.31.3s.dll)** | | v2021.3.5s | Ver. 1.1.1 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.1/BetterPolus_All-in-one-Pack-1.1.1.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.1/BetterPolus-2021.3.5s.dll)** | @@ -94,7 +92,15 @@ There are two ways to install the mod : ### Changelog
- Version 1.1.6 + Version 1.1.4 +
    +
  • Added compatibility with Among Us v2021.11.9.5s
  • +
  • Removed Reactor dependencies
  • +
+
+ +
+ Version 1.1.3
  • Added compatibility with Among Us v2021.6.30s
@@ -147,7 +153,6 @@ There are two ways to install the mod : ``` -- BepInEx/ -- mono/ --- changelog.txt -- doorstop_config.ini -- steam_appid.txt -- winhttp.dll @@ -161,15 +166,15 @@ Just check that there is a line saying that BetterPolus has been loaded in the t Of course! **Do I risk anything if I play on official Servers?**
-There is currently no permaban system for the game so it's safe to play on official servers. However, I still recommend you to host your own custom server to be safe. For more information, you can check these repositories : +There is currently no permaban system for the game so it's safe to play on official servers. However, I still recommend you to host your own custom server to be safe. For more information, you can check this repository : - **[Impostor/Impostor](https://github.com/Impostor/Impostor):** A custom server that allows you to create your own plugins. -- **[NuclearPowered/Impostor](https://github.com/NuclearPowered/Impostor):** Impostor but maintained by the team behind Reactor. Use this if you want to play with plugins that need Reactor's Custom RPC API or Modded Handshake. **Can you use BetterPolus with Woodi's Sheriff Mod?**
-Reactor doesn't support Woodi's Sheriff Mod. **However**, you can use [**Reactor-Sheriff**](https://github.com/Brybry16/Reactor-Sheriff) which is an adapted version of Woodi's Sheriff Mod that can run with and BetterPolus. +As of version 1.1.4, you you can use Woodi's Sheriff Mod!
+~~Reactor doesn't support Woodi's Sheriff Mod. **However**, you can use [**Reactor-Sheriff**](https://github.com/Brybry16/Reactor-Sheriff) which is an adapted version of Woodi's Sheriff Mod that can run with and BetterPolus.~~ **How can I get started at Among Us Modding?**
-Look at the **[Reactor documentation](https://docs.reactor.gg/)** to get started, and join **[Reactor's Discord](https://discord.gg/Zcmsb9UGuq)** to get more help from the community. +Try to look how other plugins/mods are developed. It's really helpful to have a base to start with! Otherwise, you can try to use Reactor if you want. Look at the **[Reactor documentation](https://docs.reactor.gg/)** to get started, and join **[Reactor's Discord](https://discord.gg/Zcmsb9UGuq)** to get more help from the community. ## Licensing BetterPolus is distrbuted under the **[MIT License](LICENSE)**. While you don't have to credit me if you use or modify this mod, it's greatly appreciated!