Skip to content

How it works

Thiago Araújo edited this page May 29, 2023 · 2 revisions
Pom-pom

How the presence works??

We have 4 scripts:

  • setup.exe
  • runRPC.bat
  • checkupdate.exe
  • hoi4Presence.exe

setup.exe

This guy is the one that will install the mod for you, it will modify the launcher-settings.json file to modify the launcher to execute runRPC.bat everytime you click play.

He moves checkupdate.exe and hoi4Presence.exe to the documents folder and also he modifies the settings.txt file to save your saves as non-binary files, this is needed for the mod to work, we don't want to modify your saves or your game, we just want to read them to update the presence.

runRPC.bat

This script is the one that runs the mod, it will run the presence (checkupdate.exe and hoi4Presence.exe files)for you. When you open the game using the launcher, the launcher runs this script.

checkupdate.exe

This script checks if there is a new version of the mod, if there is, it will download it and replace the old one when this feature is available.

hoi4Presence.exe

This one is the mod itself, it will show the presence on your discord profile based on your most recently saved game (Hoi4 saves after 1 month). It automatically closes when you close the game, but doesn't open when you open the game, that's why we have the runRPC.bat script.