Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GOG support #42

Open
duran55 opened this issue Feb 11, 2024 · 5 comments
Open

GOG support #42

duran55 opened this issue Feb 11, 2024 · 5 comments

Comments

@duran55
Copy link
Contributor

duran55 commented Feb 11, 2024

Hi,
any plan on adding Skyrim GOG support?

@cyberrumor
Copy link
Owner

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
Copy link
Owner

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

@duran55
Copy link
Contributor Author

duran55 commented Mar 9, 2024

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 added a commit that referenced this issue Mar 10, 2024
Ammo will now search in the --conf dir for files ending in .json. The
filename represents the name of a game, and the contents define the
properties. Games defined like this will appear in the game selection
menu and should be possible to manage.

This is primarily written to get GoG up and running, but I'm currently
running into an issue where the GoG version of the game won't load
plugins and overwrites Plugins.txt with a default every time I try to
launch the game.

In any case, see #42 for an
example of a game configured like this.
@cyberrumor
Copy link
Owner

cyberrumor commented Mar 10, 2024

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
Copy link
Contributor Author

duran55 commented Mar 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants