Forums

[Script] Counter Strike: Global Offensive

Auteur Réponses
Thermionix Lundi 7 Juillet 2014 à 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)

#!/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.playonmac.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

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

Edité par Thermionix

leo523 Mardi 8 Juillet 2014 à 4:51
leo523Anonymous

Worked very good on Fedora 20. Thanks.

Quentin PÂRIS Mardi 8 Juillet 2014 à 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-notice@playonlinux.com