The forum

CSGO and newer versions of wine

Author Replies
Thewafflication Thursday 19 October 2017 at 1:17
ThewafflicationAnonymous

The CSGO install script uses wine 1.7.  I decided I wanted to try a new version of wine.  I modified the script like so:

#!/usr/bin/env playonlinux-bash
[ "$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.18-staging"
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

It installed like normal, but when I launched the game it didn't track my mouse.  So I install dinput and when I look around with my mouse it freaks out.  Is it a bug or do I need to configure dinput somehow?

der Papst Friday 10 November 2017 at 0:15
der PapstAnonymous

Why are you trying to run native Linux games in Wine? oO

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 dmcayonlinux.com