New to Wine on a Mac, Please Help

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
MacUser1985
Newbie
Newbie
Posts: 4
Joined: Wed Apr 29, 2009 3:05 pm

New to Wine on a Mac, Please Help

Post by MacUser1985 »

Hello all, I recently installed Wine as per the instructions here:
http://davidbaumgold.com/tutorials/wine-mac/

Everything went fine until it was time to run the program(s).
I am trying to run a map editor for an open source 1998 vintage 3dRTS strategy game. The game was been ported to Macs after the source code release, but not the map editor.

I downloaded 2 versions of this map editor, a 16 bit version, and a 32 bit version.

16 bit version:
XXX-XXXs-computer-4:Warzone2100 XXXXXXX$ ls
Data
MFC42.DLL
mapDataSets
stats
EditWorld.exe
MakeWDG.exe
mapExport
structs
EditWorldDoc.rtf
UninstEDITOR.isu
mapSaves
texpages
erik-boehms-computer-4:Warzone2100 erikboehm$ wine EditWorld.exe
fixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 16 vertex samplers and 16 total samplers
fixme:d3d:IWineD3DImpl_FillGLCaps Expected vertex samplers + MAX_TEXTURES(=8) > combined_samplers
fixme:win:EnumDisplayDevicesW ((null),0,0x32f6cc,0x00000000), stub!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
err:d3d:WineD3D_ChoosePixelFormat Can't find a suitable iPixelFormat
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
32 bit version
XXX-XXXs-computer-4:BWEditor XXXXXX$ ls
Beta World Editor 32 bit -128 by128 -png Beta.chm
DATA
FEATURES
Newmaps
SAMPLES
Uninstal.exe
backdrop.bmp
bteditlog.txt
credits.bmp
dlls for editor
dlls for editor.rar
editworld32.exe
gpl.txt
libpng13.dll
libpng13d.dll
name.txt
zlib1.dll
zlib1d.dll
erik-boehms-computer-4:BWEditor erikboehm$ wine editworld32.exe
err:module:import_dll Library MFC71.DLL (which is needed by L"C:\\BWEditor\\editworld32.exe") not found
err:module:import_dll Library MSVCP71.dll (which is needed by L"C:\\BWEditor\\editworld32.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\BWEditor\\editworld32.exe" failed, status c0000135
It looks like I am missing some .dll s on the 32 bit version... might this be related to a graphics driver?

Is there anyway I can change a setting and run the 16 bit version?
James Mckenzie

New to Wine on a Mac, Please Help

Post by James Mckenzie »

From: MacUser1985 wrote on April 29th:

Hello all, I recently installed Wine as per the instructions here:
http://davidbaumgold.com/tutorials/wine-mac/

Everything went fine until it was time to run the program(s).
I am trying to run a map editor for an open source 1998 vintage 3dRTS strategy game. The game was been ported to Macs after the source code release, but not the map editor.

I downloaded 2 versions of this map editor, a 16 bit version, and a 32 bit version.

16 bit version:
XXX-XXXs-computer-4:Warzone2100 XXXXXXX$ ls
err:module:import_dll Library MFC71.DLL (which is needed by L"C:\\BWEditor\\editworld32.exe") not found
err:module:import_dll Library MSVCP71.dll (which is needed by L"C:\\BWEditor\\editworld32.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\BWEditor\\editworld32.exe" failed, status c0000135
You need to add the VC++ runtimes for 2003/2005.

Please use the winetricks script add-on to add them

Since I am not at my Mac, please read the FAQ on how to use winetricks.

James McKenzie
gdwarner
Level 1
Level 1
Posts: 5
Joined: Wed Apr 29, 2009 4:20 pm

Post by gdwarner »

MacUser1985 --

Dave's instructions are daunting ...! Did that once; didn't work out too well for me.

Now I use Mike Kronenberg's builds:

http://www.kronenberg.org/darwine

Installation is accomplished via simple drag-and-drop.

The download includes a GUI front end to Winetricks.

He's also working on a version of WineHelper that won't open so many windows when you run an application through Wine. You can read about that one here:

http://mike.kronenberg.org

True, you won't be able to update Wine as you can with the Mac Ports method ... but he's usually pretty quick with the updates.

Can't help you much with the map editor problem, alas ... is there a link?

Good luck ... and hope this helps.

--gdw
MacUser1985
Newbie
Newbie
Posts: 4
Joined: Wed Apr 29, 2009 3:05 pm

Post by MacUser1985 »

gdwarner - I tried to use the "TRiX" that came with Darwine to install the Runtime libraries and such, but anything I do results in
Apple Script Error
Terminal got an error: AppleEvent handler failed. (-10000)
As to using this Darwine build... do I still use Terminal, or will it be such that I just click on the .exe and Darwine Launches it?[/quote]


*edit*
Never mind, I think i got it working, I need to sort some things out though, I may ask more later
gdwarner
Level 1
Level 1
Posts: 5
Joined: Wed Apr 29, 2009 4:20 pm

Post by gdwarner »

MacUser1985 --

I have a work-in-progress article on using Wine on Macs, concentrating mostly on Mike Kronenberg's builds. You can read it here:

http://www.cheapandsleazy.net/darwine.html

The article is written for folks that aren't too computer-savvy (the base URL points to a support site for court reporting students), so don't be too offended at the simplistic, step-by-step instructions! :o)

--gdw
MacUser1985
Newbie
Newbie
Posts: 4
Joined: Wed Apr 29, 2009 3:05 pm

Post by MacUser1985 »

Thanks, that was helpful, I especially liked this:
"sudo ln -s ~/.wine/drive_c/"Program Files" ~/Desktop"
I'd rather see the whole "C:\Drive" and tried "sudo ln -s ~/.wine/"drive_c" ~/Desktop"
It worked, very nice and convenient.

However, the 32 bit version of this world editor is giving me error messages about setting display depth to 32 bit, and it freezes/crashes when I attempt to load a map or start working on a new one....

How do I set the X11 window that is opened to 32 bit?

*edit* the 16 bit version works now, and I am able to do what I want, I am just curious how I would use the 32 bit version.
James McKenzie

New to Wine on a Mac, Please Help

Post by James McKenzie »

MacUser1985 wrote:
Thanks, that was helpful, I especially liked this:
"sudo ln -s ~/.wine/drive_c/"Program Files" ~/Desktop"
I'd rather see the whole "C:\Drive" and tried "sudo ln -s ~/.wine/"drive_c" ~/Desktop"
Interesting, but I'm not going to try placing the folder from Wine on my
Desktop.
It worked, very nice and convenient.

However, the 32 bit version of this world editor is giving me error messages about setting display depth to 32 bit, and it freezes/crashes when I attempt to load a map or start working on a new one....

How do I set the X11 window that is opened to 32 bit?
Is the editor available on-line? I would like to install/test it to see
if the bug will go away with the next version of XQuartz.

Your display, if you are running a MacBookPro, should already be setup
to support 32 bit video depth. You did not state which Mac you are
running on.

Can you provide the following:

Open About this Mac from the Apple menu and tell us which version of
MacOSX you are using? The click on the More Info... button and then
click on the Graphics/Display item under Hardware and tell us which
video card you are using, the size and color depth of the display you
are using?

Thank you.

James McKenzie
gdwarner
Level 1
Level 1
Posts: 5
Joined: Wed Apr 29, 2009 4:20 pm

Post by gdwarner »

[quote="MacUser1985"]I'd rather see the whole "C:\Drive" and tried "sudo ln -s ~/.wine/"drive_c" ~/Desktop"
It worked, very nice and convenient.
[/quote]Heh ... nice one! I added that one to the article.

By the way, James ... the command doesn't place the folder for the C:/ drive on the desktop; it merely places an alias to the C:/ drive; otherwise, the drive and all it's contents will be invisible to the user.

--gdw
MacUser1985
Newbie
Newbie
Posts: 4
Joined: Wed Apr 29, 2009 3:05 pm

Post by MacUser1985 »

I think its as simple as setting it to 32 bit mode... When it launches I get an error message that I need to set the display depth to 32 bit, and that it may crash.
As soon as I attempt to open any level/map file, it does crash
Is the editor available on-line? I would like to install/test it to see
if the bug will go away with the next version of XQuartz.
http://files.wz2100.net/tools/BetaWorldEditor32.exe

Note that if you attempt to use it- you may want to see this tutorial:
http://docs.wz2100.net/map%20tutorials/ ... index.html
Particularly when you first load it, it asks you to set some directories:
http://docs.wz2100.net/map%20tutorials/ ... torial.jpg


The game is open source now: http://wz2100.net/
For anyone interested - its a pretty cool project - soon to have a graphics update using higher poly models and high res textures... new terrain renderer (particularly what it does with water) - stuff way beyond me..

But this is really more about a learning experience for me.
Your display, if you are running a MacBookPro, should already be setup
to support 32 bit video depth. You did not state which Mac you are
running on.

Can you provide the following:

Open About this Mac from the Apple menu and tell us which version of
MacOSX you are using? The click on the More Info... button and then
click on the Graphics/Display item under Hardware and tell us which
video card you are using, the size and color depth of the display you
are using?
I am using an iMac desktop 2.4 GHz core 2 duo, Mac OSX version 10.5.6

ATI Radeon HD 2600 Pro:

Chipset Model: ATI,RadeonHD2600
Type: Display
Bus: PCIe
PCIe Lane Width: x16
VRAM (Total): 256 MB
Vendor: ATI (0x1002)
Device ID: 0x9583
Revision ID: 0x0000
ROM Revision: 113-B2250F-219
EFI Driver Version: 01.00.219
Displays:
iMac:
Resolution: 1680 x 1050
Depth: 32-bit Color
Core Image: Hardware Accelerated
Main Display: Yes
Mirror: Off
Online: Yes
Quartz Extreme: Supported
Built-In: Yes
Display Connector:
Status: No display connected
Locked