I have been stuggling with a wine issue for a few days now and have googled for answers and tried most things I can think of.
I am trying to run a dedicated server for No One Lives Forever 2 that will be able to restart after crash from a script that will check if the process exists or not, and I am almost there.
Right now I have a couple servers running within a lutris install on a another computer, I can only start it with the program arguments if I open a wine console and type it in manually. This doesn't allow a automated script to restart them if they crash though.
My linux version is Linux Mint 20, Wine is installed from WineHq's repository.
I have created a folder for my wine bottle named 'Wine' in my home folder, my prefix is located at '~/Wine/nolf/'. I configured winetricks to use directx9, vcrun6, mfc40, mfc42, vcrun2015 and my start string in the terminal looks like this:
The server app starts, but it fails to load the program arguments -profile player.WINEARCH=win32 WINEPREFIX=~/Wine/nolf2 wine ~/Wine/nolf/drive_c/nolf2/nolf2srv.exe -profile player
From the wine --help it says that nolf2srv.exe [-profile player] should work, but I get the same result.
I also tried with quotes "~/Wine/nolf/drive_c/nolf2/nolf2srv.exe" "-profile player", this doesn't even start the app.
The game server is also verified to work with my file setup.
Could this be something that I missed in winetricks? are other other ways to pass arguments? I am running out of ideas..
Any help with this issue would be greatly appreciated!
Cheers