cyberrumor / ammo

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

can't load any games #43

Closed gteachey closed 6 months ago

gteachey commented 6 months ago

What am I doing wrong?

I'm using Python 3.11, it appears the install is successful, I'm using legal copies of Skyrim AE and Fallout 4, yet both return this when I run ammo.

index | Game
-------|-----
[0]     Skyrim Special Edition (unknown)
[1]     Fallout 4 (unknown)

>_: 1
Traceback (most recent call last):
  File "/home/glteach/.local/bin/ammo", line 7, in <module>
    ui.repl()
  File "/home/glteach/.local/lib/python3.11/site-packages/ammo/ui.py", line 374, in repl
    command.func(*prepared_args)
  File "/home/glteach/.local/lib/python3.11/site-packages/ammo/game_controller.py", line 131, in <lambda>
    setattr(self, str(i), lambda self, i=i: self._manage_game(i))
                                            ^^^^^^^^^^^^^^^^^^^^
  File "/home/glteach/.local/lib/python3.11/site-packages/ammo/game_controller.py", line 163, in _manage_game
    raise TypeError(
TypeError: Expected [<Source.UNKNOWN: 'unknown'>, <Source.STEAM: 'steam'>, <Source.FLATPAK: 'flatpak'>] but got Source.UNKNOWN of type <enum 'Source'>

I wanted to try this out for Fallout 4, I have a pretty modded Skyrim but tried reinstalling fresh copies of both when Fallout 4 wouldn't work. I tried reinstalling ammo, rebooting, setting up a conda environment for it to see if I had some global library issue. I just get the same error no matter what I try so far.

gteachey commented 6 months ago

and just like that...I thought of the one thing I didn't try yet.

I have two Steam libraries. My default where all my games go is not the one Steam installed to when I set it up. I tried moving Fallout 4 to the other library and now I'm able to mod it. Thanks for reading this everyone

cyberrumor commented 6 months ago

This is still a useful report, thank you! I'll take a look at this. Glad you got it figured out :)

cyberrumor commented 6 months ago

This should be fixed now. To get this to work correctly, I had to drop flatpak-specific ammo dir support. Now ammo will use ~/.local/share/ammo for all installation instances of Steam.

If you had games installed via Flatpak that were using the default steam library location, pulling this update will require you to either reactivate/reorder your mods and commit, or move ~/.var/app/com.valvesoftware.Steam/.local/share/ammo to ~/.local/share/ammo.

If you didn't have games installed via Flatpak using the default steam library location, you shouldn't have to do anything.

Theoretically you can now move your game back to your preferred drive.