Intercept Dungeon Keeper 2 Textures

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
dedesite
Level 2
Level 2
Posts: 11
Joined: Sat Jul 12, 2008 4:50 am

Intercept Dungeon Keeper 2 Textures

Post by dedesite »

Hi everyone,

I don't if this post belong to wine-devel or the forum so I'm putting it here now and in case I'm wrong I'll post to wine-devel.

I try to retrieve Dungeon Keeper 2 resources (meshes, textures, sound etc.) in order to create an hypotetical clone of this game :D.
Since I'm not a pro in hacking compression algorithm I didn't try to understand the DKII propretary image format, so I think I'd rather use wine to intercept DirectX Texture calls and save the textures.

I just took a code that save a DirectDrawSurface (the game use DirectDraw 7) into a bitmap (http://gpalem.web.officelive.com/bitmap.html) a called it before the surface is release, this way I catch every surface and that they are well initialized, at least that's what I supposed...

My technic kinda works but, I got a lot of black textures and the others have all the pixel inverted and colors are...weird.

Since my understanding of C, ddraw, BitBlt and the bitmap format is limited I must have done something wrong but I'm out of ideas :).
I've tried a lot of BitBlt rop flag, none of them change the result and I have those errors on every call to BitBlt :

Code: Select all

err:xrender:get_xrender_format_from_color_shifts No XRender format found!
err:xrender:get_xrender_format_from_color_shifts No XRender format found!
Here is my ddraw patch and a texture, if someone has a idea, feels free to help :D.
http://2012.lstilde.org/wine/

Greetings,
Andreas
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Intercept Dungeon Keeper 2 Textures

Post by vitamin »

dedesite wrote:I try to retrieve Dungeon Keeper 2 resources (meshes, textures, sound etc.) in order to create an hypotetical clone of this game
This would be a copyright infringement and thus illegal in most countries.

Topic closed.
Locked