scp222thj / MalumMenu

An easy-to-use Among Us cheat menu with a simple GUI and lots of useful modules.
GNU General Public License v3.0
100 stars 31 forks source link

PlayerControl.RpcRevertShapeshift doesnt exist in v2023.11.28 #39

Closed BananaDude508 closed 11 months ago

BananaDude508 commented 11 months ago

I recompiled the mod to the newest among us version (v2023.11.28), however the mod doesnt open the menu unless the codeblock relating to PlayerControl.RpcRevertShapeshift in NoCooldownPatched.cs. After commenting out the codeblock the mod compiles and launches perfectly fine, except the shapeshift nocooldown doesnt work. PlayerControl.RpcShapeshift codeblock does not need to be commented. In newest version i think that disabling cooldowns does nothing and needs to be updated, other mod still functions as intended in my experience.

Before asked no i have not created an updated repo/fork of malummenu and i dont intend to as you really only need to change 1 line of code, comment out a block and then recompile.

Lukim99 commented 11 months ago

Instead of commenting out PlayerControl.RpcRevertShapeshift, change it to PlayerControl.RpcRejectShapeshift. Its method name has been changed.

susmicrosoftagentboi commented 11 months ago

how do i compile the c# project for the new among us version?

Kopp56-PRO commented 11 months ago

Issue solved. I compiled the updated mod

susmicrosoftagentboi commented 11 months ago

how? i get an error when i change PlayerControl.RpcRevertShapeshift to PlayerControl.RpcRejectShapeshift, and i get an error when i comment out the code. either way, it compiles fine but crashes the game on launch. and i did change the version number in MalumMenuPlugin.cs and MalumMenu.csproj

ayman1623 commented 11 months ago

so can someone give me a step by step to do this

Lukim99 commented 11 months ago

how? i get an error when i change PlayerControl.RpcRevertShapeshift to PlayerControl.RpcRejectShapeshift, and i get an error when i comment out the code. either way, it compiles fine but crashes the game on launch. and i did change the version number in MalumMenuPlugin.cs and MalumMenu.csproj

PlayerControl.RpcRejectShapeshift method takes no parameters. If code of the form PlayerControl.RpcRejectShapeshift(bool) exists, change it to PlayerControl.RpcRejectShapeshift().

Lukim99 commented 11 months ago

so can someone give me a step by step to do this

  1. Download this git
  2. Open with Visual Studio 2022
  3. Update AmongUs.GameLibs.Steam to the latest version in Dependencies -> Packages.
  4. Change all error-producing methods to the latest methods.
  5. Change the configuration to Release and build the solution.
  6. Copy MalumMenu.dll located in MalumMenu-main\src\bin\Debug\net6.0 and paste it into BepInEx\plugins.

I have explained it step by step for you. If you're an idiot who doesn't even understand this, I'm not willing to answer any further.

BananaDude508 commented 11 months ago

Instead of commenting out PlayerControl.RpcRevertShapeshift, change it to PlayerControl.RpcRejectShapeshift. Its method name has been changed.

I can't find a definition for PlayerControl.RpcRejectShapeshift. I have tried building after changing the called methods into reject, even removing bool like you said however compile fails. Error claims there is no definition for PlayerControl.RpcRejectShapeshift, and after reviewing PlayerControl.cs there is no definition for RpcRejectShapeshift

I will be uploading a fork of the git with the updated version until this version is maintained to the newest among us version

https://github.com/BananaDude508/MalumMenu

BananaDude508 commented 11 months ago

So my fork is now redundant, i may add my own features so i wont make it inactive. also i figure out why is wasnt compiling, i updated AmongUs.GameLibs.Steam but i didnt update it in the code :facepalm:

ayman1623 commented 11 months ago

dont understand any of this coding stuff, can someone just tell me how to update the menu so i can use this

scp222thj commented 11 months ago

I have just updated the mod with all the latest assemblies and bugfixes! You can install it here. Sorry it took so long lol