Thief on linux... New plan - by Albert
snobel on 21/1/2010 at 14:26
Quote Posted by Albert
This all combines with some of the current work being done on DDFIX, which may possibly solve the fog problem.
Is DDFIX still being developed? That is good news.
Quote Posted by lost_soul
I currently run Thief 1/2 in Wine with the following issues. Sometimes you can't skip videos. If you try, the video will freeze until it finishes. There is no fix for this problem that I know of. Also, loading times are quite a bit slower than they are on my Windows install.
Installing a native quartz.dll fixed the video issue for me.
Do report if the RAM disk trick improves the loading times. I'd guess the CPU, not disk access is the bottleneck, but you never know.
Quote Posted by Albert
Now, do you think you could help me, by compiling Wine 1.1.36 with the 3dmark patch I linked to in my post prior?
Here is an updated version of that patch, for 1.1.36:
Code:
--- wine-1.1.36/dlls/wined3d/directx.c.orig 2010-01-08 20:20:11.000000000 +0100
+++ wine-1.1.36/dlls/wined3d/directx.c 2010-01-21 13:03:48.231939320 +0100
@@ -1860,7 +1860,7 @@
if (gl_info->supported[ARB_MULTITEXTURE])
{
glGetIntegerv(GL_MAX_TEXTURE_UNITS_ARB, &gl_max);
- gl_info->limits.textures = min(MAX_TEXTURES, gl_max);
+ gl_info->limits.textures = 8;
TRACE_(d3d_caps)("Max textures: %d.\n", gl_info->limits.textures);
if (gl_info->supported[NV_REGISTER_COMBINERS])
@@ -3849,7 +3849,11 @@
WINED3DPMISCCAPS_CLIPTLVERTS |
WINED3DPMISCCAPS_CLIPPLANESCALEDPOINTS |
WINED3DPMISCCAPS_MASKZ |
- WINED3DPMISCCAPS_BLENDOP |
+ WINED3DPMISCCAPS_TSSARGTEMP |
+ WINED3DPMISCCAPS_FOGANDSPECULARALPHA |
+ WINED3DPMISCCAPS_SEPARATEALPHABLEND |
+ WINED3DPMISCCAPS_BLENDOP |
+ WINED3DPMISCCAPS_FOGVERTEXCLAMPED |
WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING;
/* TODO:
WINED3DPMISCCAPS_NULLREFERENCE
@@ -4134,7 +4138,7 @@
pCaps->MaxVertexBlendMatrixIndex = 0;
pCaps->MaxAnisotropy = gl_info->limits.anisotropy;
- pCaps->MaxPointSize = gl_info->limits.pointsize_max;
+ pCaps->MaxPointSize = 64.0f;
/* FIXME: Add D3DVTXPCAPS_TWEENING, D3DVTXPCAPS_TEXGEN_SPHEREMAP */
@@ -4152,6 +4156,8 @@
/* d3d9.dll sets D3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES here because StretchRects is implemented in d3d9 */
pCaps->DevCaps2 = WINED3DDEVCAPS2_STREAMOFFSET |
+ WINED3DDEVCAPS2_CAN_STRETCHRECT_FROM_TEXTURES |
+ WINED3DDEVCAPS2_PRESAMPLEDDMAPNPATCH |
WINED3DDEVCAPS2_VERTEXELEMENTSCANSHARESTREAMOFFSET;
pCaps->MaxNpatchTessellationLevel = 0;
pCaps->MasterAdapterOrdinal = 0;
The patched version compiles, installs and runs on Ubuntu 9.10. I could see no noticeable difference with T2 though, with or without DDFIX. I have a checkinstall .deb that I can upload if needed.
Albert on 21/1/2010 at 14:42
Thanks alot! :D
Yes, I can't compile that. Never figured out why I can't install a damn thing. It's just that I can't! If you'd upload that deb, that would help.
(Augh! First the flu, and now my horrible grammer...)
Thanks in advance!
Albert on 21/1/2010 at 18:34
Heh, oh yeah. Big improvements for sure! :cheeky:
I noticed that the graphics in the menu weren't too glitchy as last time, but so far I think I've screwed a few things up. Does winetricks affect thief 2 in any way? And is there any way I could remove directx from wine? Or am I fine, and that maybe I should find out where the registry instructions for thief 2 is. Right now, I think I'll have to reset because I don't see wine in the main menu.
Still, crashes when I hit start game in the new game menu. I swear that the first time I tried, the game actually worked, and although the graphics looked like they were being filtered through a see-through knitted quilt, they ran at native speed. I'm trying to at least achieve this state again, so I can post pictures.
Albert on 21/1/2010 at 19:10
Wow, I found that it was ddfix screwing me the whole time. I painstakingly downloaded a thief 2 exe w/o ddfix patch, and used it in place of the one I got off the forums. Here's my results:
Inline Image:
http://img714.imageshack.us/img714/4385/holy.pngHmm, now, maybe it is just the flu hallucination, but I swear those patchy lines looked a whole lot worse back when I first tried this out. However, considering this is in ddraw mode and running at full speed, I'm a bit short of words.
However, as a result of that, the skies look terrible:
Inline Image:
http://img25.imageshack.us/img25/5130/holy2f.pngEven when I had the gamma up to the highest it could go, I still had to modify the image afterwards in gimp, because although I could see the skies clearly (regardless of gamma), the end result looked terrible.
Also, I never saw the cursor, but apparently gimps printscreen capture did.
(also, I noticed that the resolution change I did was instantaneous. I started 800x600 but went to 640x480 thinking that would fix things)
snobel on 21/1/2010 at 19:19
That looks ... interesting :) What graphics card do you have? And if it is Nvidia or ATI, are you using the proprietary driver?
What distro do you have?
Albert on 21/1/2010 at 19:23
Oh, I'm just using the GMA (900, I think. I actually can't remember what inspiron 1525 has.) in my laptop. Intel is the poor mans 3D, after all. :rolleyes:
Erm, I dunno if Ubuntu's drivers for intel graphics is proprietary or not. I'm pretty sure intel wouldn't mind giving their code to the linux community. (Oh, you meant if I had either ati or nvidia drivers. No, I didn't mean to sound rude, I just misread the question.)
And I have Ubuntu 9.10. That distro was fresh installed.
And above all, I post a late apology to lost_soul. I didn't mean to sound callous.
Albert on 21/1/2010 at 20:38
Well, I guess this is just about as far as I could get: I tested an FM with Darkloader, and it worked near-perfectly. It wasn't freezing earlier, but now it is. Ah, nothing a little schedtool can't fix.
Oh, and I forgot to mention this, but videos work. I can't remember what I did to get them to work, though.
OK, now the thread veering a bit from my OP. With all this as evidence, does anyone here think it's possible to distribute a modified version of wine for thief fans?
Albert on 21/1/2010 at 21:25
Oh... My... GOD!!!:
Inline Image:
http://img19.imageshack.us/img19/1815/holys.pngIt's fog... I think... Dunno, it's hard to tell with such choppy graphics...
UPDATE: OK, well, this is strange. On one hand, fog actually works, but in LOTP so far, I'm getting the odd clipping like one would if they were to use Si02's dddfix fog patch and play LOTP with the LOTP fix = 0 (which I'm not using to play my wine install of thief 2), which helps other mission work besides LOTP. Hwever, lemme check out Masks and whatever mission comes after LOTP.
Also, for those who don't know: Mantling doesn't work unless you nix the auto repeat function in gnomes keyboard settings. And sound goes out while it sounds rather strange. Anyone know a terminal command to turn pulseaudio off, if that is what the problem is?
However, if this actually works, then it negates the current tests that have been done (
http://appdb.winehq.org/objectManager.php?sClass=version&iId=4206&iTestingId=42881) here, so far.
lost_soul on 21/1/2010 at 21:53
Here is a shot of the game running on my laptop (primary machine). Note that the pointer is NOT stuck in the center of the screen during gameplay, and the game runs full-screen just fine. It works in glorious 32-bit and all.
Inline Image:
http://dl.dropbox.com/u/252056/thiefonlinux.jpgA shot from one of the best looking parts of the game IMO.