Systemcluster / The-Witcher-3-Mod-manager

Mod manager for The Witcher 3 🗃

Home Page:https://www.nexusmods.com/witcher3/mods/2678

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command line arguments

basxto opened this issue · comments

It would be nice being able to define folders via command line arguments.
The arguments could be -d/--documents and -e/--executable

Then one could start it with scripts like: (instead of going throug the dialogs the first time)

USER="someuse"
LUTRIS="/home/${USER}/Games/the-witcher-3-wild-hunt-game-of-the-year-edition/drive_c/"
pipenv run python main.py -d "${LUTRIS}users/${USER}/Meine Dokumente/" -e "${LUTRIS}GOG Games/The Witcher 3 Wild Hunt GOTY/bin/x64/witcher3.exe"

This is somewhat related to #18

Is there a way to do something similar to this? It is currently placing folders into my One Drive Documents folder instead of placing them in my User Documents folder.

commented

Thank you for the suggestion! I added the following command line arguments:

-u USERDOCUMENTS, --userdocuments USERDOCUMENTS
    override the documents path
-g GAME, --game GAME
    override the game path
-c CONFIG, --config CONFIG
    override the config path 
commented

@DontBlnkBadWolf I'm not familiar with OneDrive, but currently the documents path is located by getting the default documents path from the Windows API. If this returns a OneDrive location, I assume OneDrive changes some configuration to override this.

If you are referring to mod manager configuration files, you can avoid storing data in your user documents (or OneDrive documents in your case) by moving your config.ini and other files into the mod manager directory. That path is then preferred for all files.

The save and config directory for The Witcher 3 is configured in config.ini, if that path was detected wrong you can correct it there.

Both options can now be set via command line arguments as well if you prefer.