3 Easy work on ReGameDLL with Visual Studio
Dmitry Novikov edited this page 2023-11-12 18:14:42 +07:00

Getting started with the project:

  1. Download and install Visual Studio Community using the Visual Studio Installer.
  2. Install component Desktop development with C++ image
  3. Open ReGameDLL_CS/msvc/ReGameDLL.sln with Visual Studio
  4. Set the following properties for the ReGameDLL project: Platform Toolset: v143 (or any available, if newer). Apply these changes to all project configurations (Debug*, Release*). image Or apply the proposed Review Solution Actions image

Set the output directory for mp.dll (optional)

Create a new file regamedll\msvc\PublishPath.txt with the following contents:

C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\dlls

The compiled library mp.dll will be located at the specified path when building the project again.

Building (compiling) a project

Select the ReGameDLL project, click Build. Successful compilation will be reported in the output window, indicating the location of the output file mp.dll. image

Debugging in Counter-Strike

Set project Debugging property like this: image

and Run Local Windows Debugger: image

Result: image