Skip to content

Docs: The BAT Start File

Marvin1099 edited this page Jul 13, 2024 · 3 revisions

As was mentioned the bat file is not doing a lot, Is mostly used so 2 app 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 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 the wait for the game 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 to fast, info on the file is here:
    Docs: The Main Flow
  6. If not we kill the wemod.exe pid.
    Otherwise we print the game closed to 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