Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.8 KB

File metadata and controls

58 lines (36 loc) · 1.8 KB

Python

To patch an exe you with Python patcher you obviously need Python interpreter. Install newest version here.

Compilers

You will need GCC and Clang compilers and some components of Visual Studio (Yes, patching game engine that was originally built with Visual Studio requires it's components).

Clang

Clang compiler installation:

  • Goto github releases of llvm
  • Download latest one with -x86_64-pc-windows-msvc suffix (or installer -win64.exe)
  • Install into preferred location
  • You need path to /bin/clang++.exe

Visual Studio

  • Goto Visual Studio official website
  • Download latest version and install it
  • Via Visual Studio Installer install 'Desktop development with C++'

GCC

GCC compiler installation:

  • Install chocolatey
  • Run choco install mingw --x86 -y --no-progress which is gonna be installed at C:\ProgramData\mingw64.
  • You need paths to /mingw32/bin/g++.exe and /mingw32/bin/ld.exe

Patcher

After everything installed you need to clone patches repo.

Now you can setup build script:

python main.py [Path to patches folder] [Path to clang++.exe] [Path to ld.exe] [Path to g++.exe]

After you successfully build, you have to test what you've got. You have 2 options:

  • Running patched game with files from FAF client gamedata
  • Running patched game with files from FAF repo

In both cases for better testing results you have to use debugger.

IDE

For creating of patches Visual Studio Code is used with ms-vscode.cpptools extension, which can be installed with Extensions tab. In preferences set default C++ formatter to ms-vscode.cpptools.

Decompiler

TODO