SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > General > General Topics > PC Hardware/Software forum
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 05-08-17, 01:20 AM   #1
Reece
CINC Pacific Fleet
 
Reece's Avatar
 
Join Date: Sep 2003
Location: Down Under
Posts: 34,764
Downloads: 171
Uploads: 0
Default

If only things were that easy in Ubuntu 16.04!!
There is no way to create a shortcut from the desktop of from the file, checking online I get this:
https://askubuntu.com/questions/8543...sktop-shortcut
I'm not sure what the best method is.

Since there is a shortcut on the desktop already I could just copy that and edit it. That seemed to work, the editable boxes are:
Name Far Cry 2
Description
Command (I have entered the path and exe here)
Comment
There is no place for 'work path'??
There is also a tab for Permissions that has the 'Program is executable" ticked.
Where would I place the parameters, I assume at the end of the command?
I haven't tried it yet, there is no place to say run windowed.
__________________

Sub captains go down with their ship!

Last edited by Reece; 05-08-17 at 01:52 AM.
Reece is offline   Reply With Quote
Old 05-08-17, 10:50 AM   #2
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,900
Downloads: 135
Uploads: 52


Default

Okay, all your answers should be at https://appdb.winehq.org/objectManag...ation&iId=8522

The maintainer there has Far Cry 2 working perfectly at a platinum level.
Rockin Robbins is offline   Reply With Quote
Old 05-08-17, 04:21 PM   #3
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 33
Uploads: 0


Default

Quote:
Originally Posted by Reece View Post
If only things were that easy in Ubuntu 16.04!!
There is no way to create a shortcut from the desktop of from the file, checking online I get this:
https://askubuntu.com/questions/8543...sktop-shortcut
I'm not sure what the best method is.

Since there is a shortcut on the desktop already I could just copy that and edit it. That seemed to work, the editable boxes are:
Name Far Cry 2
Description
Command (I have entered the path and exe here)
Comment
There is no place for 'work path'??
There is also a tab for Permissions that has the 'Program is executable" ticked.
Where would I place the parameters, I assume at the end of the command?
I haven't tried it yet, there is no place to say run windowed.

Yes, place any command line parameters/arguments after the .exe
Sorry I forgot to mention that!

"Work Path" is you changing to the directory before you enter the command to start the game.
Example:
Quote:
cd windows
Quote:
notepad.exe
Entering everything in the "Command" field is same as being at the "C:\" prompt and typing
Quote:
C:\windows\notepad.exe
You may have to set Windowed mode in the game...

The main differences in the way the shortcut works is due to the differences in the Desktops, some have more "options" than others. I have ignored the "Work Path" in KDE and had the program run fine.


One last thing as I forgot which one you have, Which version of WINE is installed?

wine --version

or starting Winecfg from the menu, should tell you.

Barracuda
BarracudaUAK is offline   Reply With Quote
Old 05-09-17, 02:15 AM   #4
Reece
CINC Pacific Fleet
 
Reece's Avatar
 
Join Date: Sep 2003
Location: Down Under
Posts: 34,764
Downloads: 171
Uploads: 0
Default

I have Wine version 2.7.

I tried to run the game using this shortcut: (some shortcut)

env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /home/reece/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1

I am not surprised it doesn't work!!!

Is start.exe supposed to be there?
__________________

Sub captains go down with their ship!

Last edited by Reece; 05-09-17 at 06:24 AM.
Reece is offline   Reply With Quote
Old 05-09-17, 08:27 AM   #5
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 33
Uploads: 0


Default

Quote:
Originally Posted by Reece View Post
I have Wine version 2.7.

I tried to run the game using this shortcut: (some shortcut)

env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /home/reece/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1

I am not surprised it doesn't work!!!

Is start.exe supposed to be there?
Yes, start.exe is a wine internal process....

I'm really tired as I typed this, so if anything is unclear, let me know and I'll try to clarify.
(I'm still trying to get my Virtual Machine software re-installed, so I can do this in Ubuntu...)


ok, double checking several of my shortcuts, and I tested this with SH3....
I missed a step when I posted the "generic" shortcut previously, sorry!

Find your Far Cry 2 .exe with your file manager, and make a note of the folder path.

This part should be good:
Quote:
env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe
Just a few thoughts here, Which "drive" did you choose to install to in WINE?
IF "C:\", then the path should be something like my edited version here.

If you setup another "drive" in WINEcfg, (useful for keeping all your games in one directory), Then I'll post a "path" for that one too.

If installed to C:\
Quote:
/unix /home/reece/.wine/drive_c/Program Files/Ubisoft/Far\ Cry \ 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1
If you installed it to another "drive", then this is a better example:
(assumes default install "path", minus the "program files".)

Quote:
/unix /home/reece/[directory-that-you-told-wine-was-another-drive]/Ubisoft/Far\ Cry \ 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1
an example of my sh3 shortcut, starting with the /Unix:
Quote:
/unix /home/[login-name]/driveH/Ubisoft/SilentHunterIII/sh3.exe
Remember that any "spaces" or special characters (like a "backslash") must be remarked with a "\".
Note the first part of the shortcut in first "quote" above:

"C:\\windows\\command\\start.exe"

Anytime you use a terminal (or make a shortcut) and the directory name has spaces, you must always add the "\".

Program\ Files
Far\ Cry\ 2
This\ is\ a\ really\ long\ example\ directory\ name

Can be annoying but it beats the windows way for more that 8 characters:
cd progra~1


Barracuda
BarracudaUAK is offline   Reply With Quote
Old 05-10-17, 12:58 AM   #6
Reece
CINC Pacific Fleet
 
Reece's Avatar
 
Join Date: Sep 2003
Location: Down Under
Posts: 34,764
Downloads: 171
Uploads: 0
Default

Hi, I do appreciate your help, I hope I am not getting under your skin!!

I tried these shortcuts:

Quote:
env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /home/reece/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1
Does nothing.

/unix /home/reece/.wine/drive_c/Program Files/Ubisoft/Far\ Cry \ 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1
also assuming typo above:
/unix /home/reece/.wine/drive_c/Program Files/Ubisoft/Far Cry 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1

Both Caused this: "There was an error launching the application."

Also:
/unix /home/[login-name]/drive_c/Ubisoft/SilentHunterIII/sh3.exe

/unix /home/Reece/driveH/Ubisoft/Far Cry 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1

Both Caused this: "There was an error launching the application."
It's being a total pain!!!

The path to the Farcry2.exe file is "/home/reece/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin"
__________________

Sub captains go down with their ship!
Reece is offline   Reply With Quote
Old 05-10-17, 05:21 AM   #7
BarracudaUAK
Captain
 
Join Date: Apr 2016
Posts: 520
Downloads: 33
Uploads: 0


Default

Quote:
Originally Posted by Reece View Post
Hi, I do appreciate your help, I hope I am not getting under your skin!!

I tried these shortcuts:

It's being a total pain!!!

The path to the Farcry2.exe file is "/home/reece/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin"

No problem, I'm not looking at it, so I have to "ping" with ideas, and see what "echos" back in your post...
Not long after joined the forum, I was helping Sublynx sort out the SH3 Wide Screen Mod induced video driver issues with his AMD 4500 series card in his laptop. Shortcuts are easy compared to driver issues!


With my SH3 example, I was just trying to give you a basic idea of what a non-"drive C" install MIGHT look like....

So now that I have your complete install path, I'll see if I can get a working command here...
Quote:
env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /unix /home/reece/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1
IF that doesn't work, then we will need to try this one:

Quote:
env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /unix /home/reece/.cxoffice/Far_Cry_2/drive_c/Program\ Files/Ubisoft/Far\ Cry\ 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1
NOTE the "\" before the 'spaces' in "Program Files" and "Far Cry 2".

Linux command line does NOT like spaces. They are "special" characters, so you have to tell it so. With a "\".

If neither of these work, We may have to trouble shoot this in the terminal and see what is going on.
If the above works, ignore this part below...

Option 1: The fast way: Use your file browser, and go to the location of the farcry2.exe and right click on the back ground within the "folder" (not on any particular file), there SHOULD be (somewhere in there) a "open terminal here" (or similar). Click it.

Option 2: Open a Terminal Window (should be on your launcher menu somewhere, just type "terminal" in the search if you can't find it), and manually type your way to your farcry2.exe.

Assuming that you are in your /home folder, it should look something like this in the terminal:

Quote:
[reece@localhost ~]$
The "~" means you are at "/home/reece" so navigating to your farcry2.exe should go as follows:
You can also break this up, and do one directory at a time. Don't forget the "\" before the spaces!

Quote:
cd .cxoffice/Far_Cry_2/drive_c/Program\ Files/Ubisoft/Far\ Cry\ 2/bin
Quote:
wine farcry2.exe -GameProfile_SkipIntroMovies 1
On my end: Something is interfering with my Virtual Machine software starting, so I'll need to figure out what that is, and then I can give you actual step-by-step instructions as to where to find something (such as the terminal).
As it is, I'm running off of 4 month old memory of about 2-3 hours of using Ubuntu...


Barracuda
BarracudaUAK is offline   Reply With Quote
Old 05-10-17, 06:06 AM   #8
Reece
CINC Pacific Fleet
 
Reece's Avatar
 
Join Date: Sep 2003
Location: Down Under
Posts: 34,764
Downloads: 171
Uploads: 0
Default

The results are:

env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /unix /home/reece/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1

env WINEPREFIX="/home/Reece/.wine" /usr/bin/wine C:\\windows\\command\\start.exe /unix /home/reece/.cxoffice/Far_Cry_2/drive_c/Program\ Files/Ubisoft/Far\ Cry\ 2/bin/farcry2.exe -GameProfile_SkipIntroMovies 1
Both do nothing.

Terminal Prompt:
reece@LAPTOP-UBUNTU:~/.cxoffice/Far_Cry_2/drive_c/Program Files/Ubisoft/Far Cry 2/bin$
In here placed the below in Terminal (Far Cry 2 folder) as above.
wine farcry2.exe -GameProfile_SkipIntroMovies 1
Wine Message:
The Wine configuration in /home/reece/.wine is being updated, please wait.
Error:
Error Message:
The wine configuration could not find a mono package which is needed for .NET packages to work correctly.
__________________

Sub captains go down with their ship!
Reece is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 07:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.