Create your own Mod DLL for Crysis Wars using modern tools.
You will need a computer that can run Crysis Wars with Windows 10 or later.
Older versions of Windows are also fine as long as they run the tools mentioned below. Linux can also be used, but it requires a special setup (Wine + DXVK + MSVC in Wine), which is not described here.
Choose one of the following:
Some variants require the 1.5 official patch to be installed afterwards.
Tip
Replace the original Crysis Wars executables with C1-Launcher. It provides various quality of life improvements and simply makes the game work.
This is a recommended but optional step. If the original executables work on your computer, you can use them.
winget install -e --id Git.Git
Note
If you already have Visual Studio 2019 or later with Desktop development with C++ workload installed, you can skip this step.
winget install -e --id Microsoft.VisualStudio.2022.BuildTools --override "--wait --passive --includeRecommended --add Microsoft.VisualStudio.Workload.VCTools"
winget install -e --id Microsoft.VisualStudioCode
After the installation, open VS Code, go to Extensions, and install C/C++ Extension Pack to get the following:
For more information, see the official documentation.
Important
The repository (project) folder must be inside Crysis Wars folder.
For example: C:\Crysis Wars\cw-mod-sdk
Crysis Wars folder is expected to be writable without admin rights, so please avoid "Program Files".
Change into Crysis folder:
cd "C:\Crysis Wars"
And clone the repository:
git clone "https://github.com/ccomrade/cw-mod-sdk.git"
With no folder open, click Clone Repository, use this repository URL, and select Crysis Wars folder as the destination.
Just click Code > Download ZIP above and extract it into Crysis Wars folder. Note that Git is not needed this way, but it also means that no version control is available.
Open the folder created in the previous step in VS Code. That's it.
In CMake view, select the configuration you want to use:
And run the build:
Or use the status bar button:
You can also run the build without VS Code. It requires MSVC toolchain command line:
Change into the project folder:
cd "C:\Crysis Wars\cw-mod-sdk"
Available configurations can be viewed using:
cmake --list-presets
Prepare the selected configuration:
cmake --preset release-bin64
Run the build:
cmake --build ..\Mods\MyMod\Bin64
Go to Run and Debug view in VS Code, select what you want to debug, and launch it:
You can also run your mod without VS Code:
..\Bin32\Crysis.exe -mod MyMod
Add -dx9
or -dx10
to run the game in DX9 or DX10 mode. By default, it runs in DX10 mode.
To run 64-bit version, use Bin64
instead of Bin32
.
To run a dedicated server, use CrysisWarsDedicatedServer.exe
instead of Crysis.exe
.