Examples demonstrating how to use the Gothic 3 SDK.
The Gothic 3 SDK examples are built with CMake.
To download and build the Gothic 3 SDK examples (here using Visual Studio 2022) execute the following commands:
git clone https://github.com/georgeto/gothic3sdk-examples
cd gothic3sdk
cmake -S . -B build -G "Visual Studio 17 2022" -A Win32
cmake --build build --config Release -jThe above sequence creates a build directory, generates a Visual Studio solution, and then builds the project in Release mode. If you prefer working from within Visual Studio, you can skip the last build step and instead open the generated solution in Visual Studio and then build from there.
Copy the Script_*.dll build artifacts from the build directory into the scripts folder in your Gothic 3 installation directory.
Every DLL inside the scripts folder following the naming convention Script_*.dll is automatically loaded by the game.
All code, except third-party code, is formatted with clang-format according to the style configured in .clang-format.