To patch an exe you with Python patcher you obviously need Python interpreter. Install newest version here.
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 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
- Goto Visual Studio official website
- Download latest version and install it
- Via Visual Studio Installer install 'Desktop development with C++'
GCC compiler installation:
- Install chocolatey
- Run
choco install mingw --x86 -y --no-progresswhich is gonna be installed atC:\ProgramData\mingw64. - You need paths to
/mingw32/bin/g++.exeand/mingw32/bin/ld.exe
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.
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.
TODO