Hi! I have a game, that I can run from a terminal like this: wine -additional arguments-
How can I add these -additional arguments- into Lutris, so when I start the game.exe from within Lutris, those -additional arguments- are there aswell?
Setting Game Options>Arguments puts the -additional arguments- after the “wine” command looking like this: wine game.exe -additional arguments- -> So the arguments fail to load.
Setting System options>Command Prefix puts the -additional arguments- before the “wine” command looking like this -additional arguments- wine game.exe -> Resulting in a crash
You want to pass custom arguments to wine itself? What kind?
So I’ve been trying to play some Star Wars Galaxies on one of the emulated servers. One particular server has a custom launcher that has some issues with java, when used on Linux, so I need to pass these “lib/jre/bin/javaw.exe -Dprism.order=j2d -Dsun.java2d.d3d=false -jar” arguments to wine so it would start properly, making the full command looking like “wine lib/jre/bin/javaw.exe -Dprism.order=j2d -Dsun.java2d.d3d=false -jar launcher.exe”.
And this is what I’d like to achieve in Lutris so I don’t have to type in these every time, just use a custom Lutris game launcher pointing to the .exe in the wine prefix, and adding these additional stuff making it a one-click go.
So you’re not, in fact, passing arguments to wine. You’re passing arguments to the executable. Just that the executable is not what you seem to think it is (thought inertia?).
In the command
wine lib/jre/bin/javaw.exe -Dprism.order=j2d -Dsun.java2d.d3d=false -jar launcher.exe, the executable that’s run by Wine is
javaw.exe, while the rest of the string is the arguments to Java. So, what you need to do here is put
lib/jre/bin/javaw.exe into the ‘Executable’ field, and
-Dprism.order=j2d -Dsun.java2d.d3d=false -jar launcher.exe goes into ‘Arguments’ (you probably also need to set up the right workdir for the relative paths to work correctly).
Well I’m no expert by any means, so please forgive me on being unclear. Anyways, thank you so much for the help, I managed to got it to work.