diff options
| author | qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> | 2026-03-16 21:44:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-16 21:44:26 -0500 |
| commit | ce739f6045ec72127491286ea3f3f21e537c1b55 (patch) | |
| tree | f33bd42a47c1b4a7b2153a7fb77127ee3b407db9 /COMPILE.md | |
| parent | 255a18fe8e9b57377975f82e2b227afe2a12eda0 (diff) | |
| parent | 5a59f5d146b43811dde6a5a0245ee9875d7b5cd1 (diff) | |
Merge branch 'smartcmd:main' into main
Diffstat (limited to 'COMPILE.md')
| -rw-r--r-- | COMPILE.md | 34 |
1 files changed, 33 insertions, 1 deletions
@@ -3,7 +3,9 @@ ## Visual Studio (`.sln`) 1. Open `MinecraftConsoles.sln` in Visual Studio 2022. -2. Set `Minecraft.Client` as the Startup Project. +2. Set Startup Project: + - Client: `Minecraft.Client` + - Dedicated server: `Minecraft.Server` 3. Select configuration: - `Debug` (recommended), or - `Release` @@ -12,6 +14,17 @@ - `Build > Build Solution` (or `Ctrl+Shift+B`) - Start debugging with `F5`. +### Dedicated server debug arguments + +- Default debugger arguments for `Minecraft.Server`: + - `-port 25565 -bind 0.0.0.0 -name DedicatedServer` +- You can override arguments in: + - `Project Properties > Debugging > Command Arguments` +- `Minecraft.Server` post-build copies only the dedicated-server asset set: + - `Common/Media/MediaWindows64.arc` + - `Common/res` + - `Windows64/GameHDD` + ## CMake (Windows x64) Configure (use your VS Community instance explicitly): @@ -32,6 +45,18 @@ Build Release: cmake --build build --config Release --target MinecraftClient ``` +Build Dedicated Server (Debug): + +```powershell +cmake --build build --config Debug --target MinecraftServer +``` + +Build Dedicated Server (Release): + +```powershell +cmake --build build --config Release --target MinecraftServer +``` + Run executable: ```powershell @@ -39,6 +64,13 @@ cd .\build\Debug .\MinecraftClient.exe ``` +Run dedicated server: + +```powershell +cd .\build\Debug +.\Minecraft.Server.exe -port 25565 -bind 0.0.0.0 -name DedicatedServer +``` + Notes: - The CMake build is Windows-only and x64-only. - Contributors on macOS or Linux need a Windows machine or VM to build the project. Running the game via Wine is separate from having a supported build environment. |
