Common issues
Overlay not appearing in game
Overlay not appearing in game
Symptoms:
- No counter display visible during gameplay
- Mod loads successfully but UI is missing
-
Check if the overlay was created:
Look for this log message in BepInEx console:
or
-
Verify chests have spawned:
The overlay only appears after
SpawnChestsis called. If no chests spawn, the overlay won’t initialize. -
Check overlay state:
The overlay may be hidden instead of destroyed. Look for:
-
Screen resolution issues:
The overlay position is calculated as:
On very low resolutions, it may be off-screen.
-
Force overlay recreation:
Start a new run. The overlay is created with
DontDestroyOnLoad, so it should persist between scenes.
Counters not updating
Counters not updating
Symptoms:orIf you see the “paused” message, tracking is disabled. This is intentional when:3. Game events not firing:
Some custom game modes or level types may not trigger the standard spawn methods. Check logs for:4. Counters were reset:
Counters reset on death or stage transitions. This is expected behavior.
- Overlay visible but shows 0/0 for all items
- Counters frozen at specific values
- “Waiting for spawns…” message persists
- You’re in a menu
- The player has died
- Between rounds
Mod conflicts with other BepInEx mods
Mod conflicts with other BepInEx mods
Symptoms:
- Game crashes on startup
- SpawnTracker doesn’t load
- Other mods stop working
- Check load order: SpawnTracker uses Harmony patches. If another mod patches the same methods, conflicts may occur.
-
Look for IL2CPP registration errors:
SpawnTracker registers
ChestOverlaywith IL2CPP:If another mod already registered a type with the same name, this will fail. -
Check BepInEx logs:
Look for error messages containing:
SpawnLoggerChestOverlayAntiparty_SpawnLogger
- Test in isolation: Temporarily disable other mods and enable only SpawnTracker to confirm the conflict.
Chest counter shows wrong values
Chest counter shows wrong values
Common scenarios:Unopened count negative or incorrect:
The counter uses:This prevents negative values, but if Total count wrong:
Total is set when If this method is called multiple times per level, totals will accumulate. Look for:
OnChestOpened fires more times than chests exist, it will clamp to 0.Check logs for:SpawnChests is called:Shady Guy counter doesn't match actual spawns
Shady Guy counter doesn't match actual spawns
Tracking logic:SpawnTracker counts Shady Guys in three states:The overlay shows:This displays disappeared count, not interacted count.
total- spawned viaStart()interacted- player interacted successfullydisappeared- Shady Guy despawned
Overlay persists in menus
Overlay persists in menus
Checking logs
Accessing BepInEx logs
SpawnTracker writes detailed logs using BepInEx’s logging system. Log location:[SpawnLogger][ChestTracker][ShadyGuy][ShrineTracker][Moai][OverlayManager]
Key log messages
Successful load:Using logs for debugging
-
Enable BepInEx console:
Edit
BepInEx/config/BepInEx.cfg: - Check message timestamps: Verify events occur when expected (during gameplay, not in menus)
- Compare counter logs to overlay: The log values should match what’s displayed on-screen
- Track reset events: Confirm counters reset at appropriate times (death, stage transitions)
The mod uses
Plugin.log.LogInfo() for normal events and Plugin.log.LogError() for errors. Check for [Error] level messages if experiencing crashes.Reset behavior
When counters reset
All counters reset to zero in these situations:-
Player death:
-
New round start:
- Via
StartPlaying() - Via
TryInit() - Via
CreateInstances()
- Via
-
Stage transitions:
-
GameManager destruction: