Running ZooTycoon 2 Demo

Paul Vriens Paul.Vriens at xs4all.nl
Sat Mar 5 10:19:40 CST 2005


Hi,

I'm running current CVS with a fresh tools/wineinstall. Only changes to
the config-file:

"Drivers" = "winealsa.drv"
"HardwareAcceleration" = "Emulation"

; Zoo Tycoon 2 Demo install
[AppDefaults\\Zoo2Trial.exe\\Version]
"Windows" = "winxp"
; Zoo Tycoon 2 Demo run
[AppDefaults\\zt2demoretail.exe\\x11drv]
"Desktop" = "800x600"

installation of the app is fine (set version to winxp). When trying to
run the demo it immediately fails:

fixme:d3d9:IDirect3DDevice9Impl_CreateSurface (0x77e38ea8) call to IWineD3DDevice_CreateRenderTarget failed
First chance exception: page fault on read access to 0x00000000 in 32-bit code (0x14a9481a).

Fixed/circumvented that by:

Index: dlls/wined3d/directx.c
===================================================================
RCS file: /home/wine/wine/dlls/wined3d/directx.c,v
retrieving revision 1.25
diff -u -p -r1.25 directx.c
--- dlls/wined3d/directx.c      2 Mar 2005 13:44:58 -0000       1.25
+++ dlls/wined3d/directx.c      5 Mar 2005 16:11:45 -0000
@@ -1578,7 +1578,8 @@ HRESULT  WINAPI  IWineD3DImpl_CreateDevi
     object->render_ctx   = object->glCtx;
     object->renderTarget = object->backBuffer;
      
-    IWineD3DSurface_AddRef((IWineD3DSurface *) object->renderTarget);
+    if (NULL != object->renderTarget)
+      IWineD3DSurface_AddRef((IWineD3DSurface *) object->renderTarget);
 /* TODO: Depth Stencil support
     object->stencilBufferTarget = object->depthStencilBuffer;
     if (NULL != object->stencilBufferTarget) {

It comes a bit further now but fails again:

trace:d3d:IWineD3DDeviceImpl_SetViewport glDepthRange call ok device.c / 1811
trace:d3d:IWineD3DDeviceImpl_SetViewport This->renderTarget : ((nil))
First chance exception: page fault on read access to 0x0000003c in 32-bit code (0x4658033a).

The extra trace was added by me. Again this points to *->renderTarget
being NULL. So there must be more to it.

Any ideas? Oliver?

Cheers,

Paul.




More information about the wine-devel mailing list