The Cities: Skylines and Cities: Skylines II code mods for CSLModernMap. Both export the current city as a versioned .cmm map archive.
This repository contains the in-game Code Mod source in CS1/ and CS2/.
Renderer source and prebuilt payloads are not included. Official mod releases
include the companion viewer, which reads exported maps without accessing game saves.
- Exports roads, tracks, buildings, functional areas, public transport, terrain, water, and native traffic snapshots.
- Writes city data and optional satellite images to the CMM archive.
- Opens completed exports with the companion renderer included in official releases.
- Preserves native and custom names, area ownership, and facility relationships.
- Shows export and installation progress, with settings available in 12 languages.
CS1 requires Windows, .NET SDK 10 and local game/mod references; see CS1 build setup. CS2 requires Windows, .NET SDK 8+ and the official Cities: Skylines II modding toolchain.
# Cities: Skylines
dotnet build CS1\CSLModernMap.csproj -c Release
# Cities: Skylines II
dotnet build CS2\CSLModernMapCs2.csproj -c ReleaseThe CS1 build produces a verified CS1/bin/private/CSLModernMap.dll.
The CS2 build also deploys into the local game Mods directory; exit CS2 first.
Game/mod assemblies and viewer payloads must be supplied separately. For Windows releases,
stage the signed companion viewer MSIX before building CS2 or assembling the CS1 release folder.
python tools/pack_cs2_renderer.py --msix path/to/viewer.msix
python tools/pack_cs2_renderer.py --msix path/to/viewer.msix --target path/to/CS1-release
The staging command writes the MSIX and its application identity. In game, use Export and Open. On first use or when an update is needed, finish the Windows installation, then return to the game and select Install / Open Viewer. Export Only still just writes the map. The mods do not download required files from the network.
The Code Mod source is MIT-licensed. See LICENSE and THIRD_PARTY_NOTICES.md, including the Carto notice shipped with the mod.
- Liuiuera
- OpenAI Codex
Some code and documentation were generated with AI assistance and reviewed by the project maintainer.