Drag. Detect. Install.
Safe drag-and-drop mod installer for Cities: Skylines II — detects packages, blocks unsafe archives, installs to the right folder, and backs up existing mods.
SkylineDock removes the guesswork from manual mod installation. Give it a ZIP,
folder, DLL, or .cok asset and it inspects the package without executing it,
explains what was detected, and performs a recoverable installation only when
the structure is safe and supported. If a user downloads source code instead
of a compiled release, SkylineDock identifies the mistake and directs them to
the official mod page when possible.
-
Accepts ZIP archives, folders, standalone DLLs, and standalone
.cokassets. -
Supports native drag-and-drop when
tkinterdnd2is installed. -
Distinguishes compiled code mods,
.cokassets, source repositories, mixed development packages, unknown files, and unsafe archives. -
Reads
PublishConfiguration.xmland.csprojmetadata without executing or extracting the package. -
Detects a Paradox Mods ID inside a source repository and opens the official mod page instead of copying source code into the game.
-
Detects Steam and the Cities: Skylines II installation across Steam library folders.
-
Lets the user choose and remember the game installation folder manually when Steam auto-detection is unavailable. The selected folder must contain
Cities2.exe; mod files still go to the game's AppData folders. -
Offers an advanced Build trusted source flow when the official CS2 modding toolchain, its required .NET Runtime, the required .NET SDK, and npm are available.
-
Blocks path traversal, archive symlinks, encrypted entries, oversized packages, and suspicious compression ratios.
-
Installs compiled mods transactionally into:
%USERPROFILE%\AppData\LocalLow\Colossal Order\Cities Skylines II\Mods -
Installs
.cokpackages intoImportedData. -
Backs up an existing package and writes an installation receipt under the game's
.skylinedockstate folder.
SkylineDock prefers an official compiled release whenever one is available. If the user deliberately chooses Build trusted source, SkylineDock:
- Detects the solution, .NET SDK version, UI projects, build scripts, and CS2 environment requirements.
- Verifies the selected game installation, auto-detects its official modding
toolchain, checks
dotnetandnpm, and reads the toolchain's ownruntimeconfig.jsonto detect the exact .NET Runtime family it needs. - If a component is missing, shows a customer-friendly one-time setup guide with official download links, including Unity license activation when the game toolchain pauses for it; no environment-variable setup is required.
- Extracts a validated copy into a temporary build directory.
- Redirects both user-data and local-mod output with immutable MSBuild properties so an unvalidated build does not go directly into the live game folder.
- Adds an out-of-tree MSBuild hook that resolves Unity's
mscorlib.dllandSystem.Memory.dllfrom the selected CS2 installation. The mod's source archive is not modified. - Runs a reproducible
npm ciwhen a locked UI project is present, followed by a Release build of the solution. - Scans the output again and installs it transactionally only if it looks like
a compiled CS2 mod. If a command fails, a complete diagnostic log is saved
under
%LOCALAPPDATA%\SkylineDock\logs.
Some official CS2 toolchain releases still target .NET Runtime 6.0 even when a newer .NET SDK is installed. .NET major versions are side-by-side, so a newer runtime does not automatically satisfy that requirement. SkylineDock reads the installed toolchain and links the customer directly to the matching x64 Runtime when it is missing.
This mode executes MSBuild and npm-controlled code with the current Windows user's permissions. The temporary directory prevents common accidental writes; it is not a security sandbox. Only build source from an author you trust.
The app recognizes .rar and .7z, but asks the user to extract them first.
Automatic Paradox subscription, dependency resolution, update checks, rollback
UI, and deeper DLL verification belong to the next milestones.
Python 3.11 or newer is recommended.
py -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
python main.pyThe scanner and CLI have no third-party runtime dependency:
python -m skylinedock scan "C:\Downloads\Traffic-main.zip" --json
python -m skylinedock plan "C:\Downloads\ReadyMod.zip"The installer CLI requires an explicit --yes flag:
python -m skylinedock install "C:\Downloads\ReadyMod.zip" --yesSource requirements can be checked without executing project code:
python -m skylinedock source-check "C:\Downloads\Traffic-main.zip"If Steam auto-detection is unavailable, provide the game folder explicitly:
python -m skylinedock source-check "C:\Downloads\Traffic-main.zip" `
--game-path "D:\SteamLibrary\steamapps\common\Cities Skylines II"Building source requires an intentionally explicit trust flag:
python -m skylinedock build-source "C:\Downloads\Traffic-main.zip" --trust-source-codeRun build_windows.bat on Windows. PyInstaller is not a cross-compiler, so the
Windows executable must be produced on a Windows machine.
python -m unittest discover -s tests -vTraffic-main.zip is a GitHub source repository, not a compiled mod package.
It has no installable DLL. The scanner extracts the following metadata:
- Name: Traffic
- Author: krzychu124
- Source version: 0.2.12.1
- Declared game version: 1.5.*
- Paradox Mods ID: 80095
SkylineDock therefore does not copy the source archive into the game. It offers the official Paradox Mods page and, for trusted source, the advanced build flow.
The older compiled Traffic package is detected separately as a ready code mod.
Even though it has no manifest and its archive has an opaque download name,
SkylineDock infers Traffic from the matching DLL, UI, and native output names.
- Product: SkylineDock
- Repository:
SkylineDock - Executable:
SkylineDock.exe - Tagline: Drag. Detect. Install.
- GitHub description: Safe drag-and-drop mod installer for Cities: Skylines II — detects packages, blocks unsafe archives, installs to the right folder, and backs up existing mods.
- Suggested GitHub topics:
cities-skylines-2,mod-manager,windows,python,tkinter
SkylineDock is an unofficial community project and is not affiliated with or endorsed by Paradox Interactive or the Cities: Skylines II developers.