Problems with Counter Strike Source

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
GhostRider
Level 1
Level 1
Posts: 6
Joined: Thu Apr 02, 2009 11:34 am

Problems with Counter Strike Source

Post by GhostRider »

Hi all

First : sorry for my english, i'm french :oops:

I have a problem with counter strike source.
I'm on Ubuntu 8.04.2 Hardy ( and not Studio, i just have the ubuntu studio skin ), i have an ATI radeon 4850 graphic card ( with the latest drivers installed ) and Wine 1.1.18 . ( also 2GB of ram and 32 bits version of ubuntu, it's called " x86 " )

To launch the game, i put " WINEDEBUG=fixme-all wine -fullscreen -w 1440 -h 900 -refresh 60 -dxlevel 81 -console -heapsize 1024000 "$@" " in the css / properties / set launch options ( i don't know if it's like that in English, i tried to translate ) then i launch the game with double click or launch button
See my screen if u don't understand
Image
http://moe.mabul.org/up/moe/2009/04/02/ ... 2y1npn.png
The problems are :
sometimes the game crash wen i try to join a server
sometimes the game make crash the system when playing / joining a server ( i have to reboot with the button on the case )
sometimes i can play 30mn / 1h without any problem ... then the game crash ( close without any error message )
very often the game crash just after i joined a server ( 2 or 3mn after joining a server )
I tryed to reduce the resolution ( 1024*768, 1280 * 1024 ... ), make the game " windowed " ( not fullscreen ) and to turn Compiz Fusion OFF, but problems stays !

I dnt know what can i do ...
If someone got a solution, tell me ... thx

I hope u understand my message :oops: sorry for my " french " english :roll:

Have a nice day
Last edited by GhostRider on Fri Apr 03, 2009 2:25 pm, edited 2 times in total.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Problems with Counter Strike Source

Post by vitamin »

GhostRider wrote:i have an ATI radeon 4850 graphic card
First mistake. ATI has bad Linux drivers
GhostRider wrote:To launch the game, i put " WINEDEBUG=fixme-all wine -fullscreen -w 1440 -h 900 -refresh 60 -dxlevel 81 -console -heapsize 1024000 "$@" " in the css / properties / set launch options
Wrong, WINEDEBUG is environment variable not a game option. The only valid options from that list are:

Code: Select all

-dxlevel 81 -fullscreen -w 1440 -h 900 -refresh 60 -console -heapsize 1024000
GhostRider wrote:sometimes the game crash wen i try to join a server
sometimes the game make crash the system when playing / joining a server ( i have to reboot with the button on the case )
sometimes i can play 30mn / 1h without any problem ... then the game crash ( close without any error message )
very often the game crash just after i joined a server ( 2 or 3mn after joining a server )
You have to:
1. Disable "Steam community in-game"
2. Use patches available in bugzilla for font related problems in CS:S (see this bug: http://bugs.winehq.org/show_bug.cgi?id=7698)
3. Pray that somehow you are more lucky then most other users of ATI cards
GhostRider
Level 1
Level 1
Posts: 6
Joined: Thu Apr 02, 2009 11:34 am

Re: Problems with Counter Strike Source

Post by GhostRider »

Hi and thank u for ur answer
Wrong, WINEDEBUG is environment variable not a game option. The only valid options from that list are:
Strange, in the ubuntu-fr documentation about css ( http://doc.ubuntu-fr.org/cssource ), they say
Faites un clic droit sur le jeu "Counter-Strike: Source" séléctionnez "Propriètès" puis "Définir les options de lancement" et copiez-y cette ligne :

WINEDEBUG=fixme-all wine -fullscreen -width 1280 -height 1024 -refresh 60 -dxlevel 81 -console -heapsize 1024000 +map_background none "$@"
Translation >
Right clic on " counter strike : source " select " properties " and " set lanch options " and copy / paste this line
> WINEDEBUG [...]
:? I will try to delete " WINEDEBUG=fixme-all wine and "$@" and see what's happen ...

You have to:
1. Disable "Steam community in-game"
2. Use patches available in bugzilla for font related problems in CS:S (see this bug: http://bugs.winehq.org/show_bug.cgi?id=7698)
3. Pray that somehow you are more lucky then most other users of ATI cards
1. I do
2. I will do that
> EDIT

Can u explain to me how to DL the patches and how to install patches ? I don't know how to do that
3. :D :?
GhostRider
Level 1
Level 1
Posts: 6
Joined: Thu Apr 02, 2009 11:34 am

Post by GhostRider »

Hi


I just have a question ( about the link of vitamin )
Image
http://moe.mabul.org/up/moe/2009/04/03/ ... 0o0r73.png

What i show u with a red arrows are patches, or just blue arrows are patches ?
I tried to download what i think are patches ( blue arrows ) but for the " Client side fix/hack (HUD modification to lower font size) " i downloaded a .res file ( ClientScheme.res ) and i don't know what can i do with that, and for the " Hack to fix CSS " it open a window with many code
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 424fb3d..b25aa2e 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3580,6 +3580,21 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
unsigned int mult, row, col;
BYTE *start, *ptr;

+if(!strcmp(ft_face->family_name, "csd"))
+{
+ int i;
+ if(lpgm->gmBlackBoxX)
+ lpgm->gmBlackBoxX--;
+ for(i = 0; i < 2; i++)
+ {
+ if(lpgm->gmBlackBoxY)
+ {
+ lpgm->gmBlackBoxY--;
+ lpgm->gmptGlyphOrigin.y--;
+ }
+ }
+}
+
width = lpgm->gmBlackBoxX;
height = lpgm->gmBlackBoxY;
pitch = (width + 3) / 4 * 4;
I also don't know what can i do with that ...
Other links ( Added console output, Trace of d3d calls leading up to crash etc... open a window with, maybe, game/wine logs ).


Somebody can help me ?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Problems with Counter Strike Source

Post by austin987 »

On Fri, Apr 3, 2009 at 2:23 PM, GhostRider <[email protected]> wrote:
Hi


I just have a question ( about the link of vitamin )
[Image: http://moe.mabul.org/up/moe/2009/04/03/ ... 0o0r73.png ] (http://moe.mabul.org/up/moe/2009/04/03/ ... 3.png.html)
http://moe.mabul.org/up/moe/2009/04/03/ ... 0o0r73.png

What i show u with a red arrows are patches, or just blue arrows are patches ?
I tried so download what i think are patches ( blue arrows ) but for the " Client side fix/hack (HUD modification to lower font size) " i downloaded a .res file ( ClientScheme.res ) and i don't know what can i do with that, and for the "  Hack to fix CSS " it open a window with many code
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 424fb3d..b25aa2e 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3580,6 +3580,21 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
        unsigned int mult, row, col;
        BYTE *start, *ptr;

+if(!strcmp(ft_face->family_name, "csd"))
+{
+    int i;
+    if(lpgm->gmBlackBoxX)
+        lpgm->gmBlackBoxX--;
+    for(i = 0; i < 2; i++)
+    {
+        if(lpgm->gmBlackBoxY)
+        {
+            lpgm->gmBlackBoxY--;
+            lpgm->gmptGlyphOrigin.y--;
+        }
+    }
+}
+
         width = lpgm->gmBlackBoxX;
        height = lpgm->gmBlackBoxY;
        pitch = (width + 3) / 4 * 4;

I also don't know what can i do with that ...
Other links ( Added console output, Trace of d3d calls leading up to crash etc... open a window with, maybe, game/wine logs ).


Somebody can help me ?





http://wiki.winehq.org/Patching

--
-Austin
GhostRider
Level 1
Level 1
Posts: 6
Joined: Thu Apr 02, 2009 11:34 am

Post by GhostRider »

hi and thank you for u'r answer.

I have many questions ( sorry, but i'm totaly new on Ubuntu .. :) )

So, this
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 424fb3d..b25aa2e 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3580,6 +3580,21 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
unsigned int mult, row, col;
BYTE *start, *ptr;

+if(!strcmp(ft_face->family_name, "csd"))
+{
+ int i;
+ if(lpgm->gmBlackBoxX)
+ lpgm->gmBlackBoxX--;
+ for(i = 0; i < 2; i++)
+ {
+ if(lpgm->gmBlackBoxY)
+ {
+ lpgm->gmBlackBoxY--;
+ lpgm->gmptGlyphOrigin.y--;
+ }
+ }
+}
+
width = lpgm->gmBlackBoxX;
height = lpgm->gmBlackBoxY;
pitch = (width + 3) / 4 * 4;
is a patch ?
On u'r link, u say " Simply download the patch " but, how can i download this ?
and copy it to your wine source folder (often ~/wine-git/)
Were is this wine source folder ? ( i don't know what is " ~ " )

Also, were can i put my " ClientScheme.res " file ? I have to do what u say in u'r link or to put this file in a folder ?
And rerun your program:
But, for css, there is no .exe in the Program Files folder, there is also no steam folder in my c:\ program files, i just have " common files " and " internet explorer " :(

Thank you for u'r help and u'r work (if u'r the " austinenglish " who write this patching tutorial :P )


Also sorry for my ( i think ) bad english, i hope u understand my post :oops:
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Problems with Counter Strike Source

Post by austin987 »

On Fri, Apr 3, 2009 at 2:45 PM, GhostRider <[email protected]> wrote:
hi and thank you for u'r answer.

I have many questions ( sorry, but i'm totaly new on Ubuntu .. :) )

So, this
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 424fb3d..b25aa2e 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3580,6 +3580,21 @@ DWORD WineEngGetGlyphOutline(GdiFont *incoming_font, UINT glyph, UINT format,
unsigned int mult, row, col;
BYTE *start, *ptr;

+if(!strcmp(ft_face->family_name, "csd"))
+{
+ int i;
+ if(lpgm->gmBlackBoxX)
+ lpgm->gmBlackBoxX--;
+ for(i = 0; i < 2; i++)
+ {
+ if(lpgm->gmBlackBoxY)
+ {
+ lpgm->gmBlackBoxY--;
+ lpgm->gmptGlyphOrigin.y--;
+ }
+ }
+}
+
width = lpgm->gmBlackBoxX;
height = lpgm->gmBlackBoxY;
pitch = (width + 3) / 4 * 4;
is a patch ?
Yes.
On u'r link, u say " Simply download the patch " but, how can i download this ?
In firefox? File, save as, blah.txt
your link wrote:and copy it to your wine source folder (often ~/wine-git/)
Were is this wine source folder ? ( i don't know what is " ~ " )
~ = home folder. Probably /home/username.

Wine source folder, you have to download. You have to compile wine.
See http://wiki.winehq.org/GitWine
your link wrote:And rerun your program:
But, for css, there is no .exe in the Program Files folder, there is also no steam folder in my c:\ program files, i just have " common files " and " internet explorer "  :(
Then where is it installed?

--
-Austin
GhostRider
Level 1
Level 1
Posts: 6
Joined: Thu Apr 02, 2009 11:34 am

Post by GhostRider »

Thank u'r for u'r answer.

I just discovered that Playonlinux make a big *** with Wine folder and steam folder.

I will delete steam and playonlinux and reinstall steam ( with classic method, with just Wine, playonlinux is a *** ) to have a clean instalation, then i will do what i tell me.

Thank u
GhostRider
Level 1
Level 1
Posts: 6
Joined: Thu Apr 02, 2009 11:34 am

Post by GhostRider »

Re

So, i reinstalled wine, steam and uninstalled Playonlinux, now everything is installed and work ( but i have the same crash of css problem ).
So, i downloaded the " Hack to fix CSS " ( as csshack.txt ) and now i will patch Wine with.
Often times, developers post test patches for users to test their programs with. Though this may seem overwhelming, it's quite simple. Simply download the patch (likely from bugzilla, or possibly from e-mail) and copy it to your wine source folder (often ~/wine-git/). Then run:
In comand line ( because i can't see the wine folder, it's hidden ) how can i copy my " csshack.txt " to the ~/wine folder ?
I don't have a folder called " wine-git " but just a /wine folder, this is the same ?

thank you
3vi1
Level 4
Level 4
Posts: 125
Joined: Sun Feb 24, 2008 8:24 pm

Post by 3vi1 »

GhostRider wrote:Re

In comand line ( because i can't see the wine folder, it's hidden ) how can i copy my " csshack.txt " to the ~/wine folder ?
I don't have a folder called " wine-git " but just a /wine folder, this is the same ?

thank you


No. You have to download the source code, use the patch command on those files, then recompile the source, it's not a simple matter of copying the patchfile to a folder.
Locked