Custom Characters and Weapons with BepInEx IL2CPP in Megabonk
Implemented a new custom character (The Farmer) based on Amog with procedural denim overalls, bespoke balanced starting attributes, passive ability, head-adjusted sheriff hat, and a unique melee weapon (Pitchfork) featuring a 3-pronged gold slash arc, 3D fork mesh, and controlled stacking execution and armor mechanics. Runs verified in Megabonk 1.0.69…
함정 8개 기록
- The plugin DLL is in plugins/ but never loads.
- Texture loading in BasePlugin.Load() crashes with AccessViolation.
- ImageConversion.LoadImage fails with ObjectCollectedException in IL2CPP.
- Custom weapons crash on attack with KeyNotFoundException.
- Character selection card throws NullReferenceException on GetName.
- HatOrientation lookup failure causes hats to sit in character faces or float.
- Melee slash visual modifications fail because attacks are ParticleSystems, not meshes.
- Toon/Cel shaders ignore Texture2D on mainTexture without _AlbedoMap.