stanuwu / PixelGunCheat

Pixel Gun 3D PC Cheat
6 stars 2 forks source link

[NOT AN ISSUE] Guide on editing source code #17

Open Gerosity opened 6 months ago

Gerosity commented 6 months ago

Here's how you can edit the source code and compile the cheat

  1. Download the source code (https://github.com/stanuwu/PixelGunCheat -> Green button that says code, download zip)
  2. Extract source code
  3. Create a folder inside source code names "libs"
  4. GoTo PixelGun3D/BepInEx/interop and copy all the files inside there to the "libs" folder (You need to install BepInEx 6 for pixel gun 3d first, guide here -> https://github.com/stanuwu/PixelGunCheat/issues/16
  5. Open PixelGunCheat.csproj in visual studio (Not explaining how, not hard and just use Google/YouTube)
  6. Change "debug" to release and then go to build->Build Solution
  7. Once built, go to PixelGunCheat-master, bin, Release, net6.0 and find PixelGunCheat.dll
  8. Copy and paste that into PixelGun3D/BepInEx/Plugins
  9. Launch game and done

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 /**/

stupedreal commented 6 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(IList1 plugins) in /home/runner/work/BepInEx/BepInEx/BepInEx.Core/Bootstrap/BaseChainloader.cs:line 336

how to fix?

stupedreal commented 6 months ago

im fixed, REAL WORKSSS thank you

stupedreal commented 6 months ago

to build the dll you need to run the command >build(.net) in visual studio and get the dll from "refint"