Hi there.
I just installed Lutris (for some reason I had never heard of it until this week!) and used the “Battlefield 4 - Origin” installer.
It worked flawlessly, so I decided to try the same thing with “Crysis 3” (which is the other only Origin game I have in my library) for which there was no installer available.
There doesn’t seem to be documentation on how to properly do this (ie. “create a new installer”).
This is the story of how I struggled and ended up achieving nothing
(I post this in case someone finds it useful in order to improve the “experience” for future users (and also to make a “delete installer” request, at the very end of this post).
- First I tried the “FAQ” section of the web, but there was no “How do I create a new installer?” question. I found, however, a reference to a “wiki”, so I clicked on that.
- This “wiki” has a “How to write install scripts” (great!) but it basically says I have to either “edit” or “fork” an already existing one.
- There is also another link to more details, which explains how to use YAML directives to create an installer from scratch and execute it locally.
Hmm… so Crysis is also an Origin game and released about the same time as Battlefield 4, so I try the “fork” button, change a few things (name, etc…) and click on “Save Draft” (as, obviously, I haven’t yet tested and I don’t want this to appear on the lutris website to avoid misguiding others)… however, for some reason, after clicking on “Save Draft” the following message (or something similar appears): “Thanks! Your installer has been committed for review”.
What !?! Noooo!!! I haven’t tested it yet!
There doesn’t seem to be a way to cancel this “review process” or even delete the whole script… and one day after (ie. “today”) the untested “Crysis 3” installer appears listed on the Lutris website.
Even worse, I could finally test it today and, unfortunately, it doesn’t work: there is an error of an undefined call to an “rpcrt4.dll”… but in any case, the thing is that I still have to investigate how to make it work and in the mean time there is a broken installer in “lutris.net” that I cannot delete.
Then I think… “ok… maybe I should have gone the other way, by creating a local installer”. So I try to follow this path (for future contributions):
- I go to the Battlefield 4 - Origin installer and click on “Download installer”… but, what is this? This is not the YAML file format explained in the “wiki”, but a JSON field that seems to contain more information (ugh?).
- So, instead, I click on the “Edit” button and copy the YAML file available there… but then again, when I try to run it, lutris complains about missing fields (ex: “runner”). This is because the EDIT UI seems to include a partial YAML file, with missing fields that are listed “outside” the YAML box.
Anyway… I kind of have figured out how things work now, but I must say that everything was very confusing.
Maybe the “wiki” should be restructured in a different way? Or maybe the “Edit script” UI should just include two tabs (one that shows fields such as “runner”, “description”, etc… and another one with the “whole” YAML file)? I don’t know…
In addition, when I go to ~/.config/lutris/games I see other YAML files that are much shorter than the ones used as installers. They seem to contain “runtime” configuration (all the options in the Lutris app UI), but some of them don’t seem to do anything or work in surprising ways (for example, once a game has been installed, changing the wine prefix from 64 to 32 seems to do nothing… and it looks like a DXVK version that does not appear listed in the popup menu can be selected… and things like this…).
None of this is explained in the wiki either.
ANYWAY… enough with my rant This post is mainly to ask the lutris.net maintainers to delete my “Crysis 3 - Origin” installer, as it currently does not work at all.
In the future (once I figure out how all of this works) I promise I’ll try again with a working version (as I know there are people out there that have achieved to run “Crysis 3” on wine).
Thanks!