magicthread
2009-Jan-16 22:28 UTC
[Wine] Trying to run Spelunky: OpenGL, Mac OS X and Wine
Hi. I'm an OS X user trying to run a freeware GameMaker game with Wine, and I'm running into some trouble. The game is called Spelunky (available here: http://forums.tigsource.com/index.php?topic=4017.0 ). Whenever attempt to run it with Wine, I come across a couple of errors: err:dmloader:IDirectMusicLoaderImpl_IDirectMusicLoader_SetObject : could not attach stream to file err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems. Upon this last error, a message comes up in wine (while the game is still loading) saying "Unexpected error occured(sic) when running the game." I get the err:wgl:has_opengl error when attempting to play other games as well (like ikachan (http://www.tinsanity.net/ikachan/), which doesn't trigger an error in the Windows environment but freezes nonetheless and causes Wine to start the debugger). The only seemingly immediately relevant info I can find is this, from http://forum.winehq.org/viewtopic.php?p=15227 : Zach wrote:> OS X's X11 doesn't support GLX 1.3 right now (Which is the minimum version that Wine requires in order to run stuff with OpenGL). So even if you did get it working, you wouldn't be able to get the game to run.I uninstalled apple's X11 and intsalled XQuartz via macports, and have tried both wine and wine-devel via MacPorts, but both turn up the same errors. I'm still fairly inexperienced with the ins and outs of the terminal and how to compile things but I know enough of the basics to at least get this far (other, non-opengl things work great at least) The Wine FAQ states> What does Wine on Mac OS X support? (DirectX, DirectSound, Direct3D...) > Sound should be working just fine since Wine release 0.9.15. 3D (OpenGL Support) is disabled because of a bug in Apple X11, if you want OpenGL Support turned on refer to the Wine Mac OS X Package Creation Page.and links to http://wiki.winehq.org/MacOSX/Building , which makes no mention of how to turn on OpenGL support, but links to the Darwine documentation (http://darwine.sourceforge.net/docs/dev-doc.xml) which doesn't make a mention of OpenGL at all. So... what should I do? I feel like if I somehow got glx 1.3 this would solve my problem, but I don't know where to start. Is it possible to get opengl support with wine via macports? Here is my info: X.org Release 7.3 X.Org X Server 1.4.2-apple31 Build Date: 20090115 wine-1.1.12 most winetricks installed (is there a way I can make a list of which ones are installed? I didn't do the video codecs or apps)
magicthread wrote:> > > edit: Also I can get a bit farther using Crossover, but it's garbage-level (graphics only work when it's way-zoomed in for some reason, but even when it works properly they're shifted halfway up the screen) > > Thanks for your time.If you get Wine to run, you'll find this same result. It appears there is some missing functionality in Wine's d3d implementation, bug 15268 tracks this issue (games produces by Gamemaker).
James McKenzie
2009-Jan-17 03:37 UTC
[Wine] Trying to run Spelunky: OpenGL, Mac OS X and Wine
magicthread wrote:> Hi. I'm an OS X user trying to run a freeware GameMaker game with Wine, and I'm running into some trouble. The game is called Spelunky (available here: http://forums.tigsource.com/index.php?topic=4017.0 ). Whenever attempt to run it with Wine, I come across a couple of errors: > > err:dmloader:IDirectMusicLoaderImpl_IDirectMusicLoader_SetObject : could not attach stream to file > > err:wgl:has_opengl glx_version is 1.2 and GLX_SGIX_fbconfig extension is unsupported. Expect problems. > >If you are using Apple's X11 or the X11 supplied by XQuartz, this is true. You might be able to build the version available from Xorg, but you will need a great deal of luck and time. XQuartz states that they will upgrade OpenGL support with XQuartz 2.4. There is an issue to track issues with this game builder and Wine as well. Sorry I don't have better news than this. James McKenzie
magicthread
2009-Jan-18 20:05 UTC
[Wine] Re: Trying to run Spelunky: OpenGL, Mac OS X and Wine
Thanks for the response James. I guess I should keep better track of the bug tracker, then!
James Mckenzie
2009-Jan-18 22:00 UTC
[Wine] Trying to run Spelunky: OpenGL, Mac OS X and Wine
magicthread <wineforum-user at winehq.org> wrote:>Thanks for the response James. I guess I should keep better track of the bug tracker, then! > >I really wish that I had better news that that. Keep track of the XQuartz project on their site. I really hope that they bring in OpenGL 1.3 before the release of 10.6 (what will it be named, Ocolet?) James McKenzie
Thunderbird
2009-Jan-19 08:26 UTC
[Wine] Re: Trying to run Spelunky: OpenGL, Mac OS X and Wine
We don't require GLX 1.3 at all we only need GLX 1.2 + GLX_SGIX_fbconfig (which is a very standard extension). For some reason XQuartz doesn't offer it while it has been very common for years and iti s really required in our OpenGL implementation.