Skip to content

Compiling from source

Thiago Araújo edited this page Nov 2, 2023 · 1 revision

Compiling from source

You dont believe in my .exe files? :(

Go to /DiscordRPC and execute it using pyinstaller:

pyinstaller.exe main.py --name hoi4Presence --noconsole --clean

Don't compile in one file, it wont work.

Configuring the batch

The batch is for executing the presence without doing it yourself.

In launcher-settings.json (in your game folder), change exePath:

"exePath": "runRPC.bat",

If the save game folder isn't in your documents folder change the line in runRPC.bat manually.

Changing settings.txt

in settings.txt, (in your save folder) change:

save_as_binary=no

and you're done.