Disabling S3TC support for Wine 1.1.14 How do I patch?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by Skaboss »

I may be an absolute noob for asking this, but I've been at this for about 3 hours now.

So I've been trying to disable S3TC support so I can play this game without getting scrambled graphics. My search lead me to the code for a patch listed here http://bugs.winehq.org/attachment.cgi?id=19211 My question is, what do I do with all that code? how do I get it into my current version? Do I need to download the source for 1.1.14 and if so, where do I put said code and to what directory should I compile it all (running Ubuntu 8.10)?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by dimesio »

Skaboss wrote:I may be an absolute noob for asking this, but I've been at this for about 3 hours now.

So I've been trying to disable S3TC support so I can play this game without getting scrambled graphics. My search lead me to the code for a patch listed here http://bugs.winehq.org/attachment.cgi?id=19211 My question is, what do I do with all that code? how do I get it into my current version? Do I need to download the source for 1.1.14 and if so, where do I put said code and to what directory should I compile it all (running Ubuntu 8.10)?
http://wiki.winehq.org/Patching
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Post by Daemon »

Info @ http://wiki.winehq.org/UsefulRegistryKeys OpenGL->DisabledExtensions->gl_ext_s3tc
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Nope that key won't work for direct3d. The easiest way is to just comment the following line in wined3d/directx.c:
{"GL_EXT_texture_compression_s3tc", EXT_TEXTURE_COMPRESSION_S3TC, 0 },

So add "//" in front of it or remove the line.
James Mckenzie

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by James Mckenzie »

Thunderbird <[email protected]> wrote:
Sent: Feb 17, 2009 12:19 PM
To: [email protected]
Subject: [Wine] Re: Disabling S3TC support for Wine 1.1.14 How do I patch?

Nope that key won't work for direct3d. The easiest way is to just comment the following line in wined3d/directx.c:
{"GL_EXT_texture_compression_s3tc", EXT_TEXTURE_COMPRESSION_S3TC, 0 },

So add "//" in front of it or remove the line.
Or better, use the same commenting style as the rest of the Wine code:

/* {"GL_EXT_texture_compression_s3tc", EXT_TEXTURE_COMPRESSION_S3TC, 0
Removed to prevent S3TC errors
*/

James McKenzie
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

this is all quite helpful only I can't find my source code. Do I need to download it from elsewhere?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Wed, Feb 18, 2009 at 3:53 PM, Skaboss <[email protected]> wrote:
this is all quite helpful only I can't find my source code. Do I need to download it from elsewhere?





http://wiki.winehq.org/GitWine


--
-Austin
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

Again...I may be a raging noob here, but I went to the git website as well as the link listed in the wiki and I'm unsure as to which of those files I should download...I got all the files listed as 1.6.2 put em all in a folder...now they do nothing.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Wed, Feb 18, 2009 at 7:26 PM, Skaboss <[email protected]> wrote:
Again...I may be a raging noob here, but I went to the git website as well as the link listed in the wiki and I'm unsure as to which of those files I should download...I got all the files listed as 1.6.2 put em all in a folder...now they do nothing.





You'd have to compile it if you downloaded the source...no real need.
Your distro's repositories probably have it. Try 'yum install git' or
maybe 'yum install git-core'.

After that, use:
$ git clone git://source.winehq.org/git/wine.git

To get the wine source code.

Then use:
$ patch -p1 < /path/to/the/patch/you/want

To patch the source.

Then:
$ ./configure --verbose

To run configure. Make sure there are no errors. Then finally:
$ make depend && make

To build wine.
--
-Austin
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

and into what program do I type this "yum install git"?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Thu, Feb 19, 2009 at 12:09 AM, Skaboss <[email protected]> wrote:
and into what program do I type this "yum install git"?





Terminal. (Konsole/xconsole).

--
-Austin
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

well, I typed in yum install git which brought up an error saying more or less to try "sudo apt-get yum" so i did. This installed this "yum" program I guess...then I tried "yum install git" ...which did nothing...
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Thu, Feb 19, 2009 at 6:48 PM, Skaboss <[email protected]> wrote:
well, I typed in yum install git which brought up an error saying more or less to try "sudo apt-get yum" so i did. This installed this "yum" program I guess...then I tried "yum install git" ...which did nothing...





What OS are you on?

--
-Austin
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

Ubuntu 8.1
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Thu, Feb 19, 2009 at 10:40 PM, Skaboss <[email protected]> wrote:
Ubuntu 8.1





Oh, sorry, thought I saw OpenSuse somewhere.

Just use:
http://winezeug.googlecode.com/svn/trun ... ne-deps.sh

$ wget http://winezeug.googlecode.com/svn/trun ... ne-deps.sh
$ sudo sh install-wine-deps.sh

--
-Austin
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

ok...did that. And started entering the patching code which just made my terminal unresponsive. So I closed it and now when I try again I get the following error.

jessy@Semra:~$ git clone git://source.winehq.org/git/wine.git
>fatal: destination directory 'wine' already exists.<
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Sat, Feb 21, 2009 at 1:57 PM, Skaboss <[email protected]> wrote:
ok...did that. And started entering the patching code which just made my terminal unresponsive. So I closed it and now when I try again I get the following error.

jessy@Semra:~$ git clone git://source.winehq.org/git/wine.git
fatal: destination directory 'wine' already exists.<
use:
git clone git://source.winehq.org/git/wine.git ~/wine-git


--
-Austin
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

Austin sir...you rock my socks. The source code is patched but I'm still having a little trouble compiling it. I entered in (after patching the code of course):

./configure --verbose

which returned

bash: ./configure: No such file or directory

I then tried: /configure && make depend & make

which returned

bash: line 10: /configure: No such file or directory
[1] 15955
make: *** No targets specified and no makefile found. Stop.
[1]+ Exit 127 /configure && make depend

clearly something is amiss
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Sat, Feb 21, 2009 at 4:26 PM, Skaboss <[email protected]> wrote:
Austin sir...you rock my socks. The source code is patched but I'm still having a little trouble compiling it. I entered in (after patching the code of course):

./configure --verbose

which returned

bash: ./configure: No such file or directory

I then tried: /configure && make depend & make

which returned

bash: line 10: /configure: No such file or directory
[1] 15955
make: *** No targets specified and no makefile found. Stop.
[1]+ Exit 127 /configure && make depend

clearly something is amiss





What directory are you in? What does 'ls' show?

You should see something like:
austin@midna:~/wine-git$ ls
a ANNOUNCE b config.log configure
continue.sh daily.sh daily-test.sh documentation hardcore.sh
libs LICENSE.OLD Makefile Make.rules out quick
configure.sh server VERSION
aclocal.m4 AUTHORS build.sh config.status configure.ac
COPYING.LIB daily.sh~ dlls fonts include
LICENSE loader Makefile.in Make.rules.in programs README
tools wine

Ignoring the scripts/other cruft I have...

--
-Austin
James McKenzie

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by James McKenzie »

Skaboss wrote:
Austin sir...you rock my socks. The source code is patched but I'm still having a little trouble compiling it. I entered in (after patching the code of course):

./configure --verbose

which returned

bash: ./configure: No such file or directory

I then tried: /configure && make depend & make

which returned

bash: line 10: /configure: No such file or directory
[1] 15955
make: *** No targets specified and no makefile found. Stop.
[1]+ Exit 127 /configure && make depend

clearly something is amiss
What directory are you trying this from? You should be in
$HOME/wine-git when running any of these commands.

James McKenzie
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

not sure how to do commands "from" a directory in the terminal. I typed in

/home/jessy/wine-git .configure --verbose

and got

bash: /home/jessy/wine-git: is a directory

I got the same response from ~/wine-git $ ls
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by austin987 »

On Sat, Feb 21, 2009 at 4:50 PM, Skaboss <[email protected]> wrote:
not sure how to do commands "from" a directory in the terminal. I typed in

/home/jessy/wine-git .configure --verbose

and got

bash: /home/jessy/wine-git: is a directory

I got the same response from ~/wine-git $ ls





no...

Go to a terminal.

Type:
cd jessy/wine-git

then do:
./configure

If it doesn't show errors, do:
make depend && make

--
-Austin
Skaboss
Level 2
Level 2
Posts: 16
Joined: Mon Feb 16, 2009 9:09 pm

Post by Skaboss »

It is done! The world is saved at last! Thank you so much for putting up with my obnoxious noobery...noobdome...noobhood? Anyhow, got it working now and thank you much for your help.
IneedAname

Disabling S3TC support for Wine 1.1.14 How do I patch?

Post by IneedAname »

On Sat, 21 Feb 2009 13:57:29 -0600
"Skaboss" <[email protected]> wrote:
ok...did that. And started entering the patching code which just made my terminal unresponsive. So I closed it and now when I try again I get the following error.

jessy@Semra:~$ git clone git://source.winehq.org/git/wine.git
fatal: destination directory 'wine' already exists.<
git checkout
Locked