Custom Map Loader v1.0.0
A BepInEx mod for loading custom terrain maps into Nuclear Option. Custom maps appear as buttons in the New Mission menu. Create maps from heightmap PNGs and play on custom terrain.
Installation
Requires: BepInEx 5.x
Copy MapLoader.dll to Nuclear Option/BepInEx/plugins/
Copy custom map bundles (e.g. map_custom) to the same plugins/ folder
Launch the game
Uninstall: Delete MapLoader.dll and map_ files from plugins/
How to Use
Method 1 - New Mission Menu:
Custom maps appear as [Custom] MapName buttons alongside default maps
Select your custom map and click Create
Heartland loads as base, then custom terrain replaces it
Method 2 - F7 Panel (In-Game):
Press F7 to open settings
Click "Load" next to any map
Adjust height scale (0.5x ~ 2.0x)
"Restore Original Map" to switch back
Multiple Maps:
Place multiple map_ files in plugins/ for multiple options:
map_custom → "Custom"
map_desert → "Desert"
Creating Custom Maps
Requirements:
Unity 2021.3+
Heightmap PNG (white = high, black = low)
(Optional) Color map PNG
Heightmap tools: World Machine, Gaea, etc.
Steps:
Place HeightmapToMesh.cs in Assets/Scripts/Editor/
Place heightmap PNG in Assets/Heightmaps/
Menu: Nuclear Option > Heightmap to Mesh Bundle
Drag heightmap into the slot, optionally add color map
Adjust Mesh Resolution, Width/Length, Max Height
Set Bundle Name to map_yourname format
Click "Build AssetBundle"
Copy output bundle to BepInEx/plugins/
Known Limitations
Custom maps replace visual terrain only (game logic uses Heartland base)
Does not auto-reload on mission restart (use F7 to reload)
World Machine free version: max 1025x1025 heightmap
