-
Notifications
You must be signed in to change notification settings - Fork 0
Installing & Building UrbanDevKit
Morgan Touverey Quilling edited this page Jul 1, 2024
·
1 revision
- Standard CS2 modding toolchain;
- Bun as the package manager and partial replacement for Node in the build toolchain.
- Recommended: enable
--developerMode --uiDeveloperMode
as game launch options.
Here's an example of game launch command that also skips the launcher in Steam:
"C:\Program Files (x86)\Steam\steamapps\common\Cities Skylines II\Cities2.exe" %command% --developerMode --uiDeveloperMode
In development:
- For the UI part: Run
bun dev
to watch for changes in JSDevKit and the two test mods. - For the .NET part: Hit Build in your favorite IDE.
This will also build the test mods, but a current limitation is that the JSDevKit should be built before, be it withbun dev:jsdevkit
orbun build:jsdevkit
.
For a complete build:
- Run
bun build
to build everything UI-related.
Unlikebun dev:*
, this will also run the Biome linter and type checking. - Hit Build in your favorite IDE for the .NET part.
- Shared State Share state between assemblies without linking
- Coroutine Runner Helper to start coroutines from anywhere or wrap them into Tasks.
-
cs2/*
Types as a Dependency Get rid of thattypes/
folder from your codebase.
- Cooperative Preloading Prevent the user to load a game while mods are preloading