Updated Reactor for Among Us v2021.11.9.5 and got rid of Reactor Framework

This commit is contained in:
Brybry committed 2021-11-22 22:57:53 +01:00
1 parent 9266ea52a4
commit 8dfb3b246b
3 files changed
+40 -40

No files matched your search

+1 -13
View File
@@ -1,21 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<Version>1.1.3</Version>
<Version>1.1.4</Version>
<Description>An Among Us mod that tweaks Polus, allowing a more balanced experience.</Description>
<Authors>Brybry</Authors>
</PropertyGroup>
<PropertyGroup Condition="'$(GamePlatform)' == 'Steam'">
<GameVersion>2021.6.30s</GameVersion>
<DefineConstants>$(DefineConstants);STEAM</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition="'$(GamePlatform)' == 'Itch'">
<GameVersion>2021.6.30i</GameVersion>
<DefineConstants>$(DefineConstants);ITCH</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="$(AmongUs)\BepInEx\core\*.dll">
@@ -27,8 +17,6 @@
</Reference>
<Reference Remove="$(AmongUs)\BepInEx\unhollowed\netstandard.dll;$(AmongUs)\BepInEx\unhollowed\Newtonsoft.Json.dll" />
<Reference Include="$(AmongUs)\BepInEx\plugins\Reactor.dll" />
</ItemGroup>
<Target Name="Copy" AfterTargets="Build">
+19 -12
View File
@@ -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 <color=#5E4CA6FF>BetterPolus v1.1.3-R</color> by Brybry");
};
SceneManager.add_sceneLoaded((Action<Scene, LoadSceneMode>) ((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 += " + <color=#5E4CA6FF>BetterPolus v1.1.4</color> by Brybry";
}
}
}
}
+20 -15
View File
@@ -57,9 +57,9 @@ An Among Us mod that tweaks Polus, allowing a more balanced experience.
</ul>
## 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
<details>
<summary>Version 1.1.6</summary>
<summary>Version 1.1.4</summary>
<ul>
<li>Added compatibility with Among Us v2021.11.9.5s</li>
<li>Removed Reactor dependencies</li>
</ul>
</details>
<details>
<summary>Version 1.1.3</summary>
<ul>
<li>Added compatibility with Among Us v2021.6.30s</li>
</ul>
@@ -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?**<br>
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. <ins>Use this if you want to play with plugins that need Reactor's Custom RPC API or Modded Handshake.</ins>
**Can you use BetterPolus with Woodi's Sheriff Mod?**<br>
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!<br>
~~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?**<br>
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!<br>