ModOrganizer2 / modorganizer

Mod manager for various PC games. Discord Server: https://discord.gg/ewUVAqyrQX if you would like to be more involved
http://www.nexusmods.com/skyrimspecialedition/mods/6194
GNU General Public License v3.0
2.09k stars 158 forks source link

Add support for game Baldur's Gate 3 #1626

Open Ayamzyr opened 2 years ago

Ayamzyr commented 2 years ago

This template is useful to add basic support using https://github.com/ModOrganizer2/modorganizer-basic_games.

If you are vaguely familiar with programming you can try following the instructions on that link to get something working yourself. If you have trouble with that please fill in this template.

Please provide the following information for the game (remove the optional lines you do not use):

Baldur's Gate 3 https://www.nexusmods.com/baldursgate3 G:\SteamLibrary\steamapps\common\Baldurs Gate 3\bin (there's an application in here that opens the launcher here as well) G:\SteamLibrary\steamapps\common\Baldurs Gate 3\Launcher G:\SteamLibrary\steamapps\common\Baldurs Gate 3\Data C:\Users\Owner\Documents\Larian Studios\Baldur's Gate 3 C:\Users\Owner\Documents\Larian Studios\Baldur's Gate 3\PlayerProfiles\Ayamzyr\Savegames C:\Users\Owner\Documents\Larian Studios\Baldur's Gate 3\PlayerProfiles\Ayamzyr\Savegames\Story (not sure if this is a different save path but its in the folder by default) SubID: 365345

Provide additional details regarding the game that could be required for the plugin.

ghost commented 10 months ago

Heyo, I just tried to set this up for myself and I think it may actually not be possible. This is because the game has its .pak mod directory outside of the game's directory (%LocalAppData%\Larian Studios\Baldur's Gate 3\Mods). But then some other mods want to be put in the game's actual directory. I think Mod Organizer isn't best equipped to handle multiple different file directories if I'm not mistaken.

Kiaos commented 10 months ago

game_baldursgate3.txt

Here is the basic game plugin.

This is half way done. Another person needs to make the full plugin that uses https://github.com/Norbyte/lslib to read the .pak files in the %LOCALAPPDATA%\Larian Studios\Baldur's Gate 3\Mods folder and then write to %LOCALAPPDATA%\Larian Studios\Baldur's Gate 3\PlayerProfiles\Public\modsettings.lsx once the mods are added to this file you can then play with mods. I've tested this plugin already and it works. What it does not do is alter the modsettings.lsx which is needed for BG3 to realize their are active mods in that folder. just change the txt to .py and put in mo2/plugins/basic_game/games

chazwarp923 commented 10 months ago

Heyo, I just tried to set this up for myself and I think it may actually not be possible. This is because the game has its .pak mod directory outside of the game's directory (%LocalAppData%\Larian Studios\Baldur's Gate 3\Mods). But then some other mods want to be put in the game's actual directory. I think Mod Organizer isn't best equipped to handle multiple different file directories if I'm not mistaken.

I thought this at first too. Turns out Mod Organizer has an interface for plugins to control where files are placed in the virtual file structure which solves that problem.