Skip to content

Docs: The Launcher Installs Wemod

Marvin1099 edited this page Jul 13, 2024 · 3 revisions

This is probably the most complex part of the wemod laucher. In essence this:

  • Downloads wemod
  • Copies working prefixes for wemod to run
  • Builds the prefix for wemod to run
    • For this it also grabs winetricks
  • Or downloads the prefix for wemod to run
    • For this the closest online version
      to the active proton version will get downloaded
  • Syncs the wemod data (For example login data)
  • Can also zip a prefix so it can be uploaded

Lets look at all this:

  1. We check if the prefix is a wemod-launcher prefix.
  2. This info is easy to get since the prefix will have a file named
    .wemod_installer in the same folder where the drive_c folder is located.
    So its inside the prefix if the wemod-launcher was previously added.
  3. If this file is found we are done with the prefix install, so now we install wemod
    and sync the wemod data folder into the script folder.
    So we will then continue with:
    Docs: Download EXE and Sync Data
  4. If this file is missing the interesting part starts.
  5. To install the prefix the wemod-launcher script
    will scan the entire parent dir of the base folder.
    This is in hopes of finding a prefix in that folder
    that has this magic .wemod_installer file.
  6. If we find a folder that has this file
    then we copy the folder to the prefix we want to install the prefix on.
    So we copy the working prefix to the new game prefix.
    At this point we are also done with the prefix.
    the .wemod_installer was also copied over after all.
    So we contiune right here:
    Docs: Download EXE and Sync Data
  7. But if we do not find anything we have 2 options:
    • Download a wemod ready prefix i have uploaded on github.
    • Or Build the prefix
  8. If the Download is selected we just download a fitting version from github
    and unpack the prefix into the game.
  9. Now we have the .wemod_installer file and are done with the prefix so we go to:
    Docs: Download EXE and Sync Data
  10. If Building was selected we install winetricks
  11. So we now run winetricks -b sdl cjkfonts vkd3d dxvk2030 dotnet48
    This will install all dependencys of wemod to the game prefix.
  12. After this was successful we add the .wemod_installer file to mark wemod as installed.
    Now since the prefix is done, we go to:
    Docs: Download EXE and Sync Data