From 6ab81a5abc382df7ab75effcc71fa08da0c71460 Mon Sep 17 00:00:00 2001 From: Fsalker Date: Fri, 25 Aug 2023 19:23:39 +0300 Subject: [PATCH] docs: add VS2022 step-by-step compilation tutorial --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 97f7e26..43e30bf 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,17 @@ Because the game export interface has changed, existing mods may be able to be m The API changes discussed here are written from the perspective of the game DLL. +## Compiling (using Visual Studio 2022) + +1. install [vcpkg (click here)](https://vcpkg.io/en/getting-started.html) +2. navigate into `/rerelease` folder (`cd rerelease`) +3. install dependencies `vcpkg integrate install` +4. open `/rerelease/game.sln` in Visual Studio 2022 +5. configure your compiled `game_x64.dll`'s location in `game` project's properties: `game Property Pages > Configuration Properties > Linker > General > Output File > [\Quake 2\rerelease\\game_x64.dll` +6. build `game` project + +If everything went well, your Build will succeed. _(1 succeeded, 0 failed, 0 up-to-date, 0 skipped)_ + ## Compiling The game DLL has only been tested with Clang, VS2019 and VS2022. @@ -1847,4 +1858,4 @@ Spawns the Compass help path effect at the given location. - ReadByte (isplit) - ReadString (s) -Note that `isplit` is offset by 1, so `1` is the first split screen client. \ No newline at end of file +Note that `isplit` is offset by 1, so `1` is the first split screen client.