Games 'dissappear' after installing in wine...

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Daqar
Level 1
Level 1
Posts: 7
Joined: Tue Aug 10, 2010 4:41 am

Games 'dissappear' after installing in wine...

Post by Daqar »

Heya,

I'm new to these forums and fairly new to linux and wine. I'm having some trouble with some computer games I'm trying to run under wine. The games are:
Call of Duty 5 World at War
Call of Duty 4 Modern Warfare
Alien Versus Predator

I managed to install Call of Duty 5 and AvP without errors, however I can't run them. They don't appear in the wine menu or the games menu. (I'm using OpenSuse 11.3 64 bit with kde) I've checked the wine c-drive, and they don't appear there either. That is, I've checked /home/jacob/.wine/drive_c and /home/jacob/.wine/dosdevices. The games are NOT in those folders. However, the game installers can see the directories. Meaning that when I installed AvP I could see the folder for Call of Duty 5, however neither wine nor nautilus seems to be able to find these folders. I haven't changed ANY settings in wine.

Call of Duty 4 Modern Warfare is a different story altogether, this installer can also see those magic invisible folders that the other games are in, however it keeps claiming that I don't have 8gb of available harddisk space. As far as I can make out I have about 95gb free harddisk space.

According to the appdb all games should be supported. The Call of Duty Games should be awarded silver medals and AvP got gold...

Best regards,

Daqar
Das Letzte Einhorn
Level 4
Level 4
Posts: 194
Joined: Thu Jun 12, 2008 12:40 pm

Post by Das Letzte Einhorn »

Look in /home/your_user_name/.wine/drive_c/Program Files/

Also, you should run your games with a command line. http://wiki.winehq.org/FAQ#run_from_terminal
tparker
Level 5
Level 5
Posts: 354
Joined: Tue Feb 24, 2009 3:06 pm

Games 'dissappear' after installing in wine...

Post by tparker »

On Tuesday 10 August 2010 8:19:07 am Daqar wrote:
I've checked /home/jacob/.wine/drive_c
Have you tried going one folder more? My games show up in
/home/.wine/drive_c/Program Files/<name of game>
Daqar
Level 1
Level 1
Posts: 7
Joined: Tue Aug 10, 2010 4:41 am

Post by Daqar »

Sorry, my bad. I didn't make that clear enough. I have indeed checked that folder. Here is what it contains:

Code: Select all

jacob@linux-c18f:~/.wine/drive_c/Program Files> ls
Common Files  Heretic  Internet Explorer  WordPerfect Office X3
The games are really not there....I don't know what I did wrong. I ran the installers as root, using the OpenSuse su command, like in this example:

Code: Select all

su
wine setup.exe
Is that the error? I couldn't make the installers work without root permissions.

Best regards,

Daqar
Daqar
Level 1
Level 1
Posts: 7
Joined: Tue Aug 10, 2010 4:41 am

Post by Daqar »

Daqar wrote:Sorry, my bad. I didn't make that clear enough. I have indeed checked that folder. Here is what it contains:

Code: Select all

jacob@linux-c18f:~/.wine/drive_c/Program Files> ls
Common Files  Heretic  Internet Explorer  WordPerfect Office X3
The games are really not there....I don't know what I did wrong. I ran the installers as root, using the OpenSuse su command, like in this example:

Code: Select all

su
wine setup.exe
Is that the error? I couldn't make the installers work without root permissions.

Best regards,

Daqar
Bugger....that does seem to be the cause...I found the folders here:
/root/.wine/drive_c/Program Files/

I'm unsure how to proceed...what should I do?

Best regards,

Daqar
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Daqar wrote:[Bugger....that does seem to be the cause...I found the folders here:
/root/.wine/drive_c/Program Files/

I'm unsure how to proceed...what should I do?
Delete /root/.wine and reinstall your games as a normal user.

And never run Wine as root.
Martin Gregorie

Games 'dissappear' after installing in wine...

Post by Martin Gregorie »

On Tue, 2010-08-10 at 08:06 -0500, Daqar wrote:
I ran the installers as root, using the OpenSuse su command,
Thats what you did wrong. 'su' starts a privileged shell which it runs
as root with /root as its home directory, not /home/youruser.

The wine package itself must be installed as root because its a normal
Linux package, but all Wine applications and games MUST NOT be installed
as root because they are intended to be installed as user-level code
that must be installed in the user you intend to run them from. The fix
things:

(1) go into root using 'su' and delete the .wine directory you'll find
there:

rm -rf .wine

(2) Remember that you never run Wine applications or games as root just
as you never do anything else as root unless its a system maintenance
task.

(3) Reinstall the games in the user where you intend to run them,
without using 'su'
Is that the error? I couldn't make the installers work without root permissions.
If you run a program with 'sudo' it gets elevated privileges but will
still run in your login, so try running the installer this way:

sudo wine setup.exe

...but I strongly suggest you read the manpages for su and sudo first so
you know what each does and how to decide which will best accomplish the
task you need done.


Martin
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Games 'dissappear' after installing in wine...

Post by dimesio »

Martin Gregorie wrote: If you run a program with 'sudo' it gets elevated privileges but will
still run in your login, so try running the installer this way:

sudo wine setup.exe
DO NOT DO THIS. It will break the permissions in your ~/.wine folder.
http://wiki.winehq.org/FAQ#head-96bebfa ... 78b0d41014
Martin Gregorie

Games 'dissappear' after installing in wine...

Post by Martin Gregorie »

On Tue, 2010-08-10 at 08:59 -0500, dimesio wrote:
Martin Gregorie wrote:
If you run a program with 'sudo' it gets elevated privileges but will
still run in your login, so try running the installer this way:

sudo wine setup.exe
DO NOT DO THIS. It will break the permissions in your ~/.wine folder.
http://wiki.winehq.org/FAQ#head-96bebfa ... 78b0d41014

Apologies. I was thinking of solving CD access problems, not of its
effect on the .wine folder though 'sudo chown -R me.mygroup .wine' and
'chmod -R perms .wine' can do wonders when it comes to fixing file and
directory permissions.


Martin
Daqar
Level 1
Level 1
Posts: 7
Joined: Tue Aug 10, 2010 4:41 am

Post by Daqar »

Thanks for the help guys. I managed to locate and delete the .wine folder under root. I managed to install AvP just fine and it runs. I just don't have full mouse movement. I can't turn 360 degrees. The mouse movement is limited like this both horizontally and vertical. I guess I should start a new thread with that...

Thanks again for the help !

Best regards,

Daqar
Das Letzte Einhorn
Level 4
Level 4
Posts: 194
Joined: Thu Jun 12, 2008 12:40 pm

Post by Das Letzte Einhorn »

Daqar wrote:Thanks for the help guys. I managed to locate and delete the .wine folder under root. I managed to install AvP just fine and it runs. I just don't have full mouse movement. I can't turn 360 degrees. The mouse movement is limited like this both horizontally and vertical. I guess I should start a new thread with that...

Thanks again for the help !

Best regards,

Daqar
This is a known issue

http://appdb.winehq.org/objectManager.p ... n&iId=1183
http://bugs.winehq.org/show_bug.cgi?id=6971

Look at the workarounds.
Locked