Getting game to run: directories

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Stevewy
Newbie
Newbie
Posts: 4
Joined: Sun Oct 12, 2008 5:10 am

Getting game to run: directories

Post by Stevewy »

This is a newbie question, so forgive me if you've heard it a million times before.

I've just downloaded a Windows game called "Zenith". The website did confirm it worked on Linux under Wine. However, the game does not start because when I click on the executable, it says it cannot load an image from the /media directory. This game is, apparently, meant to be portable so all files are contained in folders below where the main executable is. But wine can't find it. Or rather it says it "cannot open" it. It's a PNG file but I doubt if that has any bearing.

Does anyone have any advice, or am I asking in the wrong place?

Steve W
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Getting game to run: directories

Post by austin987 »

On Sun, Oct 12, 2008 at 5:19 AM, Stevewy <[email protected]> wrote:
This is a newbie question, so forgive me if you've heard it a million times before.

I've just downloaded a Windows game called "Zenith". The website did confirm it worked on Linux under Wine. However, the game does not start because when I click on the executable, it says it cannot load an image from the /media directory. This game is, apparently, meant to be portable so all files are contained in folders below where the main executable is. But wine can't find it. Or rather it says it "cannot open" it. It's a PNG file but I doubt if that has any bearing.

Does anyone have any advice, or am I asking in the wrong place?

Steve W





Does running the app from its own directory help? How about using the
full path? Doing both?

--
-Austin
Stevewy
Newbie
Newbie
Posts: 4
Joined: Sun Oct 12, 2008 5:10 am

Post by Stevewy »

I am running it from its own directory, and using the full path. I don't know whether the problem is that the folder holding this file that the main prog cannot find, is called "media", and wine is confusing the /media folder for the Linux system with the /media subfolder containing this image that it cannot find.

The program does run fine under Windows XP - it's just getting it to run under Wine that is not happening.

Is there a setting in Wine that will tell it to find all folder references underneath its current position in the directory tree, rather than thinking /media refers to the Linux directory?

Thanks for any advice you can give.
User avatar
dimesio
Moderator
Moderator
Posts: 13368
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Stevewy wrote:The program does run fine under Windows XP - it's just getting it to run under Wine that is not happening.
Are you trying to run this off a Windows partition?
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Stevewy wrote:I am running it from its own directory, and using the full path.
Please post output of 'pwd' command and the exact command line you are using to start the program.
Stevewy
Newbie
Newbie
Posts: 4
Joined: Sun Oct 12, 2008 5:10 am

Post by Stevewy »

Well, in Ubuntu you can just right-click on the executable icon in Nautilus and select "Open with Wine windows emulator". However, in a terminal window I type "Wine" and give the full pathname (which is in an ext3 Linux partition). The output, apart from the error message, is:

err:wgl:X11DRV_GetPixelFormat Unable to find a WineGLPixelFormat for iPixelFormat=0
fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
fixme:wgl:ConvertAttribWGLtoGLX unsupported 2012 WGL Attribute
err:wgl:X11DRV_GetPixelFormat Unable to find a WineGLPixelFormat for iPixelFormat=0
fixme:win:SetLayeredWindowAttributes (0x30062,0x8000000f,0,1): stub!
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Stevewy wrote:Well, in Ubuntu you can just right-click on the executable icon in Nautilus and select "Open with Wine windows emulator". However, in a terminal window I type "Wine" and give the full pathname (which is in an ext3 Linux partition).
Wrong read this about how to properly run windows applications on Wine: http://wiki.winehq.org/FAQ#head-8d8c06c ... 5c730566e0

BTW you still have not answered the two questions I asked you.
Stevewy
Newbie
Newbie
Posts: 4
Joined: Sun Oct 12, 2008 5:10 am

Post by Stevewy »

Ah, well I didn't exactly "install" the game into Wine, so it doesn't appear in the Applications/Wine/programs menu in Ubuntu. Although the "right click the icon" method has worked with a lot of Windows executables before. I cannot install the game because it is downloaded as a zip file, containing a folder with all the files in. You just unpack the Zip and run the executable.

"PWD" gives:

/home/steve/Zenith

and the command I used was:

Wine Zenith.exe

Actually, I think the game is trying to start because I am now getting a terminal up (which I think is created by the Zenith program itself) saying:

Error 0009: Could not start sound @ Form.Create; Game will proceed without sound.
Unexpected Exception: Access violation at address 00000000 in module 'Zenith.exe'. Read of address 00000000
Locked