Skip to content

The BAT Start File

As was mentioned, the bat file is not doing a lot. It’s mostly used so 2 apps can be started in the wine / Proton environment. All it is doing is the following:

  1. Start wemod.exe
  2. Get wemod.exe pid (process ID)
  3. Start the passed arguments as a process and wait. The arguments are the game exe path and the game arguments, so this will start the game with any argument settings you might have.
  4. At this point the game is closed, since we waited for the game to end
  5. We check if the early.tmp file exists. This file exists for around 60 secs after the game starts, so we can track if the game closed too fast, info on the file is here: Docs: The Main Flow
  6. If not, we kill the wemod.exe pid. Otherwise we print that the game closed too fast and wait for any key to be pressed before we close WeMod.
  7. The bat closes and the main Python script can continue, info for that is also here: Docs: The Main Flow