OdinPlus_and_Marketplace_compatibility
Compatibility patch by BlackViking / Forteca
A lightweight standalone BepInEx compatibility plugin for OdinPlus and Marketplace And Server NPCs Revamped.
It prevents the NullReferenceException that can occur when Marketplace's Harmony patch for PieceTable.UpdateAvailable is triggered while OdinPlus initializes its custom Blueprint Tool PieceTable.
The goal is simple: keep both original mods installed, keep their files untouched, and fix only the compatibility conflict between them.
What it fixes
When both mods are installed, Marketplace's PieceTable.UpdateAvailable postfix can be invoked during OdinPlus Blueprint Tool initialization. In the affected setup this can cause:
NullReferenceException
Marketplace.Hammer.MarketplaceHammer+PieceTable_UpdateAvailable_Patch.Postfix
OdinPlus.OdinItem.InitBlueprintTool
This plugin adds a narrow safety guard around that specific initialization conflict. Normal Marketplace PieceTable processing continues through the original Marketplace logic unchanged.
What it keeps intact
- Original OdinPlus DLL remains unchanged.
- Original Marketplace DLL remains unchanged.
- Marketplace NPC systems remain available.
- Marketplace shops, traders, hammer functionality, zones and normal systems remain available.
- OdinPlus villages, NPC systems, quests, factions and Blueprint Tool remain available.
- No original mod code is redistributed or embedded in this compatibility plugin.
- No PowerShell scripts or manual DLL replacement are required.
What it does NOT do
- It does not replace
kg.Marketplace.dll. - It does not replace
OdinPlus.dll. - It does not disable Marketplace.
- It does not disable OdinPlus.
- It does not modify your worlds, characters, NPC data, blueprints or configuration files.
Installation
Install the original versions of OdinPlus and Marketplace And Server NPCs Revamped normally.
Then place:
OdinPlus_and_Marketplace_compatibility.dll
inside:
BepInEx/plugins/
Typical manual layout:
BepInEx/plugins/
OdinPlus.dll
kg.Marketplace.dll
OdinPlus_and_Marketplace_compatibility.dll
That's it. No DLL replacement and no manual patching are required.
Tested with
- Valheim: 0.221.12
- BepInExPack Valheim: 5.4.2333
- OdinPlus: 0.2.6
- Marketplace And Server NPCs Revamped: 9.8.8
Runtime verification
The standalone compatibility plugin has been tested through game startup and world entry with both target mods enabled.
Successful activation is reported in the BepInEx log as:
[OdinMarketCompat] guard active (Marketplace + OdinPlus).
The tested runtime completed without the previous MarketplaceHammer NullReferenceException.
Updating Marketplace / OdinPlus
This release is built and tested for the versions listed above.
After updating either dependency, check BepInEx/LogOutput.log or Player.log. If the expected Marketplace compatibility target changes or no longer exists, an updated release of this plugin may be required.
The compatibility plugin is designed to fail safely rather than intentionally patch unrelated Marketplace code.
Troubleshooting
If the plugin loads but the guard cannot be activated, check the BepInEx log for messages containing:
OdinMarketCompat
Marketplace
OdinPlus
Exception
For support, include the relevant Player.log or LogOutput.log lines.
Uninstall
Simply remove:
OdinPlus_and_Marketplace_compatibility.dll
The original OdinPlus and Marketplace installations remain untouched.
Credits
Created by BlackViking / Forteca.
This is an independent compatibility patch. All rights, names and assets belonging to the original OdinPlus and Marketplace And Server NPCs Revamped projects remain with their respective authors.
Contact
Forteca: https://forteca.net
Discord: https://discord.gg/forteca
Email: forteca.box@gmail.com
⚔ F O R T E C A · ᚠ · F E H U ⚔
Community • Brotherhood • Persistence Since 1999
Forged by Struggle • United by Brotherhood • Enduring Through Time
Founded in 1999, Forteca is an international gaming community built on loyalty, cooperation, creativity and shared adventures.
We are not a seasonal clan. We are a long-lived fellowship.
🛡 Since 1999
🔊 Lore Audio
| 🎧 Forteca Intro | ▶ Play |
| 🥁 The Tenth World | ▶ Play |
| 🎺 Black's War Song | ▶ Play |
| 📯 Forteca Was Forged | ▶ Play |
⚒ Fehu Kingdoms Ecosystem
⚔ Territories & Clan Warfare • 🎯 Bounty System • 🛡 Clan Vaults • 📜 Clan Reputation
🏰 Forteca-Fehu Cluster Server • 🌍 Multi-Realm Experience • 👥 Shared Character Progression
📜 Legacy
ᚠᛟᚱᛏᛖᚲᚨ – ᚱᛖᛚᛗᛊ ᛟᚠ ᚠᛖᚺᚢ
Forged in the fires of friendship and bound by the rune of Fehu,
Forteca stands as a timeless fellowship of builders, warriors and dreamers.
Founded by Black Viking in 1999, the community has endured through generations of games, worlds and friendships.
Honor. Loyalty. Brotherhood.
❤️ Support
Forteca is a community-run gaming project sustained entirely by its members.
All support is used to maintain servers, infrastructure, projects and community events.
We are audited monthly.
Click the badge to support Forteca.
👑 Leadership & Staff 👑
Keeping Forteca alive.
BlackViking |
Dragteca |
JuliusBlessed |
Yggdra |
⚔️ Gamers for Gamers — Since 1999
Thanks also to:
Dzk • Dreanegade • AzathothR • Dave • Ephemeral • KGvalheim • Blacks7ar • Shawesome • JPValheim • BlackThunder • Freyja