Code Monkey home page Code Monkey logo

reactor's Introduction

Reactor

CI GitHub release Discord

Modding api for Among Us

Featuring amazing features like:

Documentation (including installation guide, how to create a mod and all that cool stuff)

This mod is not affiliated with Among Us or Innersloth LLC, and the content contained therein is not endorsed or otherwise sponsored by Innersloth LLC. Portions of the materials contained herein are property of Innersloth LLC. © Innersloth LLC.

reactor's People

Contributors

alexejhero avatar amsyarasyiq avatar daemonbeast avatar datguy1 avatar dorcomando avatar galster-dev avatar js6pak avatar miniduikboot avatar simonkellly avatar ziadmontaser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reactor's Issues

When Reactor get Updated ?

hey among us release an new update on 13/6/23 and Reactor dosent release an new update i know you make an comment "" update to 2023.6.13 but there no release update

Cant join games.

I used the default template.
When I try to join a game it just shows a black screen.

Error :Unhollower

[Error :Unhollower] Exception while unhollowing: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'UnityEngine.CoreModule, Version=3.7.1.6, Culture=neutral, PublicKeyToken=null'

Can you please say why I got this error?

Thank you

Unable to build project - The "GenerateReferences" task failed unexpectedly.

I've setup my workspace as set out by https://docs.reactor.gg/docs and I get this issue when trying to build. I'm not sure what I could be doing differently, I've tried deleting and regetting AmongUs, I've also updated to a new oxygenfilter version on nuget.

The "GenerateReferences" task failed unexpectedly.
System.NullReferenceException: Type GOBEMNFEJPH (name: EnterCodeMinigame) was not found!
at Reactor.OxygenFilter.ObfuscationMapper.<>c__DisplayClass8_0.g__MapType|1(MappedType type, TypeDefinition typeDef)
at Reactor.OxygenFilter.ObfuscationMapper.Map()
at Reactor.OxygenFilter.OxygenFilter.Start(String mappings, FileInfo dumpedDll, FileInfo outputDll)
at Reactor.OxygenFilter.MSBuild.GenerateReferences.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() ExtraRoles C:\Users\USER\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.3\build\Reactor.OxygenFilter.MSBuild.props 27

itch.io version does not launch with reactor

When I try to launch with reactor, following the steps in the quickstart guide, reactor does not load properly. The BepInEx log says :

[Error : BepInEx] Error loading [Reactor 0.4.0-ci.55] : Could not load type Steamworks.SteamAPI, Assembly-CSharp-firstpass, Version=3.7.1.6, Culture=neutral, PublicKeyToken=null while decoding custom attribute: (null)

RPC Method Potential Bug

I am unsure as to why with the newest update of AU the RPC Methods I had in place now throw a null reference error, I am not getting any inline code errors but the attached log should give some insight.

LogOutput.log

2.0.0 not working on linux

Since version 2.0.0 moved to CoreCLR Among Us doesn't launch. In the debug console i see something about a newer wine version but since i have the game on steam i use proton and cant manually update wine. It looks like its running but it gets stuck on "[Il2CppInteropGen] Writing assemblies...". Anyone got 2.0.0 running on Linux?
system specs:
Artix Linux 6.0.6-artix1-1
KDE Plasma 5.26.2
Proton Experimental, Proton GE, Proton 7.04 tested.

Self-Explanatory

image

i have reinstalled bepinex and reactor
started among us with bepinex

version is 12.9 + .net is 5.0

Building issue

I am trying to test, to get an understanding of how modding works, and when I build it always ends in an error. After changing some of the .csproj properties I got different errors but still I am unable to build the mod out. I am using the "dotnet build" command and this is what my current .csproj looks like.

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>netstandard2.1</TargetFramework>
        <Version>1.0.0</Version>
        <Mappings>NuclearPowered/Mappings:0.4.0</Mappings>

        <Description>Testing out building a new mod</Description>
        <Authors>Earnest Gibbs</Authors>
    </PropertyGroup>

    <PropertyGroup Condition="'$(GamePlatform)' == 'Steam'">
        <GameVersion>2021.4.14s</GameVersion>
        <DefineConstants>$(DefineConstants);STEAM</DefineConstants>
    </PropertyGroup>

    <PropertyGroup Condition="'$(GamePlatform)' == 'Itch'">
        <GameVersion>2021.4.14s</GameVersion>
        <DefineConstants>$(DefineConstants);ITCH</DefineConstants>
    </PropertyGroup>

    <ItemGroup>
        <Deobfuscate Include="$(AmongUs)\BepInEx\plugins\Reactor-$(GameVersion).dll" />

        <PackageReference Include="Reactor.OxygenFilter.MSBuild" Version="0.3.0" />
    </ItemGroup>

    <Target Name="Copy" AfterTargets="Reobfuscate">
        <Copy SourceFiles="$(OutputPath)reobfuscated/$(AssemblyName)-$(GameVersion).dll" DestinationFolder="$(AmongUs)/BepInEx/plugins/" Condition="'$(Configuration)' == 'Debug'" />
    </Target>
</Project>

This is the error I am getting.

C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018: The "GenerateReferences" task failed unexpectedly. [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]
C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018: System.NullReferenceException: Field <>9__93_0 (name: __9__93_0) was not found in EOSManager/<>c! [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]
C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Reactor.OxygenFilter.ObfuscationMapper.<>c__DisplayClass8_0.<Map>g__MapType|1(MappedType type) [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]
C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Reactor.OxygenFilter.ObfuscationMapper.Map() [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]
C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Reactor.OxygenFilter.OxygenFilter.Start(String mappings, FileInfo dumpedDll, FileInfo outputDll) [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]
C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Reactor.OxygenFilter.MSBuild.GenerateReferences.Execute() in /home/js6pak/Development/AmongUs/Reactor.OxygenFilter/Reactor.OxygenFilter.MSBuild/GenerateReferences.cs:line 68 [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]
C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]
C:\Users\maste\.nuget\packages\reactor.oxygenfilter.msbuild\0.3.0\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\Users\maste\Desktop\ModdingAmongUsFolder\TestPlugin\TestPlugin\TestPlugin.csproj]  

Discord

The Discord Link Does Not Work
Pls Fix It :)

Unable to Launch

When trying to launch mods, I get "[Error : BepInEx] Error loading [Reactor 1.0.0-ci.83] : Exception has been thrown by the target of an invocation."

Reactor.Unstrip

hey guys is Reactor.Unstrip have been removed ?? or deplaced to annother folder what is the equivalent and thanks

Reactor not loading

In bepinix console, it showes that only one plugin to load and thats my plugin created with Reactor.Template, it doesnt load Reactor.dll and when loading my mod it showes error - Could not load [mymod 1.0.0-dev] because it has missing dependencies: gg.reactor.api

not working on linux

[Error : BepInEx] Error loading [Reactor 1.2.3-ci.138] : Exception has been thrown by the target of an invocation.

Crashing issue

Crashes occur on newer versions of BepInEx just by joining a game or joining freeplay.
Pretty easy to reproduce: download a newer version of BepInEx, it wont crash until you use Reactor which confirms its a Reactor issue. This isn't my problem either, as other people have tried it and had the same problem.

The last working version is 530.

CodeIsNotAmongUs

No more access to CodeIsNotAmongUs ? Is it private now ? If yes, why ?

Reactor broke (again)

log

[Error  :    Detour] System.MissingMethodException: Method not found: void Hazel.Udp.UnityUdpClientConnection..ctor(Il2CppSystem.Net.IPEndPoint,Hazel.IPMode)
 at (wrapper dynamic-method) AuthManager.DMD<AuthManager::CreateDtlsConnection>(string,uint16)
 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.(il2cpp -> managed) CreateDtlsConnection(intptr,uint16,UnhollowerBaseLib.Runtime.Il2CppMethodInfo*)

reason (at least i think so?)

Hazel.Udp.UnityUdpClientConnection doesnt have (Il2CppSystem.Net.IPEndPoint,Hazel.IPMode) as a constructor anymore
instead it now has (Hazel.ILogger logger,Il2CppSystem.Net.IPEndPoint remoteEndPoint,Hazel.IPMode ipMode)

dotPeek64 2021 3 1_eWCtMcGeV8

Error While Building Mod

Hi,
I Installed Reactor.Template from command line and when used dotnet new reactor -n NameOfYourPlugin,
it made the mod for Reactor 2.0.0 but currently latest is 2.1.0,
When I Manually changed The Reactor Version In .csproject file,
It Shows Error While Building
Here's The LOG OUTPUT:

MSBuild version 17.4.0+18d5aef85 for .NET
  Determining projects to restore...
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102: Unable to find package Re
actor with version (>= 2.1.0) [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 4 version(s) in
 nuget.org [ Nearest version: 2.0.0 ] [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 0 version(s) in
 BepInEx [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
  Failed to restore E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj (in 1.89 sec).

Build FAILED.

E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102: Unable to find package Re
actor with version (>= 2.1.0) [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 4 version(s) in
 nuget.org [ Nearest version: 2.0.0 ] [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice\AmongVoice.csproj : error NU1102:   - Found 0 version(s) in
 BepInEx [E:\advance-modder\-amongUs\2022.12.8e\AmongVoice\AmongVoice.sln]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:03.59

Thanks,

BepInEx Error

Hello, I'm starting to make an among us imposter role mod and it said to start I need to install the Reactor.dll file, so I did and this is what came out of the console:
[Error : BepInEx] Error loading [Reactor 1.2.0-rc.1] : Exception has been thrown by the target of an invocation.
What do I do to fix this? Also, I'm on version 2021.11.9.5s

Deobfuscation error

i just followed the docs and when i launch it it gives me this error :
Severity Code Description Project File Line Suppression State Error MSB4018 The "Deobfuscate" task failed unexpectedly. Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'netstandard, Version=2.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters) at Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name) at Mono.Cecil.MetadataResolver.Resolve(TypeReference type) at Mono.Cecil.TypeReference.Resolve() at Reactor.OxygenFilter.MSBuild.Deobfuscate.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() tuto C:\Users\NATAEL\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props 51

Releases?

Please upload a release as I am having issues building, thank you. 👍

Reactor Is Crashing While Loading

When I Installed Reactor in Among Us,
In Top Left Corner,
It Is Neither Showing BepInEx Version nor Reactor Version,
When I Checked The Log,
Reactor Is Getting Errors,
Here's The Log:

[Message: Preloader] BepInEx 6.0.0-be.663 - Among Us
[Message: Preloader] Built from commit 5796f535644cb29af2a2d0a3e44fbce21a9baaf3
[Info   :   BepInEx] System platform: Windows 10 64-bit
[Info   :   BepInEx] Process bitness: 32-bit (x86)
[Info   :   BepInEx] Running under Unity 2020.3.22f1
[Info   :   BepInEx] Runtime version: 6.0.7
[Info   :   BepInEx] Runtime information: .NET 6.0.7
[Info   : Preloader] 0 patcher plugins loaded
[Info   : Preloader] 0 assemblies discovered
[Message:AssemblyPatcher] Executing 0 patch(es)
[Message:   BepInEx] Chainloader initialized
[Info   :Il2CppInterop] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[Info   :   BepInEx] 1 plugin to load
[Info   :   BepInEx] Loading [Reactor 2.1.0]
[Info   :Il2CppInterop] Registered mono type Reactor.Utilities.Dispatcher in il2cpp domain
[Info   :Il2CppInterop] Registered mono type Reactor.ReactorPlugin+ReactorComponent in il2cpp domain
[Info   :Il2CppInterop] Registered mono type Reactor.Utilities.Coroutines+Component in il2cpp domain
[Error  :Il2CppInterop] Assembly Il2Cppmscorlib.dll is not registered in il2cpp
[Info   :Il2CppInterop] Registered mono type Reactor.Utilities.Extensions.StreamExtensions+StreamWrapper in il2cpp domain
[Error  :   BepInEx] Error loading [Reactor 2.1.0]: HarmonyLib.HarmonyException: Patching exception in method static System.Collections.Generic.IEnumerable<System.Reflection.MethodBase> Reactor.Networking.Rpc.CustomRpcManager+HandleRpcPatch::TargetMethods()
 ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.TypeInitializationException: The type initializer for 'HandleRpcPatch' threw an exception.
 ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not find or load a type. (0x80131522)
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.Assembly.GetTypes()
   at Reactor.Networking.Rpc.CustomRpcManager.HandleRpcPatch..cctor() in /_/Reactor/Networking/Rpc/CustomRpcManager.cs:line 81
System.TypeLoadException: Could not find or load a type. (0x80131522)
   --- End of inner exception stack trace ---
   at Reactor.Networking.Rpc.CustomRpcManager.HandleRpcPatch.get_InnerNetObjectTypes() in /_/Reactor/Networking/Rpc/CustomRpcManager.cs:line 81
   at Reactor.Networking.Rpc.CustomRpcManager.HandleRpcPatch.TargetMethods() in /_/Reactor/Networking/Rpc/CustomRpcManager.cs:line 85
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at HarmonyLib.PatchClassProcessor.RunMethod[S,T](T defaultIfNotExisting, T defaultIfFailing, Func`2 failOnResult, Object[] parameters)
   --- End of inner exception stack trace ---
   at HarmonyLib.PatchClassProcessor.ReportException(Exception exception, MethodBase original)
   at HarmonyLib.PatchClassProcessor.Patch()
   at HarmonyLib.Harmony.<PatchAll>b__11_0(Type type)
   at HarmonyLib.CollectionExtensions.Do[T](IEnumerable`1 sequence, Action`1 action)
   at HarmonyLib.Harmony.PatchAll(Assembly assembly)
   at HarmonyLib.Harmony.PatchAll()
   at Reactor.ReactorPlugin.Load() in /_/Reactor/ReactorPlugin.cs:line 65
   at BepInEx.Unity.IL2CPP.IL2CPPChainloader.LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly) in /home/runner/work/BepInEx/BepInEx/Runtimes/Unity/BepInEx.Unity.IL2CPP/IL2CPPChainloader.cs:line 134
   at BepInEx.Bootstrap.BaseChainloader`1.LoadPlugins(IList`1 plugins) in /home/runner/work/BepInEx/BepInEx/BepInEx.Core/Bootstrap/BaseChainloader.cs:line 411
[Message:   BepInEx] Chainloader startup complete

Thanks,

Error when building mod

I started with Among Us mod making a few days ago, I set everything up and followed the instructions and everything worked. I could build my mods and it would display / work as intended. Today, out of the blue a lot of errors started showing up. The root of this (I found) was this:
``
Severity Code Description Project File Line Suppression State
Error MSB4018 The "GenerateReferences" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Cecil, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e' or one of its dependencies. The system cannot find the file specified.
File name: 'Mono.Cecil, Version=0.11.2.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e'
at Il2CppDumper.DummyAssemblyExporter.Export(Il2CppExecutor il2CppExecutor, String outputDir, Boolean addToken)
at Il2CppDumper.Il2CppDumper.PerformDump(String gameAssemblyPath, String metadataDatPath, String outputDirectoryPath, Config config, Action`1 reportProgressAction)
at Reactor.OxygenFilter.MSBuild.GenerateReferences.Execute() in /home/js6pak/Development/AmongUs/Reactor.OxygenFilter/Reactor.OxygenFilter.MSBuild/GenerateReferences.cs:line 56
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].xx
``

Is this something on my part?

ReactorVersionShower && VersionShower patches

Hi, I'm actually trying to make a mod for among us and using ur library.

I wanna show the version of my mod, But I Wanna do thing properly and get ReactorVersionShower and the game VersionShower so I can display the infos as I want.
But so far I only did manage to get the game VersionShower with this line :

var original = UnityEngine.Object.FindObjectOfType<VersioShower>();,

and I tried with :

var reactorgo = UnityEngine.Object.FindObjectOfType<ReactorVersionShower>();

but I got an error :

D:\Projects\Projets[Plugin]\Among_Us\Hall_of_US\HallOfUs\HallOfUs\Patches\VersionShowerUpdate.cs(3,15): error CS0234: The type or namespace name 'ReactorVersionShower' does not exist in the namespace 'Reactor' (are you missing an assembly reference?) [D:\Projects\Projets[Plugin]\Among_Us\Hall_of_US\HallOfUs\HallOfUs\HallOfUs.csproj]

And I cant find a solution :x

Edit :

Nevermind, after looking at the namespace and look at the class ReactorVersionShower, I manage to used it correctly :)

FixedUpdate error

So I copied your template, but what I got rn is an error that says:
image
My code:

using BepInEx;
using BepInEx.Configuration;
using BepInEx.IL2CPP;
using HarmonyLib;
using Reactor;

namespace Reactor.Template
{
    [BepInPlugin(Id)]
    [BepInProcess("Among Us.exe")]
    [BepInDependency(ReactorPlugin.Id)]
    public class TemplatePlugin : BasePlugin
    {
        public const string Id = "me.amogus.mod";

        public Harmony Harmony { get; } = new Harmony(Id);

        public ConfigEntry<string> Name { get; private set; }

        public override void Load()
        {
            Name = Config.Bind("Amogus", "Mod", ":>");

            Harmony.PatchAll();
        }

        [HarmonyPatch(typeof(PlayerControl), nameof(PlayerControl.FixedUpdate))]
        public static class UpdatePatch
        {
            public static void Postfix(PlayerControl __instance)
            {
                __instance.nameText.Text = PluginSingleton<TemplatePlugin>.Instance.Name.Value;
            }
        }
    }

Mod No Longer Gets Copied After Getting Built

I hope I am in the correct place.
In the section Compile the Example mod it says run dotnet build to compile that succeeds. The notice after it says that it will get copied to the proper folder BepInEx/plugins. It doesn't get copied over. It use to, not anymore.

I manually did copy it into the folder.

Here is what I have set up
image

'The "GenerateReferences" task failed unexpectedly' when attempting to run dotnet build

I've been trying to follow the instructions in the docs and I'm running into the following error when attempting to run dotnet build in the project directory:

Build FAILED.

C:\Users\firec\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018: The "GenerateReferences" task failed unexpectedly. [C:\Users\firec\Documents\AmongoUs\AmongoUs\AmongoUs.csproj]
C:\Users\firec\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018: System.NullReferenceException: Object reference not set to an instance of an object. [C:\Users\firec\Documents\AmongoUs\AmongoUs\AmongoUs.csproj]
C:\Users\firec\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Il2CppDumper.Il2CppExecutor..ctor(Metadata metadata, Il2Cpp il2Cpp) [C:\Users\firec\Documents\AmongoUs\AmongoUs\AmongoUs.csproj]
C:\Users\firec\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Il2CppDumper.Il2CppDumper.PerformDump(String gameAssemblyPath, String metadataDatPath, String outputDirectoryPath, Config config, Action`1 reportProgressAction) [C:\Users\firec\Documents\AmongoUs\AmongoUs\AmongoUs.csproj]
C:\Users\firec\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Reactor.OxygenFilter.MSBuild.GenerateReferences.Execute() [C:\Users\firec\Documents\AmongoUs\AmongoUs\AmongoUs.csproj]
C:\Users\firec\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Users\firec\Documents\AmongoUs\AmongoUs\AmongoUs.csproj]
C:\Users\firec\.nuget\packages\reactor.oxygenfilter.msbuild\0.2.9\build\Reactor.OxygenFilter.MSBuild.props(37,9): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [C:\Users\firec\Documents\AmongoUs\AmongoUs\AmongoUs.csproj]
    0 Warning(s)
    1 Error(s)

My .csproj file contain the updated values for mappings (0.2.0), Among Us (2021.3.5), and OxygenFilter (0.2.9).

Thanks in advance!

Reactor broke (Among us update)

Among us updated so it broke stuff
Among_Us_g0OQrERYZe

currently only found one issue will update if im going to find more

online not working

System.MissingMethodException: Method not found: void .ServerInfo..ctor(string,string,uint16)
  at (wrapper dynamic-method) DnsRegionInfo.DMD<DnsRegionInfo::PopulateServers>(DnsRegionInfo)
  at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.(il2cpp -> managed) PopulateServers(intptr,UnhollowerBaseLib.Runtime.Il2CppMethodInfo*)
soooo yeaaaaa among us updates at the worst time possible

Cannot Use any External Library in Combination with Reactor

I currently have a working plugin with Reactor. I need a library that can deserialize/serialize json to go with it. No biggie, I can just use Newtonsoft.Json. However, I can't seem to get any external libraries (installed with nuget) to work in combination with Reactor. Newtonsoft.Json seems to act the strangest, likely since it is already referenced by Reactor.OxygenFilter.MSBuild.

When I have Newtonsoft.Json 13.0.1 installed, the code compiles and runs without issues. However, as soon as I try to execute JsonConvert.SerializeObject(...) within the library, BepInEx throws the following exception:

Method not found: string Newtonsoft.Json.JsonConvert.SerializeObject(object)

In addition, if I try to use any other library within Reactor, it also compiles/runs fine. However, when I try to execute a function within the library, BepInEx throws the following exception:

Error loading [TestMod 1.0.0] : Could not load file or assembly 'LibraryName, Version=5.0.0.0, Culture=neutral, PublicKeyToken=...' or one of its dependencies.

I have tried using various other libraries, but they all threw the same error. I have also tried compiling manually with dotnet build with no success. Is this a problem with Reactor or am I doing something wrong?

Cannot get Reactor.Template

If I do what in the logs is written, I'm getting this error by executing the command dotnet new reactor -n {{ToManyRoles}}

Couldn't find an installed template that matches the input, searching online for one that does... Matches from template source: NuGet Template name "Reactor.Template" (reactor) from author "NuclearPowered" in pack Reactor.Template To use this template, run the following command and try again: dotnet new -i Reactor.Template::1.0.2

Then when I do dotnet new -i Reactor.Template::1.0.2 this error occures (I'm sorry that the error is in german):

Wiederherzustellende Projekte werden ermittelt... C:\Program Files\dotnet\sdk\5.0.103\Microsoft.Common.CurrentVersion.targets(93,5): error MSB4184: Der Ausdruck "[Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKLocation(Windows, 7.0)" kann nicht ausgewertet werden. Could not find a part of the path 'C:\Program Files (x86)\Microsoft SDKs'. [C:\Users\leand\.templateengine\dotnetcli\v5.0.103\scratch\restore.csproj]

After that the Folder is still empty and I don't know what to do

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.