MapExpansions
| Latest release | 1.0.0 |
| Download | GitHub · Thunderstore |
| Requires | MelonLoader 0.7.3 |
| API | Reference |
| Help | Discord · Report a bug |
📖 API documentation: docs.doodesch.de/mods/mapexpansions/api/

Framework and API for mods that add map areas and property upgrades. Another mod brings the content, MapExpansions builds it into the world.
For players
Section titled “For players”Install it when a mod asks for it, like Based. On its own it adds nothing you can see.
In co-op, every player needs it and the same version of the mods that use it.
For mod authors
Section titled “For mod authors”Register an ExpansionDefinition in OnInitializeMelon:
- New areas: terrain from a source scene, connections to the main world, regions and a sheet on the phone map.
- Life in the area: NPC and vehicle navigation, buildings, parking lots, deal locations, shops and a police station.
- Properties: copy a property to a new place, or extend an existing one with new floor, grids and docks.
- World states: named states you switch at runtime and take back, for upgrades that build up over time.
- Edits: hide, cut or copy main-world objects, in code or from a JSON layer.
Declare the dependency with [assembly: MelonAdditionalDependencies("MapExpansions")] and add DooDesch-MapExpansions-1.0.0 to your manifest.json. Reference the DLL, do not copy the code.
The map editor lives in Editor/. It is a tool for authors and is not part of the package.
Requirements
- MelonLoader 0.7.3 or newer