Adding win command line args using 'wine'
Adding win command line args using 'wine'
I have a game and I've been told if I start it from windows "run" (or cmd.exe) with the arg: -CustomResolution:enabled (etc) it will go full screen... (as long as the res matches my laptop.)
But:
wine: cannot find 'SimCity 4.exe -CustomResolution:enabled -r1366x768x32'
I've run the game from terminal using: wine "SimCity 4.exe" but it can't do the extra arg.
But:
wine: cannot find 'SimCity 4.exe -CustomResolution:enabled -r1366x768x32'
I've run the game from terminal using: wine "SimCity 4.exe" but it can't do the extra arg.
Re: Adding win command line args using 'wine'
I just tried starting SimCity 4 Deluxe with a custom resolution of 1440x900 set that way from the command line, and it worked just fine.
What is the exact command you are using?
What is the exact command you are using?
Re: Adding win command line args using 'wine'
I got it to work...
but not from the command line... errors there...
had to add the parameter to the link on the desktop...
(this game is from GOG.com)
I'm having problems w/the sound and the game randomly crashing... tried changing the sound driver to ALSA in winetricks, and enabling dxsound.dll
I'm not using MS directx9.dll, only d3dx9_36 (or whatever it is) That's the only dx driver (that I know of) enabled (through winetricks) Although it crashed less using the MS dx (So I guess I'll probably have to re-install it)
starting this game in a terminal gives me this message:
fixme:service:scmdatabase_autostart_services Auto-start service L"dxregsvc" failed to start: 2
fixme:win:EnumDisplayDevicesW ((null),0,0x32eea8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32edf8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f4a8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f1d8,0x00000000), stub!
fixme:winediag:AUDDRV_GetAudioEndpoint Winepulse is not officially supported by the wine project
fixme:winediag:AUDDRV_GetAudioEndpoint For sound related feedback and support, please visit http://ubuntuforums.org/showthread.php?t=1960599
???
Not sure why the "winepulse" error msg??
I tried setting the sound=ALSA, but it remains un-checked the next time I start winetricks...
but it will from the link on my desktop now.
Here's what that looks like:
env WINEPREFIX="/home/scott/.wine32" wine C:\\windows\\command\\start.exe /Unix /home/scott/.wine32/dosdevices/c:/users/Public/Desktop/SimCity\ 4\ Deluxe\ Edition.lnk -CustomResolution:enabled -r1366x768x32
I just want to know the optimal cfg for this new 32-bit prefix to run older games...
Thanks for your help.

but not from the command line... errors there...
had to add the parameter to the link on the desktop...
(this game is from GOG.com)
I'm having problems w/the sound and the game randomly crashing... tried changing the sound driver to ALSA in winetricks, and enabling dxsound.dll
I'm not using MS directx9.dll, only d3dx9_36 (or whatever it is) That's the only dx driver (that I know of) enabled (through winetricks) Although it crashed less using the MS dx (So I guess I'll probably have to re-install it)
starting this game in a terminal gives me this message:
fixme:service:scmdatabase_autostart_services Auto-start service L"dxregsvc" failed to start: 2
fixme:win:EnumDisplayDevicesW ((null),0,0x32eea8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32edf8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f4a8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32f1d8,0x00000000), stub!
fixme:winediag:AUDDRV_GetAudioEndpoint Winepulse is not officially supported by the wine project
fixme:winediag:AUDDRV_GetAudioEndpoint For sound related feedback and support, please visit http://ubuntuforums.org/showthread.php?t=1960599
???
Not sure why the "winepulse" error msg??
I tried setting the sound=ALSA, but it remains un-checked the next time I start winetricks...
but it will from the link on my desktop now.
Here's what that looks like:
env WINEPREFIX="/home/scott/.wine32" wine C:\\windows\\command\\start.exe /Unix /home/scott/.wine32/dosdevices/c:/users/Public/Desktop/SimCity\ 4\ Deluxe\ Edition.lnk -CustomResolution:enabled -r1366x768x32
I just want to know the optimal cfg for this new 32-bit prefix to run older games...
Thanks for your help.
Re: Adding win command line args using 'wine'
winetricks can't install directx9 on this brand new prefix... "working around bug" #### and ##### and then regsrvs quartz aborted on error 255 (or 225?)
But when I go back into winetricks it shows directx9 as checked... ???
lol.
(I haven't had this much "fun" since I left Window$ 7 about 4 years ago) haha.
Brings back all those memories of exactly why I switched...
But when I go back into winetricks it shows directx9 as checked... ???
lol.
(I haven't had this much "fun" since I left Window$ 7 about 4 years ago) haha.
Brings back all those memories of exactly why I switched...
Re: Adding win command line args using 'wine'
I don't have any native dlls installed and the game runs fine, but I'm using the original game, not GOG's version.
The game does have issues with multicore systems, and will crash randomly; that happens in Windows, too. The workaround is to bind the process to one core. I use taskset and it works for me, but the AppDB howto recommends -CPUCount:1. https://appdb.winehq.org/objectManager. ... &iId=10515
As for the sound issues and winepulse message, the Ubuntu packages are built with the winepulse driver, which is not supported here. Ask for help in the Ubuntu forum thread the console output directed you to.
The game does have issues with multicore systems, and will crash randomly; that happens in Windows, too. The workaround is to bind the process to one core. I use taskset and it works for me, but the AppDB howto recommends -CPUCount:1. https://appdb.winehq.org/objectManager. ... &iId=10515
As for the sound issues and winepulse message, the Ubuntu packages are built with the winepulse driver, which is not supported here. Ask for help in the Ubuntu forum thread the console output directed you to.
-
- Level 7
- Posts: 823
- Joined: Thu Aug 27, 2009 6:23 am
Re: Adding win command line args using 'wine'
Hi Scott65,
just for (your) better understanding, you probably issued a command like
wine 'SimCity 4.exe -CustomResolution:enabled -r1366x768x32'
which would be wrong. Wine would look for an .exe whose name would be the whole string in quotation marks.
Of course you need to use quotation marks (or escaping) because of the spaces in the filename.
A correct command would be something like
wine 'SimCity 4.exe' -CustomResolution:enabled -r1366x768x32
or alternatively (escaping)
wine SimCity\ 4.exe -CustomResolution:enabled -r1366x768x32
kind regards
just for (your) better understanding, you probably issued a command like
wine 'SimCity 4.exe -CustomResolution:enabled -r1366x768x32'
which would be wrong. Wine would look for an .exe whose name would be the whole string in quotation marks.
Of course you need to use quotation marks (or escaping) because of the spaces in the filename.
A correct command would be something like
wine 'SimCity 4.exe' -CustomResolution:enabled -r1366x768x32
or alternatively (escaping)
wine SimCity\ 4.exe -CustomResolution:enabled -r1366x768x32
kind regards
Re: Adding win command line args using 'wine'
Hi.
@mod
Thx. I have no idea how I missed that info on the AppDB page...lol.
Guess I was in a hurry to play the game and forgot...
Also, I did go to that Ubutntu forum page (my distro is Mint 17.1) and that's where I got the advice to change the driver to ALSA using winetricks, but I guess that isn't working (?) because I got that debug message...
The sound=ALSA box always remains un-checked in winetricks->change settings...
@lahmbi5678
Thanks. I cut and pasted those commands you posted and neither of them worked.
Got the same error msg as before.
Probably because it's a GOG.com version of the game I'm thinking now.
But I didn't know the \ escape trick for spaces... thx.
@mod
Thx. I have no idea how I missed that info on the AppDB page...lol.
Guess I was in a hurry to play the game and forgot...

Also, I did go to that Ubutntu forum page (my distro is Mint 17.1) and that's where I got the advice to change the driver to ALSA using winetricks, but I guess that isn't working (?) because I got that debug message...
The sound=ALSA box always remains un-checked in winetricks->change settings...
@lahmbi5678
Thanks. I cut and pasted those commands you posted and neither of them worked.

Got the same error msg as before.
Probably because it's a GOG.com version of the game I'm thinking now.
But I didn't know the \ escape trick for spaces... thx.
Re: Adding win command line args using 'wine'
Well it's not working any better with the -CPUCount:1 added... it crashes even more...
So how do I un-install MS DirectX? (If that's even the problem.)
I tried "un-checking" the box using winetricks but it just shows up as checked the next time I run it...
So how do I un-install MS DirectX? (If that's even the problem.)
I tried "un-checking" the box using winetricks but it just shows up as checked the next time I run it...
Re: Adding win command line args using 'wine'
Oh-- btw, I looked at taskset, but since I'm having problems running the game from the command line I'm not sure how I would use it unless I know the PID which I can't get if the game is in full-screen... (right?) At least I don't know how-to w/o writing code.
Re: Adding win command line args using 'wine'
Also, I don't fault Wine for any of these problems... afterall, it's trying to emulate / infterface w/Window$... so...
This is exactly how I remember Windows being...
So I'd say Wine is working just fine...

This is exactly how I remember Windows being...
So I'd say Wine is working just fine...

Re: Adding win command line args using 'wine'
Actually, if Wine wanted to be a perfect Windows emulator-- I'd have to reboot after every .dll install, crash, go back to a "restore point," crash again, and then have no other option except to format the HD and re-install everything from back-up...
Then Wine would be the *perfect* Window$ emulator... /SARC
Then Wine would be the *perfect* Window$ emulator... /SARC
Re: Adding win command line args using 'wine'
And I'm dead serious when I say I don't fault Wine for any these problems...
I'm a newbie to setting it up...
at least my whole system hasn't locked up and crashed after 75 reboots and can't start...
I'm a newbie to setting it up...
at least my whole system hasn't locked up and crashed after 75 reboots and can't start...
Re: Adding win command line args using 'wine'
You can't uninstall DirectX; you have to delete the wineprefix and start over.
Taskset goes at the beginning of the command line:
(substitute the actual paths)
Taskset goes at the beginning of the command line:
Code: Select all
taskset -c 0 env WINEPREFIX=/path/to/wineprefix wine start /unix '/path/to/executable'