-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Lutris config files don't have name, slug or working dir #209
Comments
Thanks for the report. Could you share (some or all of) the files you have? Unfortunately, I only had a small sample to use for the initial design, but I can definitely expand it. |
I added my extra info as an edit since it didn't feel like it fit in with the form, wasn't expecting you to see it so fast :) |
I looked at #164 and it's possible that some of the expected metadata is in the database (I haven't looked at it yet) and while the slug seems to only be used for logging at the moment, the name is actually used (which is actually in Lutris along with the "identifier" (which I assume is the same as the slug), so must just be stored elsewhere). |
For additional context, all these games were installed through either "Install a Windows game from an executable" or "Add locally installed game". Maybe Lutris should be consistently setting the values in the config file? Edit: Actually correction, that format only applies to games installed with "Add locally installed game". The games I've installed with "Install a Windows game from an executable" also fail to parse, but purely due to |
Ah, I see, so it fills in different amounts of metadata depending on how you add the games. That's unfortunate, but I can definitely improve it. Thanks for helping track this down! The case where it's just missing For games missing the slug and name, that's a lot harder. Unless that info is stored in another file or the database, I don't think I can do much about that. |
|
That sounds promising. Would you be willing to share your
I'm not sure how often people use Lutris for native Linux games, but in theory, Ludusavi should be able to find those too. |
I just released v0.18.2 with the |
I've sent my
Agreed, although I assume |
Any updates on this? My games also don't have a name in the yml, but have the correct name in the For now, I'm just adding the Edit: also created an issue in lutris. Maybe it makes more sense if lutris simply adds the necessary fields to the config instead of parsing |
@nioncode No updates yet, but I do still have plans to look into this. I'll also keep an eye on the ticket you opened in the Lutris repository :) |
Sorry to resurrect this, but just wondering if you found a solution? Grabbing the name from the db seems like a good option to me. I use it in various bash scripts I have to do al sorts of things. The Right now as a workaround, I am pulling the name from the db and injecting it into the yml file as part of ludusavi runner script I have before running ludusavi, which is a bit hacky as you can imagine. I'm happy to help in any way I can with info (db locations, db structure, etc). I would do a PR but I'm not that familiar with rust unfortunately. |
Hey, @eskay993, I've been a bit busy recently, but I do still plan to work on this. I can definitely let you know when I have a prototype, if you'd be willing to test it out :) |
No worries at all and sure thing! Happy to test out any new builds :) |
I finally have a build ready for testing that checks both If you usually use Flatpak, just remember to pass the
|
I tested your latest build, it discovered all my 4 installed Lutris GOG games instead of just one as before. |
Thanks 👍 I'll try to make a new release within a week or so with this change. |
Now I'm just very confused. I just tried v0.24.1 and first I got an error about the Lutris DB not existing so I fixed my Lutris path. I then started hitting this log: ludusavi/src/scan/launchers/lutris.rs Line 227 in 80977e9
I found lutris/lutris@7af680d and I assume there's also a migration commit somewhere that moved data over, but I had my I can't check the trace logs since one preview causes all the log files to overflow (at least through the GUI) and I tried going through I checked my After looking at the tests in f0a6767, it looks like there isn't actually a test checking that the files referenced in the Actually I just realised, the DB in the tests only has rows (1) with Here's the test DB with another row that matches some of mine: And here's a game:
exe: /.../game.exe
prefix: /.../wine-prefix
system: {}
wine: {} This should make sure that the merging logic works, although this might flag the Lutris directory deprecation issue where we need to consider not only the Also I just checked and Lutris only updates the YAML and not the database if you change the Wine prefix in the UI so maybe we also need to test that we're prioritising the YAML data over the database data? |
Ah, geez 😅 Thanks for finding this.
Yeah, it helps to just scan one game via the CLI:
Good catch - ludusavi/src/scan/launchers/lutris.rs Lines 105 to 108 in 80977e9
I've pushed some fixes in the master branch:
I'll look into the |
Great! I was going to PR some tests today but it looks like everything I was thinking of is already covered. One thing did catch my eye: ludusavi/src/scan/launchers/lutris.rs Lines 70 to 79 in 730acc7
Is it worth investigating which place is used for each field? I can't remember at the moment which ones are even changeable but do we know for sure that more of these shouldn't be prioritised from the spec? If not I should be able to check them today like with the prefix. |
Definitely! That would be a big help if you don't mind. |
@nihaals Would you mind testing the fix for the pga.db path? Linux build: ludusavi-v0.24.1-post.11+0ebb6d4-linux.zip
|
It works great when config and data are merged, but with them separate, it doesn't work. I think this might be outside of the Lutris scanning logic though:
It looks like it might be from ludusavi/src/resource/config.rs Lines 339 to 346 in 0ebb6d4
Re: #209 (comment), I checked all of them and made #359. |
Good catch 👍 Should be fixed now in 834a8ce. Linux build: ludusavi-v0.24.1-post.15+834a8ce-linux.zip |
It works great! 🎉 |
Awesome, thanks for testing 🎉 I'll try to do a release soon after a couple of other fixes :) |
Ludusavi version
v0.18.1
Operating system
Linux (Steam Deck)
Installation method
Flatpak
Description
Using the Lutris root doesn't show the expected games in the preview.
Logs
For every game I have in Lutris I get this:
Additional context
My Lutris configs look like this:
Which don't match the expected format:
ludusavi/src/scan/launchers/lutris.rs
Lines 9 to 23 in e86bad5
I'm using Lutris v0.5.13.
The text was updated successfully, but these errors were encountered: