cyberrumor / ammo

Almost Manual Mod Organizer - Linux MO for Bethesda Games
GNU General Public License v2.0
25 stars 6 forks source link

GOG support #42

Open duran55 opened 6 months ago

duran55 commented 6 months ago

Hi, any plan on adding Skyrim GOG support?

cyberrumor commented 6 months ago

It should be possible but I don't own Skyrim on GOG so I have no way to test yet. I'll pick it up when a decent sale rolls around and add support.

cyberrumor commented 5 months ago

They finally had a sale! I'll start working on this soon.

duran55 commented 5 months ago

Good. Meanwhile I managed to run it by adding/changing below lines in game_controller.py:

myuser = os.getlogin()
app_id = self.ids[game_selection.name]
pfx = Path.home() / ".wine"
directory = game_selection.library / f"{game_selection.name}"
app_data =  f"{pfx}/drive_c/users/{myuser}/Local Settings/Application Data"
dlc_file = app_data / Path("Skyrim Special Edition GOG/DLCList.txt")
plugin_file = app_data / Path("Skyrim Special Edition GOG/Plugins.txt")
data = directory / "Data"

I hope it helps. For some unknown reason it was not working until I change app_data path from .../AppData/Local to .../Local Settings/Application Data

cyberrumor commented 5 months ago

In the latest update, you should now be able to add a json file in whatever dir you plan to use for --conf, where that file is named after your game. Contents should set the paths, like so:

~/.local/share/ammo/Skyrim Special Edition GOG.json:

{
    "directory":   "/home/cyberrumor/Games/gog/the-elder-scrolls-v-skyrim-special-edition/drive_c/GOG Games/Skyrim Anniversary Edition",
    "data":        "/home/cyberrumor/Games/gog/the-elder-scrolls-v-skyrim-special-edition/drive_c/GOG Games/Skyrim Anniversary Edition/Data",
    "dlc_file":    "/home/cyberrumor/Games/gog/the-elder-scrolls-v-skyrim-special-edition/drive_c/users/steamuser/AppData/Local/Skyrim Special Edition GOG/DLCList.txt",
    "plugin_file": "/home/cyberrumor/Games/gog/the-elder-scrolls-v-skyrim-special-edition/drive_c/users/steamuser/AppData/Local/Skyrim Special Edition GOG/Plugins.txt"
}

That should at least hook ammo up to the paths we care about, but I'm running into probably the same issue you were. My plugins won't load and Plugins.txt keeps getting overwritten by the game whenever I launch it. I tried using the Local Settings/ApplicationData path, but in my case, it didn't work either.

Was plugins not loading the same issue you were having?

duran55 commented 5 months ago

Yes, the issue was plugins not loading. I also did a symlink in AppData dir: 'Skyrim Special Edition' -> 'Skyrim Special Edition GOG' Probably this fixed it.

Additional note: I'm using Wine instead of Proton and my WINEPREFIX is ~/.wine