The forum

[Script] Counter Strike: Global Offensive

Author Replies
Thermionix Monday 7 July 2014 at 3:27
ThermionixAnonymous

Untested on Intel graphics
Should work for nvidia propietary drivers
Tested on AMD 7950 on Gallium OSS Drivers
(On arch I have to set all my wine versions to system)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Date : (2014-07-07 12-00)
# Wine version used : 1.7.21
# Distribution used to test : Arch Linux x64
# Author : Thermionix
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Counter Strike: Global Offensive"
PREFIX="csgo"
STEAM_ID="730"
EDITOR="Valve"
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

22x22 = https://i.imgur.com/cRDzxFl.png
48x48 = https://i.imgur.com/KeHr3Wp.png
top = https://i.imgur.com/OZNC6gz.png
left = https://i.imgur.com/wimhy2G.png

Edited by Thermionix

leo523 Tuesday 8 July 2014 at 4:51
leo523Anonymous

Worked very good on Fedora 20. Thanks.

Quentin PÂRIS Tuesday 8 July 2014 at 13:24
Quentin PÂRISAnonymous

Don't hesitate to post it here: http://www.playonmac.com/en/supported_apps.html

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@playonlinux.com