Skip to content
This repository was archived by the owner on Mar 30, 2026. It is now read-only.

Commit 9940d7d

Browse files
committed
Begin updating to 2021.11.9s, fix some incompatibilities
1 parent 0bd2655 commit 9940d7d

7 files changed

Lines changed: 16 additions & 6 deletions

File tree

AUMInjector/deobfuscate/unobfuscated.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ using ModManager = ModManager;
2121
__declspec(selectany) InnerNetClient_GameState__Enum InnerNetClient_GameState__Enum_Joined = InnerNetClient_GameStates__Enum::Joined;
2222
__declspec(selectany) InnerNetClient_GameState__Enum InnerNetClient_GameState__Enum_Started = InnerNetClient_GameStates__Enum::Started;
2323
__declspec(selectany) InnerNetClient_GameState__Enum InnerNetClient_GameState__Enum_Ended = InnerNetClient_GameStates__Enum::Ended;
24-
__declspec(selectany) bool GameData_PlayerInfo__Fields::* IsImposter = &GameData_PlayerInfo__Fields::IsImpostor;
25-
__declspec(selectany) int32_t GameData_PlayerInfo__Fields::* ColorId = &GameData_PlayerInfo__Fields::ColorId;
24+
2625
__declspec(selectany) Color32__Array* Palette__StaticFields::* PlayerColors = &Palette__StaticFields::PlayerColors;
2726
__declspec(selectany) LightSource* PlayerControl__Fields::* MyLight = &PlayerControl__Fields::myLight;
2827

AUMInjector/deobfuscate/version.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
#define GAME_VERSION_2021_5_25s 202105250
1515
#define GAME_VERSION_2021_6_15s 202106150
1616
#define GAME_VERSION_2021_6_30s 202106300
17+
#define GAME_VERSION_2021_11_9s 202111090
1718
#ifndef GAME_VERSION
18-
#define GAME_VERSION GAME_VERSION_2021_6_30s
19+
#define GAME_VERSION GAME_VERSION_2021_11_9s
1920
#endif
2021

2122
#if GAME_VERSION == GAME_VERSION_2020_9_22s
@@ -50,6 +51,8 @@
5051
#define version_text "2021.6.15s"
5152
#elif GAME_VERSION == GAME_VERSION_2021_6_30s
5253
#define version_text "2021.6.30s"
54+
#elif GAME_VERSION == GAME_VERSION_2021_11_9s
55+
#define version_text "2021.11.9s"
5356
#else
5457
#error Unknown game version!
5558
#endif

AUMInjector/user/GameData.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ namespace AUM
3333
return *iter;
3434
}
3535

36+
#ifdef DEV_TOOLS
3637

3738
Color Game::GetColor(PlayerControl* control)
3839
{
@@ -55,6 +56,8 @@ namespace AUM
5556
return GetColor(control);
5657
}
5758

59+
#endif
60+
5861
Vec2 Game::GetPosition(PlayerControl* control)
5962
{
6063
Vector2 pos = PlayerControl_GetTruePosition_Trampoline(control, NULL);

AUMInjector/user/GameData.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ namespace AUM
2626
// Get current list of player controls in game
2727
static std::vector<PlayerControl*> GetControls();
2828

29+
#ifdef DEV_TOOLS
30+
2931
// Get color from existing player control
3032
static Color GetColor(PlayerControl* control);
3133
// Get updated player control from Net ID and then grab color
3234
static Color GetColor(int netID);
35+
36+
#endif
37+
3338
// Get position from existing player control
3439
static Vec2 GetPosition(PlayerControl* control);
3540
// Get updated player control from Net ID and then grab position

AUMInjector/user/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void PlayerControl_FixedUpdate_Hook(PlayerControl* __this, MethodInfo* method)
7575
// From Player Control, get the Player Data
7676
PlayerInfo* Data = PlayerControl_GetData_Trampoline(__this, NULL);
7777
// And now we can get if we are imposter.
78-
bool isImposter = Data->fields.*IsImposter;
78+
bool isImposter = (int32_t)Data->fields.Role->fields.TeamType & (int32_t)RoleTeamTypes__Enum::Impostor;
7979
mumblePlayer.SetImposter(isImposter);
8080

8181
// Set if player is using radio

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Patch versions refer to unmarked Steam updates where the game version did not ch
2020

2121
**Use the installer:** Download: [Latest release](https://github.com/StarGate01/AmongUs-Mumble/releases/download/v1.0.0.14/AmongUs-Mumble-Installer.exe)
2222

23-
**Latest mod version:** Release 2021.6.30s, Mod manual download: [1.0.0.22](https://github.com/StarGate01/AmongUs-Mumble/releases/tag/v1.0.0.22)
23+
**Latest mod version:** Release 2021.11.9s, Mod manual download: [1.0.0.23](https://github.com/StarGate01/AmongUs-Mumble/releases/tag/v1.0.0.23)
2424

2525
**Older versions:** [Versions table](https://github.com/StarGate01/AmongUs-Mumble/wiki/Versions)
2626

setup.bat.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ REM set the path to your game folder
44
SET "AMONGUS=C:\Steam\steamapps\common\Among Us"
55

66
REM set the version of the generated deobfuscations
7-
SET "AMONGUS_VERSION=2021_6_30s"
7+
SET "AMONGUS_VERSION=2021_11_9s"
88

99
REM set the path of tools
1010
SET "IL2CPPINSPECTOR=C:\Users\Christoph\Documents\GitHub\Il2CppInspector\Il2CppInspector.CLI\bin\Release\netcoreapp3.1\win-x64\publish\Il2CppInspector.exe"

0 commit comments

Comments
 (0)