Skip to content

Commit

Permalink
Update to Among Us v2024.3.5 (Merge pull request #145)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero authored Mar 24, 2024
2 parents 792f7c2 + f4332ff commit 17896fe
Show file tree
Hide file tree
Showing 49 changed files with 865 additions and 293 deletions.
71 changes: 36 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Submerged is a mod for Among Us which adds a new map into the game.
<summary>Click to expand</summary>

[![Submerged Trailer](http://img.youtube.com/vi/gAX_mDOX4Pc/0.jpg)](http://www.youtube.com/watch?v=gAX_mDOX4Pc "Submerged Trailer")

[See the trailer on YouTube](http://www.youtube.com/watch?v=gAX_mDOX4Pc)

![Screenshot 1](./.github/Images/Screenshot-1.png)
Expand All @@ -38,26 +38,27 @@ Submerged is compatible with desktop releases of Among Us. This includes Steam,

The table below lists the most recent Submerged release for each Among Us version after `v2022.3.29` (for desktop platforms only). The changelog for each version can be found under the [Releases](https://github.com/SubmergedAmongUs/Submerged/releases) tab.

| Among Us Version | Submerged Version | Links |
|:-:|:-:|:-:|
| `v2023.11.28` | `v2023.11.29` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2023.11.29/) |
| `v2023.10.24` | `v2023.11.2` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2023.11.2/) |
| `v2023.7.12`<br>`v2023.7.11` | `v2023.8.2` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2023.8.2/) |
| `v2023.6.27`<br>`v2023.6.13`<br>`v2023.3.28`<br>`v2023.2.28`<br>`v2022.12.14`<br>`v2022.12.8` | Unavailable | - |
| `v2022.10.25` | `v2022.10.26` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.10.26/) |
| `v2022.10.18` | Unavailable | - |
| `v2022.9.20`<br>`v2022.8.25`<br>`v2022.8.24`<br>`v2022.8.23` | `v2022.8.26` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.8.26/) |
| `v2022.7.12`<br>`v2022.6.21` | `v2022.6.23` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.6.23/) |
| `v2022.4.19`<br>`v2022.3.29` | `v2022.6.12` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.6.12/) |
| Among Us Version | Submerged Version | Links |
|:---------------------------------------------------------------------------------------------:|:-----------------:|:-----------------------------------------------------------------------------------:|
| `v2024.3.5` | `v2024.3.24` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2024.3.24/) |
| `v2023.11.28` | `v2023.11.29` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2023.11.29/) |
| `v2023.10.24` | `v2023.11.2` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2023.11.2/) |
| `v2023.7.12`<br>`v2023.7.11` | `v2023.8.2` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2023.8.2/) |
| `v2023.6.27`<br>`v2023.6.13`<br>`v2023.3.28`<br>`v2023.2.28`<br>`v2022.12.14`<br>`v2022.12.8` | Unavailable | - |
| `v2022.10.25` | `v2022.10.26` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.10.26/) |
| `v2022.10.18` | Unavailable | - |
| `v2022.9.20`<br>`v2022.8.25`<br>`v2022.8.24`<br>`v2022.8.23` | `v2022.8.26` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.8.26/) |
| `v2022.7.12`<br>`v2022.6.21` | `v2022.6.23` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.6.23/) |
| `v2022.4.19`<br>`v2022.3.29` | `v2022.6.12` | [Download](https://github.com/SubmergedAmongUs/Submerged/releases/tag/v2022.6.12/) |

# Dependencies

Submerged depends on the following mods and modding tools in order to function properly:

| Mod | Version |
|-|:-:|
| [BepInEx](https://builds.bepinex.dev/projects/bepinex_be) (IL2CPP-win-x86) | `v6.0.0-be.671` |
| [Reactor](https://github.com/nuclearpowered/reactor) | `v2.2.0` |
| Mod | Version |
|----------------------------------------------------------------------------|:---------------:|
| [BepInEx](https://builds.bepinex.dev/projects/bepinex_be) (IL2CPP-win-x86) | `v6.0.0-be.688` |
| [Reactor](https://github.com/nuclearpowered/reactor) | `v2.2.0` |

# Installation

Expand All @@ -72,7 +73,6 @@ This mod has been tested and works with the Steam, Epic and itch.io versions of
1. Download the correct ZIP [release](#releases) based on your Among Us version.
2. Navigate to your Among Us installation directory.
3. Extract the downloaded files there. Ensure that the `BepInEx` folder is located in the same folder as the `Among Us.exe` file (Check screenshot below).

![Folder Structure](./.github/Images/Folder-Structure.png)

4. Run the game (Please note that the first launch might take some time).
Expand All @@ -83,24 +83,24 @@ Alternatively, if you are already using other mods or already have BepInEx insta

Submerged is available in the languages listed below. If you would like to help translate Submerged to one of the languages listed below or want to correct a translation, please [open an issue](https://github.com/SubmergedAmongUs/Submerged/issues/new/choose/) or contact us at `[email protected]`.

| Language || Status |
|-|:-:|:-:|
| English || - |
| Deutsch || Fully Translated |
| Français || Fully Translated |
| Nederlands || Fully Translated |
| Português (Brasil) || Fully Translated |
| Русский || Fully Translated |
| 日本語 || Fully Translated |
| 简体中文 || Fully Translated |
| 繁體中文 || Fully Translated |
| Español | 🟡 | Partially Translated |
| Bisaya | | Not Translated |
| Español (Latinoamérica) || Not Translated<br>(Using Español) |
| Gaeilge || Not Translated |
| Italiano || Not Translated |
| Português || Not Translated |
| 한국어 || Not Translated |
| Language | | Status |
|-------------------------|:--:|:---------------------------------:|
| English | | - |
| Deutsch | | Fully Translated |
| Français | | Fully Translated |
| Italiano | | Fully Translated |
| Nederlands | | Fully Translated |
| Português (Brasil) | | Fully Translated |
| Русский | | Fully Translated |
| 日本語 | | Fully Translated |
| 简体中文 | | Fully Translated |
| 繁體中文 || Fully Translated |
| Español | 🟡 | Partially Translated |
| Bisaya | | Not Translated |
| Español (Latinoamérica) | | Not Translated<br>(Using Español) |
| Gaeilge | | Not Translated |
| Português | | Not Translated |
| 한국어 | | Not Translated |

# Compatibility

Expand Down Expand Up @@ -156,6 +156,7 @@ For business inquiries, please contact us at `[email protected]`.
- [ItsNiceCraft](https://bento.me/itsnicecraft) - Deutsch
- [MissJukebox](https://www.twitch.tv/missjukebox/) - Español
- Monid73 - Русский
- [PENGUN](https://youtube.com/@PENGUINWITHGUN) - Italiano
- [RevoLou](https://twitter.com/Psyco_Lou/) - Português do Brasil
- RobinRMC - Nederlands
- [SPRLC](https://twitter.com/SuperLanceur) - Français
Expand Down
5 changes: 0 additions & 5 deletions Submerged.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution Files", "{5819678E-32DB-4841-A4F9-89ECE2AE8ADA}"
ProjectSection(SolutionItems) = preProject
nuget.config = nuget.config
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Submerged", "Submerged\Submerged.csproj", "{13ACAAD7-C0BE-468C-8710-14C77F7C24BA}"
EndProject
Global
Expand Down
3 changes: 1 addition & 2 deletions Submerged/BaseGame/BaseGameCodeAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ namespace Submerged.BaseGame;
public enum LastChecked
{
// ReSharper disable InconsistentNaming
v2023_10_24,
v2023_11_28
v2024_3_5
// ReSharper restore InconsistentNaming
}

Expand Down
2 changes: 1 addition & 1 deletion Submerged/BaseGame/Extensions/Minigame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Submerged.BaseGame.Extensions;

public static class MinigameExtensions
{
[BaseGameCode(LastChecked.v2023_10_24, "Entire method is copied from base game because we can't call it from the base pointer since that causes an infinite loop.")]
[BaseGameCode(LastChecked.v2024_3_5, "Entire method is copied from base game because we can't call it from the base pointer since that causes an infinite loop.")]
public static void BaseClose(this Minigame self)
{
bool isComplete;
Expand Down
6 changes: 2 additions & 4 deletions Submerged/BaseGame/Interfaces/IDoorMinigame.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using Hazel;

namespace Submerged.BaseGame.Interfaces;
namespace Submerged.BaseGame.Interfaces;

// ReSharper disable once InconsistentNaming
public sealed partial class AU
{
[BaseGameCode(LastChecked.v2023_11_28)]
[BaseGameCode(LastChecked.v2024_3_5)]
public interface IDoorMinigame
{
[UsedImplicitly]
Expand Down
2 changes: 1 addition & 1 deletion Submerged/BaseGame/Interfaces/ISystemType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Submerged.BaseGame.Interfaces;
// ReSharper disable once InconsistentNaming
public sealed partial class AU
{
[BaseGameCode(LastChecked.v2023_10_24)]
[BaseGameCode(LastChecked.v2024_3_5)]
public interface ISystemType
{
[UsedImplicitly]
Expand Down
2 changes: 1 addition & 1 deletion Submerged/BaseGame/Interfaces/IUsable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ReSharper disable once InconsistentNaming
public sealed partial class AU
{
[BaseGameCode(LastChecked.v2023_10_24)]
[BaseGameCode(LastChecked.v2024_3_5)]
public interface IUsable
{
[UsedImplicitly]
Expand Down
2 changes: 1 addition & 1 deletion Submerged/BaseGame/Patches/AirshipUploadGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class AirshipUploadGameUpdatePatches
{
[HarmonyPatch(typeof(AirshipUploadGame), nameof(AirshipUploadGame.Update))]
[HarmonyPrefix]
[BaseGameCode(LastChecked.v2023_10_24, "Patching the method with it's own code because C# > C++")]
[BaseGameCode(LastChecked.v2024_3_5, "Patching the method with it's own code because C# > C++")]
public static void Prefix(AirshipUploadGame __instance, out bool __runOriginal)
{
__runOriginal = false;
Expand Down
150 changes: 0 additions & 150 deletions Submerged/BaseGame/Patches/ExileController.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Submerged/BaseGame/Patches/TextTranslatorTMP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public static class TextTranslatorTMPPatches
{
[HarmonyPatch(typeof(TextTranslatorTMP), nameof(TextTranslatorTMP.ResetText))]
[HarmonyPrefix]
[BaseGameCode(LastChecked.v2023_10_24, "We are patching this with its own code to get rid of inlining that ruins our translation patches")]
[BaseGameCode(LastChecked.v2024_3_5, "We are patching this with its own code to get rid of inlining that ruins our translation patches")]
public static void ResetTextPatch(TextTranslatorTMP __instance, out bool __runOriginal)
{
__runOriginal = false;
Expand Down
8 changes: 8 additions & 0 deletions Submerged/Debugging/Patches/GameTestingPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ public static void PreventBanPatch(out bool __result)
[HarmonyPrefix]
[HarmonyPriority(Priority.First)]
public static bool StopGameEndingPatch() => false;

[HarmonyPatch(typeof(AprilFoolsMode), nameof(AprilFoolsMode.ShouldShowAprilFoolsToggle))]
[HarmonyPrefix]
public static bool EnableAprilFoolsTogglePatch(out bool __result)
{
__result = true;
return false;
}
}
3 changes: 1 addition & 2 deletions Submerged/Enums/CustomSystemTypes.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;

namespace Submerged.Enums;
Expand Down
10 changes: 10 additions & 0 deletions Submerged/ExileCutscene/Patches/BaseGameResolvingPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ namespace Submerged.ExileCutscene.Patches;
[HarmonyPatch]
public static class BaseGameResolvingPatches
{
public static string LastExileText { get; private set; }

[HarmonyPatch(typeof(ExileController), nameof(ExileController.Begin))]
[HarmonyPostfix, HarmonyPriority(Priority.Last)]
public static void GetTextPatch(ExileController __instance)
{
LastExileText = __instance.completeString;
Message("Grabbing " + __instance + " from ExileController");
}

[HarmonyPatch(typeof(ExileController), nameof(ExileController.Begin))]
[HarmonyPrefix]
public static void ResolvePlayerPatch(ExileController __instance)
Expand Down
Loading

0 comments on commit 17896fe

Please sign in to comment.