![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
![]() |
#1 | |
CINC Pacific Fleet
Join Date: Sep 2003
Location: Down Under
Posts: 34,796
Downloads: 171
Uploads: 0
|
![]()
I tried installing my first windows game (Far Cry 2) in Ubuntu 16.04 using Crossover.
It was a total pain to get it to go, in windows it is easy to edit the shortcut to add parameters so it would be "C:\Games\Far Cry 2\bin\FarCry2.exe" -GameProfile_SkipIntroMovies 1. There are others also that can be added. How do I add the parameters in Linux, the icon points to a lnk file that contains this: Quote:
![]() Anyone got any idea's? Maybe I can run it windowed but not sure how to do this. ![]()
__________________
Sub captains go down with their ship! |
|
![]() |
![]() |
![]() |
#2 |
Navy Seal
![]() |
![]()
Usually games have internal settings for screen resolution and windowed rendering. This is always the best way to accomplish what you want.
As for command line launch parameters, I've never used them so couldn't really help you. I'd look to change the game shortcut to include them. I'll play with it tonight and see what I can come up with.
__________________
Sub Skipper's Bag of Tricks, Slightly Subnuclear Mk 14 & Cutie, Slightly Subnuclear Deck Gun, EZPlot 2.0, TMOPlot, TMOKeys, SH4CMS Last edited by Rockin Robbins; 05-04-17 at 11:28 AM. |
![]() |
![]() |
![]() |
#3 |
Captain
![]() |
![]()
I've never used Crossover (which adds to wine), however, usually in WINE, you just add the command-line parameters as you would in a Windows shortcut (or dos).
For example, lets say I want to start SH3, which runs in WINE without any issue I would type: wine sh3 to use an argument you just add it, wine sh3 -arguments -go -here -like -this Adding the arguments as per the instructions from the program. Now for Silent 3ditor, I have to have dotnet 2.0 and dx9 installed into a 32bit wine prefix, called ".wine32". So to make S3D run I would type it like this: env WINEPREFIX=~/.wine32 wine s3d -arguments -go -here The "~/.wine32": "~" is the users home/username directory. the ".wine32" is the wine prefix directory. So "~/.wine32" just tells WHERE the "env" (environment) is located. default "wine" should be ".wine". I really need to work on the WINE thread I started...... ![]() Let me know if I need to clean this up! EDIT: As far as resolutions go, just set your game to the desktop resolution and you'll be good to go. I remember reading somewhere that WINE used to reset your screen resolution when the game exited, but there have been several changes to "X" (which draws your desktop) so an older command (that you could put in a shortcut) doesn't work reliably anymore. Plus Gnome has switched to Wayland. And Ubuntu was working on Mir. Both "Wayland" and "Mir" are replacements for "X". I can get into that in detail in another thread if you would like me to elaborate, it is off topic. Barracuda Last edited by BarracudaUAK; 05-04-17 at 04:44 PM. |
![]() |
![]() |
![]() |
#4 |
CINC Pacific Fleet
Join Date: Sep 2003
Location: Down Under
Posts: 34,796
Downloads: 171
Uploads: 0
|
![]()
The game doesn't cover the desktop resolution (1920x1080), the games max size is 1280x1024.
The desktop icon for the game has no place for parameters and only points to a file called farcry2.lnk that contains whatis shown in the first post. The actual game exe file is farcry2.exe but nothing concerned with the desktop icon points to that exe file. ![]()
__________________
Sub captains go down with their ship! |
![]() |
![]() |
![]() |
#5 |
CINC Pacific Fleet
Join Date: Sep 2003
Location: Down Under
Posts: 34,796
Downloads: 171
Uploads: 0
|
![]()
Did you get a chance to try it out Steve? I cannot find anywhere to place the parameters.
![]()
__________________
Sub captains go down with their ship! |
![]() |
![]() |
![]() |
#6 | |||
Captain
![]() |
![]() Quote:
To give you an example, my primary WINE directory as viewed in WINEcfg: drive C: is viewed as "../drive_c". If I go into my "/home/[login-name]/.wine" directory, I see 2 sub-directories: "dosdevices" and "drive_c" if I go to the directories specified in your link I quoted above on my PC (C:\users/Public\Desktop...", I have: Steam.lnk (and a few others) That is most likely where you would need to edit the parameters. Now you COULD (#1) add a shortcut to your Ubuntu desktop and edit it to launch Far Cry that way (basically a "shortcut" of what you would type into the terminal, not a "Linux shortcut to the Windows .lnk file") I did find this if you want to (#2) try editing the "Windows .lnk" file in your WINE https://askubuntu.com/questions/4336...e-wine-desktop IF you want to add a Linux shortcut (#1 above) this is a "generic" shortcut based one of mine. I did try building a shortcut for SH3 "from scratch" using this one, and it worked. You just need to make sure you have your directories in the shortcut correctly (capitalization!) and it should work. RR should be able to clarify any Ubuntu specific tweaks needed. You should be able to right click the desktop and select "create shortcut" (or something similar). Then just edit the fields in the box that opens.. On the "Command" line put: Quote:
Quote:
Barracuda |
|||
![]() |
![]() |
![]() |
|
|