Automated SDK Generation for Source 2 Engine Games with cross-platform support and multiple output formats

Core Capabilities

Cross-Platform

Support for Windows and Linux with consistent output across platforms.

Multiple Formats

Generate SDKs in C++23, C23, or IDA-compatible C headers.

Automated Process

Extract SDK definitions from Source 2 binaries with minimal effort.

Usage Instructions

Installation & Setup

Basic Usage

source2gen-loader.exe

The loader will attempt to automatically detect the game path.

Custom Game Path

source2gen-loader.exe --game-path "C:\Games\CS2"

Advanced Options

source2gen-loader.exe --game-path "C:\Games\CS2" --emit-language c

Additional arguments can be passed directly to source2gen via the loader.

Development Setup

Prerequisites

Windows

  • Visual Studio 2019 or newer
  • CMake
  • Conan

Linux

  • g++-13 or newer
  • CMake
  • Conan
Build Instructions

Clone Repository

git clone --recurse-submodules https://github.com/neverlosecc/source2gen.git

Build Example (DEADLOCK)

conan build -o "game=DEADLOCK" --build=missing .

Replace DEADLOCK with your chosen target game.

Output Languages
LanguageMinimum Language Standard
cppC++23
cC23
c-idaC (single file: sdk/ida.h)