https://bugs.winehq.org/show_bug.cgi?id=42054
Bug ID: 42054 Summary: Failed to load texture AOE 2 HD Product: Wine Version: 2.0-rc2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3dx9 Assignee: wine-bugs@winehq.org Reporter: felipematas@yahoo.com Distribution: ---
Hi all, i this day recompile wine and i try play AOE2 HD, but when i try play a LAN game i get this error:
Failed to load texture: Z:\home\pipe\Documentos\a\q\game\resources_common\terrain\water\normal0.png
I try with Win 7 and XP configs .
but if i run this i can play:
winetricks d3dx9_43
But is very very slow, so practically i can't play.
I'm using Gentoo 64 (9999 ebuild)
End of the log:
trace:d3dx:D3DXCreateTextureFromFileExA device 0x2728218, srcfile "Z:\home\pipe\Documentos\a\q\game\resources\_common\terrain\blends\Reserved.png", width 4294967295, height 4294967295, miplevels 1, usage 0, format 0x32, pool 0x1, filter 0x1, mipfilter 0x1, colorkey 0x00000000, srcinfo (nil), palette (nil), texture 0xb4094b4. trace:d3dx:D3DXCreateTextureFromFileExW device 0x2728218, srcfile L"Z:\home\pipe\Documentos\a\q\game\resources\_common\terrain\blends\Reserved.png", width 4294967295, height 4294967295, miplevels 1, usage 0, format 0x32, pool 0x1, filter 0x1, mipfilter 0x1, colorkey 0x00000000, srcinfo (nil), palette (nil), texture 0xb4094b4. trace:d3dx:D3DXCreateTextureFromFileInMemoryEx device 0x2728218, srcdata 0x3a80000, srcdatasize 71440, width 4294967295, height 4294967295, miplevels 1, usage 0, format 0x32, pool 0x1, filter 0x1, mipfilter 0x1, colorkey 0, srcinfo (nil), palette (nil), texture 0xb4094b4. trace:d3dx:D3DXGetImageInfoFromFileInMemory (0x3a80000, 71440, 0x33f040) trace:d3dx:D3DXGetImageInfoFromFileInMemory File type is PNG trace:d3dx:D3DXCheckTextureRequirements (0x2728218, 0x33f1cc, 0x33f1d0, 0x33f1d4, 0, 0x33f1dc, 1) trace:d3dx:D3DXCheckTextureRequirements Requested format 32 trace:d3dx:D3DXCheckTextureRequirements Format chosen: 32 trace:d3dx:D3DXCreateTexture device 0x2728218, width 512, height 512, miplevels 1, usage 0, format 0x32, pool 0x1, texture 0xb4094b4. trace:d3dx:D3DXCheckTextureRequirements (0x2728218, 0x33efd4, 0x33efd8, 0x33efdc, 0, 0x33efe4, 1) trace:d3dx:D3DXCheckTextureRequirements Requested format 32 trace:d3dx:D3DXCheckTextureRequirements Format chosen: 32 trace:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture created correctly. Now loading the texture data into it. trace:d3dx:D3DXLoadSurfaceFromFileInMemory dst_surface 0xb8a7f18, dst_palette (nil), dst_rect (null), src_data 0x3a80000, src_data_size 71440, src_rect (null), filter 0x1, color_key 0x00000000, src_info (nil). trace:d3dx:D3DXGetImageInfoFromFileInMemory (0x3a80000, 71440, 0x33ef70) trace:d3dx:D3DXGetImageInfoFromFileInMemory File type is PNG trace:d3dx:D3DXLoadSurfaceFromMemory (0xb8a7f18, (nil), (null), 0xb8e8300, 0x32, 512, (nil), (0,0)-(512,512), 0x1, 0x00000000) trace:d3dx:D3DXFilterTexture (0xb867c80, (nil), 0, 0x1) trace:d3dx:D3DXCreateTextureFromFileExA device 0x2728218, srcfile "Z:\home\pipe\Documentos\a\q\game\resources\_common\terrain\water\normal0.png", width 4294967295, height 4294967295, miplevels 1, usage 0, format 0x3c, pool 0x1, filter 0x1, mipfilter 0x1, colorkey 0x00000000, srcinfo (nil), palette (nil), texture 0xaa2f0e8. trace:d3dx:D3DXCreateTextureFromFileExW device 0x2728218, srcfile L"Z:\home\pipe\Documentos\a\q\game\resources\_common\terrain\water\normal0.png", width 4294967295, height 4294967295, miplevels 1, usage 0, format 0x3c, pool 0x1, filter 0x1, mipfilter 0x1, colorkey 0x00000000, srcinfo (nil), palette (nil), texture 0xaa2f0e8. trace:d3dx:D3DXCreateTextureFromFileInMemoryEx device 0x2728218, srcdata 0x3a80000, srcdatasize 430666, width 4294967295, height 4294967295, miplevels 1, usage 0, format 0x3c, pool 0x1, filter 0x1, mipfilter 0x1, colorkey 0, srcinfo (nil), palette (nil), texture 0xaa2f0e8. trace:d3dx:D3DXGetImageInfoFromFileInMemory (0x3a80000, 430666, 0x33f060) trace:d3dx:D3DXGetImageInfoFromFileInMemory File type is PNG trace:d3dx:D3DXCheckTextureRequirements (0x2728218, 0x33f1ec, 0x33f1f0, 0x33f1f4, 0, 0x33f1fc, 1) trace:d3dx:D3DXCheckTextureRequirements Requested format 3c fixme:d3dx:get_format_info Unknown format 0x3c (as FOURCC "<\x00\x00\x00"). trace:d3dx:D3DXCheckTextureRequirements Format chosen: 3c trace:d3dx:D3DXCreateTexture device 0x2728218, width 512, height 512, miplevels 1, usage 0, format 0x3c, pool 0x1, texture 0xaa2f0e8. trace:d3dx:D3DXCheckTextureRequirements (0x2728218, 0x33eff4, 0x33eff8, 0x33effc, 0, 0x33f004, 1) trace:d3dx:D3DXCheckTextureRequirements Requested format 3c fixme:d3dx:get_format_info Unknown format 0x3c (as FOURCC "<\x00\x00\x00"). trace:d3dx:D3DXCheckTextureRequirements Format chosen: 3c trace:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture created correctly. Now loading the texture data into it. trace:d3dx:D3DXLoadSurfaceFromFileInMemory dst_surface 0xb8a81e0, dst_palette (nil), dst_rect (null), src_data 0x3a80000, src_data_size 430666, src_rect (null), filter 0x1, color_key 0x00000000, src_info (nil). trace:d3dx:D3DXGetImageInfoFromFileInMemory (0x3a80000, 430666, 0x33ef90) trace:d3dx:D3DXGetImageInfoFromFileInMemory File type is PNG trace:d3dx:D3DXLoadSurfaceFromMemory (0xb8a81e0, (nil), (null), 0x4382020, 0x14, 1536, (nil), (0,0)-(512,512), 0x1, 0x00000000) fixme:d3dx:get_format_info Unknown format 0x3c (as FOURCC "<\x00\x00\x00"). fixme:d3dx:D3DXLoadSurfaceFromMemory Unsupported pixel format conversion 0x14 -> 0x3c fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
Note: I test this in a clean .wine.
Thx. Cya.
https://bugs.winehq.org/show_bug.cgi?id=42054
--- Comment #1 from Lagu felipematas@yahoo.com --- maybe related with this two lines?
fixme:d3dx:get_format_info Unknown format 0x3c (as FOURCC "<\x00\x00\x00"). fixme:d3dx:D3DXLoadSurfaceFromMemory Unsupported pixel format conversion 0x14 -> 0x3c
https://bugs.winehq.org/show_bug.cgi?id=42054
--- Comment #2 from Lagu felipematas@yahoo.com --- Hi, if i inspect right this, to solve this is necessary implement D3DFMT_V8U8 in dlls/d3dx9_36/util.c:57
Thx. Cya.
https://bugs.winehq.org/show_bug.cgi?id=42054
--- Comment #3 from Matteo Bruni matteo.mystral@gmail.com --- (In reply to Lagu from comment #2)
Hi, if i inspect right this, to solve this is necessary implement D3DFMT_V8U8 in dlls/d3dx9_36/util.c:57
Thx. Cya.
It's a bit more complicated than that but yes, that's probably the culprit.
https://bugs.winehq.org/show_bug.cgi?id=42054
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=42054
Hannes hannes.uell@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hannes.uell@googlemail.com
--- Comment #4 from Hannes hannes.uell@googlemail.com --- I have the same problem, any workaround here? Thanks
https://bugs.winehq.org/show_bug.cgi?id=42054
Neth3rtwist fcneutral@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fcneutral@hotmail.com
--- Comment #5 from Neth3rtwist fcneutral@hotmail.com --- Same AOE 2 HD texture error, running on OSX Capitan mb11. Was curious if anyone found a workaround for this?
https://bugs.winehq.org/show_bug.cgi?id=42054
--- Comment #6 from whatbug n296869@rtrtr.com --- This seems to be still a problem with wine-4.0-rc3 apparently. Executing `wine Launcher.exe` ends in the know errors:
002a:fixme:d3dx:get_format_info Unknown format 0x3c (as FOURCC "<\x00\x00\x00"). 002a:fixme:d3dx:get_format_info Unknown format 0x3c (as FOURCC "<\x00\x00\x00"). 002a:fixme:d3dx:get_format_info Unknown format 0x3c (as FOURCC "<\x00\x00\x00"). 002a:fixme:d3dx:D3DXLoadSurfaceFromMemory Unsupported pixel format conversion 0x14 -> 0x3c 002a:fixme:d3dx:D3DXCreateTextureFromFileInMemoryEx Texture loading failed.
AFAICT this is due to the format for the textures. Why is this a problem for some people and it works fine for others? Does it depend on the xserver hardware driver?
https://bugs.winehq.org/show_bug.cgi?id=42054
whatbug n296869@rtrtr.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |n296869@rtrtr.com
--- Comment #7 from whatbug n296869@rtrtr.com --- (In reply to whatbug from comment #6)
AFAICT this is due to the format for the textures. Why is this a problem for some people and it works fine for others? Does it depend on the xserver hardware driver?
From what's written earlier and what I found in the source, this isn't the case
but that still does not make any sense.
https://bugs.winehq.org/show_bug.cgi?id=42054
--- Comment #8 from whatbug n296869@rtrtr.com --- Created attachment 63105 --> https://bugs.winehq.org/attachment.cgi?id=63105 First(?) version of a patch