Prerequisites
Before installing SpawnLogger, ensure you have the following:MegaBonk
The base game must be installed and working
BepInEx 6.x
BepInEx IL2CPP version for Unity games
Installation steps
Install BepInEx
If you haven’t already installed BepInEx:
- Download BepInEx 6.x IL2CPP for Unity
- Extract the BepInEx folder to your MegaBonk game directory
- Run the game once to generate BepInEx configuration files
- Close the game after it reaches the main menu
Your MegaBonk directory should contain folders like
BepInEx, MegaBonk_Data, and the game executable after extraction.Download SpawnLogger
Obtain the SpawnLogger DLL file:
- Download the latest
SpawnLogger.dllfrom the releases page - Or compile from source if you’re building it yourself
Install the mod
Copy the mod file to the BepInEx plugins directory:
- Navigate to
<MegaBonk Directory>/BepInEx/plugins/ - If the
pluginsfolder doesn’t exist, create it - Copy
SpawnLogger.dllinto thepluginsfolder
Verify installation
To confirm SpawnLogger is working correctly:Check the BepInEx console
When the game launches, a console window should appear (if you haven’t disabled it). Look for these messages:
The console window can be disabled in BepInEx settings, so don’t worry if you don’t see it. Check the log file instead.
Check the log file
If the console isn’t visible, check the log file:
- Navigate to
<MegaBonk Directory>/BepInEx/LogOutput.log - Open the file in a text editor
- Search for “SpawnLogger” to find the initialization messages
Troubleshooting
Mod doesn't load
Mod doesn't load
Symptoms: No SpawnLogger messages in the log fileSolutions:
- Verify you’re using BepInEx 6.x IL2CPP (not the Mono version)
- Ensure
SpawnLogger.dllis in the correctpluginsfolder - Check that BepInEx itself is loading (you should see BepInEx messages in the log)
- Try running the game as administrator
Overlay doesn't appear
Overlay doesn't appear
Symptoms: Mod loads but no overlay is visibleSolutions:
- Make sure you’re in an active round (not in menus)
- Wait for chests to spawn - the overlay appears when chests are detected
- Check the log file for any error messages related to overlay creation
- Verify your game resolution isn’t conflicting with the overlay position
Counters show incorrect values
Counters show incorrect values
Symptoms: Numbers don’t match what you see in-gameSolutions:
- The mod resets between rounds - ensure you’re checking during active gameplay
- Some objects may spawn outside your view but still be counted
- Check the console/log for tracking messages to see what’s being detected
- Try starting a fresh round to reset all counters
Game crashes on startup
Game crashes on startup
Symptoms: MegaBonk crashes when loading modsSolutions:
- Ensure all dependencies are installed (BepInEx, Harmony)
- Check for conflicts with other mods in the
pluginsfolder - Review the
LogOutput.logfile for specific error messages - Try removing other mods temporarily to isolate the issue