Counter Strike: Global Offensive

Informations

Creator Message
Thermionix Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 183897
Wine: 2.11

Feedbacks

Description

Counter-Strike: Global Offensive is an online tactical and first-person shooter developed by Valve Corporation and Hidden Path Entertainment,

Screenshots

MiniatureMiniature

Source code

#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
GAME_URL="http://www.counter-strike.net/"
AUTHOR="Thermionix"
WORKING_WINE_VERSION="2.11"
GAME_VMS="512"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/csgo/top.png" "http://files.playonlinux.com/resources/setups/csgo/left.png" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dinput

POL_Call POL_Install_steam 
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

# Spoof as Nvidia card for AMD users
if `POL_DetectVideoCards | grep -qi AMD` ; then
POL_Wine_UpdateRegistry amd_fix <<- _EOFINI_
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"VideoPCIVendorID"=dword:000010de
"VideoPCIDeviceID"=dword:00000402
_EOFINI_
fi

POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
fos Tuesday 31 October 2017 at 0:39
fos Anonymous

Information

This update has been approved by the team.

Differences

@@ -14,7 +14,7 @@
 EDITOR="Valve"
 GAME_URL="http://www.counter-strike.net/"
 AUTHOR="Thermionix"
-WORKING_WINE_VERSION="1.7.21"
+WORKING_WINE_VERSION="2.11"
 GAME_VMS="512"
 
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/csgo/top.png" "http://files.playonlinux.com/resources/setups/csgo/left.png" "$TITLE"

New source code

#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
GAME_URL="http://www.counter-strike.net/"
AUTHOR="Thermionix"
WORKING_WINE_VERSION="2.11"
GAME_VMS="512"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/csgo/top.png" "http://files.playonlinux.com/resources/setups/csgo/left.png" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dinput

POL_Call POL_Install_steam 
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

# Spoof as Nvidia card for AMD users
if `POL_DetectVideoCards | grep -qi AMD` ; then
POL_Wine_UpdateRegistry amd_fix <<- _EOFINI_
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"VideoPCIVendorID"=dword:000010de
"VideoPCIDeviceID"=dword:00000402
_EOFINI_
fi

POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit

Replies

that1irishmate Wednesday 25 May 2016 at 18:55
that1irishmate Anonymous

Message

I have problems with CS:GO on steam. I tried looking for the answer but apparently no one has answered his question: http://ubuntuforums.org/showthread.php?t=2169326

It keeps telling me that:

ENGINE ERROR

Your graphics hardware does not support all features (CSM) needed to run this game.

Device Info:

Marked unsupported: 0

Supports PCF Sampling: 1

DriverName: "AMD Radeon HD 7900 Series"

VendorID: 0x1002, DeviceID: 0x679A

DriverHigh: 0x00060011, DriverLow: 0x000A0500

DXLevel: 95, MinDXSupportLevel: 90,

MaxDXSupportLevel: 95

Now I know that it cannot be my graphics card because I was using Windows 10 (before I bootnuked it and installed Ubuntu 16.04 64-bit) and it worked fine with CS:GO. If someone can at the very least point me in the right direction I would be greatful, thank you.

Replies

Anonymous
Thursday 26 May 2016 at 1:24
You need to change your card devide id and vendor id to match ndivia. See csgo winehq database. It doesnt work with ati cards for some reason
HatedPro Saturday 12 December 2015 at 16:24
HatedPro

Message

I installed CS:GO last night and it is done at 100%, but when I try to launch it I get a message that says "Failed to start game (unknown error). I'm not sure what to do.

Replies

Woodix Saturday 6 September 2014 at 20:46
Woodix Anonymous

Message

Hello,

I got a problem with the CS:GO POL program,when i try to run it,the game launch I see the things for valve etc,but when i'm suppose to be on the main menu,the game crash after a 20seconds black screen,i'll try to send the logs later,i've heard about a bug in a voice file when you mute someone in game,but i haven't played yet so i don't think it's the problem.I searched for like 2hours and tried a lot of things to make the game work but nothing,if you can help me that will be really nice from you.

Bonjour,

J'ai un problème avec cs:go via POL,quand je lance le jeu,j'ai droit à l'intro de cs:go avec la pub pour valve etc...mais au moment ou je suis sensé être dans le menu principal mon jeu crash,sans raison,j'ai désactivé l'overlay steam.

J'ai tenté de suivre un tutoriel de quelqu'un qui avait à priori le même problème que moi,mais toujours rien,j'enverrai les logs la prochaine fois que je me connecte.

Cela ne vient pas du fichier voice non plus car je n'ai encore jamais jouer à cs:go sur ce pc,si quelqu'un peut m'aider :).

Replies

riggoperez Sunday 10 August 2014 at 21:56
riggoperez Anonymous

Message

Estoy tratando de instalar el CS-GO en Linux Mint 17 Qiana a 64 Bits con el siguiente hardware:

- PLaca madre ASUS B85M-G

- Procesador Intel Core i3 4ta generación

- 8 Gb Memoria Kingston HiperX Blue 1600 Mhz

- HDD Adata SSD 120 Gb.

La instalación se hizo de manera normal. Al ejecutar el juego, el inicio es normal. Al iniciar un mapa, el que sea, se ve todo en escala de grises. Ya he probado diferentes configuraciones de PlayOnLinux y no he podido mejorar esa parte. Si me pasan una forma de adjuntarles capturas de pantalla, creo que con eso podrían tener una mejor idea de que es lo que está pasando que no se puede visualizar bien el juego cuando se corre un mapa en modo entrenamiento o en modo off-line con bots.

Espero respuestas, Gracias!

Replies

Anonymous
Sunday 10 August 2014 at 22:20
Aqui van las capturas de imágenes para que las puedan revisar y ayudarme a solucionar el problema:
Anonymous
Sunday 10 August 2014 at 22:20
http://imgur.com/a/bhdhB
BloodyIron Monday 14 July 2014 at 21:26
BloodyIron

Message

My initial problem was the steam update download would get stuck near the end repeatedly and never complete. I had to close the updater and relaunch it while the POL script GUI was still running. Then installed the game (and I got incredible speed downloading btw).

 

Launching the game was fine, but when I go to spectate a player I get stuttering, and I imagine this is what the actual play is like.

 

I'm testing further, but have you looked at this thread: http://www.reddit.com/r/GlobalOffensive/comments/22b5zg/a_quick_guide_to_having_a_nearly_flawless_csgo/

 

Also, thanks for doing this! :D

Replies

Thermionix Wednesday 9 July 2014 at 1:26
Thermionix Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

set shortcut icon in source

With the news, do I just need to provide some screenshots?

Differences

@@ -49,7 +49,7 @@
 _EOFINI_
 fi
 
-POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
 POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
 
 POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"

New source code

#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
GAME_URL="http://www.counter-strike.net/"
AUTHOR="Thermionix"
WORKING_WINE_VERSION="1.7.21"
GAME_VMS="512"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/csgo/top.png" "http://files.playonlinux.com/resources/setups/csgo/left.png" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dinput

POL_Call POL_Install_steam 
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

# Spoof as Nvidia card for AMD users
if `POL_DetectVideoCards | grep -qi AMD` ; then
POL_Wine_UpdateRegistry amd_fix <<- _EOFINI_
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"VideoPCIVendorID"=dword:000010de
"VideoPCIDeviceID"=dword:00000402
_EOFINI_
fi

POL_Shortcut "steam.exe" "$TITLE" "$TITLE.png" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit

Replies

Anonymous
Wednesday 9 July 2014 at 1:46
Just a small text with screenshot saying that this game work :)
Anonymous
Wednesday 9 July 2014 at 11:00
Counter Strike : Global Offensive is now supported by PlayOnLinux!

http://i.imgur.com/4dGYwjB.png
http://i.imgur.com/EWGeAsN.png

Checkout ; http://www.playonlinux.com/en/app-2147.html

Enjoy!
Quentin PÂRIS Tuesday 8 July 2014 at 17:22
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

- Adding left.png and top.png support

Do you want to write a news about your script?

Differences

@@ -16,10 +16,11 @@
 AUTHOR="Thermionix"
 WORKING_WINE_VERSION="1.7.21"
 GAME_VMS="512"
- 
+
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/csgo/top.png" "http://files.playonlinux.com/resources/setups/csgo/left.png" "$TITLE"
 POL_SetupWindow_Init
 POL_Debug_Init
- 
+
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
 POL_Wine_SelectPrefix "$PREFIX"

New source code

#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
GAME_URL="http://www.counter-strike.net/"
AUTHOR="Thermionix"
WORKING_WINE_VERSION="1.7.21"
GAME_VMS="512"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/csgo/top.png" "http://files.playonlinux.com/resources/setups/csgo/left.png" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dinput

POL_Call POL_Install_steam 
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

# Spoof as Nvidia card for AMD users
if `POL_DetectVideoCards | grep -qi AMD` ; then
POL_Wine_UpdateRegistry amd_fix <<- _EOFINI_
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"VideoPCIVendorID"=dword:000010de
"VideoPCIDeviceID"=dword:00000402
_EOFINI_
fi

POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit

Replies

Edited by Tinou

Thermionix Tuesday 8 July 2014 at 14:48
Thermionix Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

AMD Fix

Differences

@@ -0,0 +1,60 @@
+#!/bin/bash
+# Date : (2014-07-07 12-00)
+# Wine version used : 1.7.21
+# Distribution used to test : Arch Linux x64
+# Author : Thermionix
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Counter Strike: Global Offensive"
+PREFIX="csgo"
+STEAM_ID="730"
+EDITOR="Valve"
+GAME_URL="http://www.counter-strike.net/"
+AUTHOR="Thermionix"
+WORKING_WINE_VERSION="1.7.21"
+GAME_VMS="512"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Call POL_Install_dxfullsetup
+POL_Call POL_Install_dinput
+
+POL_Call POL_Install_steam 
+POL_Call POL_Install_steam_flags "$STEAM_ID"
+
+POL_Wine_SetVideoDriver
+POL_SetupWindow_VMS $GAME_VMS
+
+POL_Wine_Direct3D "UseGLSL" "enabled"
+POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
+POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
+POL_Wine_OverrideDLL "" "gameoverlayrenderer"
+
+# Spoof as Nvidia card for AMD users
+if `POL_DetectVideoCards | grep -qi AMD` ; then
+POL_Wine_UpdateRegistry amd_fix <<- _EOFINI_
+[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
+"VideoPCIVendorID"=dword:000010de
+"VideoPCIDeviceID"=dword:00000402
+_EOFINI_
+fi
+
+POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+
+POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
+POL_Wine_WaitExit "$TITLE"
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
GAME_URL="http://www.counter-strike.net/"
AUTHOR="Thermionix"
WORKING_WINE_VERSION="1.7.21"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dinput

POL_Call POL_Install_steam 
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

# Spoof as Nvidia card for AMD users
if `POL_DetectVideoCards | grep -qi AMD` ; then
POL_Wine_UpdateRegistry amd_fix <<- _EOFINI_
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"VideoPCIVendorID"=dword:000010de
"VideoPCIDeviceID"=dword:00000402
_EOFINI_
fi

POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit

Replies

Anonymous
Tuesday 8 July 2014 at 16:31
(There is already a way to edit posts)

Edited by Tinou

Thermionix Tuesday 8 July 2014 at 13:58
Thermionix Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

fix vga_reg

Differences

@@ -0,0 +1,64 @@
+#!/bin/bash
+# Date : (2014-07-07 12-00)
+# Wine version used : 1.7.21
+# Distribution used to test : Arch Linux x64
+# Author : Thermionix
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Counter Strike: Global Offensive"
+PREFIX="csgo"
+STEAM_ID="730"
+EDITOR="Valve"
+GAME_URL="http://www.counter-strike.net/"
+AUTHOR="Thermionix"
+WORKING_WINE_VERSION="1.7.21"
+GAME_VMS="512"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Call POL_Install_dxfullsetup
+POL_Call POL_Install_dinput
+
+POL_Call POL_Install_steam 
+POL_Call POL_Install_steam_flags "$STEAM_ID"
+
+POL_Wine_SetVideoDriver
+POL_SetupWindow_VMS $GAME_VMS
+
+POL_Wine_Direct3D "UseGLSL" "enabled"
+POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
+POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
+POL_Wine_OverrideDLL "" "gameoverlayrenderer"
+
+# Spoof as Nvidia card for AMD users
+amdgfx=`lspci | grep VGA | grep AMD`
+if [ "$amdgfx" -ne "" ]; then
+cat << EOF > "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
+[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]
+"VideoPCIVendorID"=dword:000010de
+"VideoPCIDeviceID"=dword:00000402
+EOF
+regedit "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
+fi
+
+POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+
+POL_Call POL_Install_steam_flags "$STEAM_ID"
+
+POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
+POL_Wine_WaitExit "$TITLE"
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
GAME_URL="http://www.counter-strike.net/"
AUTHOR="Thermionix"
WORKING_WINE_VERSION="1.7.21"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dinput

POL_Call POL_Install_steam 
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

# Spoof as Nvidia card for AMD users
amdgfx=`lspci | grep VGA | grep AMD`
if [ "$amdgfx" -ne "" ]; then
cat << EOF > "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]
"VideoPCIVendorID"=dword:000010de
"VideoPCIDeviceID"=dword:00000402
EOF
regedit "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
fi

POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit

Replies

Anonymous
Tuesday 8 July 2014 at 14:00
Line 43 from 51, you have a POL function that does that way better: POL_Wine_SetVideoDriver
Anonymous
Tuesday 8 July 2014 at 14:03
cs:go won't launch with AMD vendor/device ids
Anonymous
Tuesday 8 July 2014 at 14:12
Then, replace amdgfx=`lspci | grep VGA | grep AMD` with something more portable", for exemple a POL_DetectVideoCards
Thermionix Tuesday 8 July 2014 at 13:35
Thermionix Anonymous

Thermionix Tuesday 8 July 2014 at 13:34
Thermionix Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,64 @@
+#!/bin/bash
+# Date : (2014-07-07 12-00)
+# Wine version used : 1.7.21
+# Distribution used to test : Arch Linux x64
+# Author : Thermionix
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Counter Strike: Global Offensive"
+PREFIX="csgo"
+STEAM_ID="730"
+EDITOR="Valve"
+GAME_URL="http://www.counter-strike.net/"
+AUTHOR="Thermionix"
+WORKING_WINE_VERSION="1.7.21"
+GAME_VMS="512"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Call POL_Install_dxfullsetup
+POL_Call POL_Install_dinput
+
+POL_Call POL_Install_steam 
+POL_Call POL_Install_steam_flags "$STEAM_ID"
+
+POL_Wine_SetVideoDriver
+POL_SetupWindow_VMS $GAME_VMS
+
+POL_Wine_Direct3D "UseGLSL" "enabled"
+POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
+POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
+POL_Wine_OverrideDLL "" "gameoverlayrenderer"
+
+# Spoof as Nvidia card for AMD users
+amdgfx=`lspci | grep VGA | grep AMD`
+if [ "$amdgfx" -ne "" ]; then
+cat << EOF > "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
+[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]
+"VideoPCIVendorID"=dword:10de
+"VideoPCIDeviceID"=dword:0402
+EOF
+regedit "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
+fi
+
+POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
+POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""
+
+POL_Call POL_Install_steam_flags "$STEAM_ID"
+
+POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
+POL_Wine_WaitExit "$TITLE"
+
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
GAME_URL="http://www.counter-strike.net/"
AUTHOR="Thermionix"
WORKING_WINE_VERSION="1.7.21"
GAME_VMS="512"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_dinput

POL_Call POL_Install_steam 
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_Direct3D "UseGLSL" "enabled"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "StrictDrawOrdering" "disabled"
POL_Wine_OverrideDLL "" "gameoverlayrenderer"

# Spoof as Nvidia card for AMD users
amdgfx=`lspci | grep VGA | grep AMD`
if [ "$amdgfx" -ne "" ]; then
cat << EOF > "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]
"VideoPCIVendorID"=dword:10de
"VideoPCIDeviceID"=dword:0402
EOF
regedit "$POL_USER_ROOT/tmp/VGA_ID_fix.reg"
fi

POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID"
POL_Shortcut "steam.exe" "Steam ($TITLE)" "" ""

POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine start /unix "Steam.exe" "steam://install/$STEAM_ID"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_Close
exit

Replies

Anonymous
Tuesday 19 January 2016 at 17:44
work?

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com