Open Gerosity opened 8 months ago
[Error : BepInEx] Error loading [PixelGunCheat 1.0.0]: System.BadImageFormatException: Could not load file or assembly 'PixelGunCheat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (0x80131058)
File name: 'PixelGunCheat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> System.BadImageFormatException: Cannot load a reference assembly for execution.
at System.Runtime.Loader.AssemblyLoadContext.LoadFromPath(IntPtr ptrNativeAssemblyLoadContext, String ilPath, String niPath, ObjectHandleOnStack retAssembly)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at BepInEx.Bootstrap.BaseChainloader1.LoadPlugins(IList
1 plugins) in /home/runner/work/BepInEx/BepInEx/BepInEx.Core/Bootstrap/BaseChainloader.cs:line 336
how to fix?
im fixed, REAL WORKSSS thank you
to build the dll you need to run the command >build(.net) in visual studio and get the dll from "refint"
Here's how you can edit the source code and compile the cheat
I removed drop tp which increase my FPS from 20 to 60 To do this, goto CheatManager.cs, look for: // Drop TP foreach (var coinBonus in FindObjectsOfType())
{
coinBonus.transform.position = main.transform.position;
}
foreach (var armorBonus in FindObjectsOfType())
{
armorBonus.transform.position = main.transform.position;
}
foreach (var itemBonus in FindObjectsOfType())
{
itemBonus.transform.position = main.transform.position;
}
foreach (var weaponBonus in FindObjectsOfType())
{
weaponBonus.transform.position = main.transform.position;
}
Either delete it or comment it out using // or /**/