#!/bin/bash # Date : (2014-11-10 18-00) # Last revision : (2014-11-10 ) # Wine version used : 1.7.30 # Distribution used to test : xubuntu 14.04 # Author : rogue-spectre # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="Race Driver : GRID" GOGID="race_driver_grid" PREFIX="GRID" WORKING_WINE_VERSION="1.7.30" #multisampling option="off" #shadows enabled="false" size="512" maskQuality="2" #postprocess enabled="false" blur="false" #reflections faces="6" size="256" forceBilinear="false" #mirrors enabled="true" forceBilinear="false" width="512" height="128" #http://ubuntuforums.org/showthread.php?t=1674515 #https://appdb.winehq.org/objectManager.php?bShowAll=true&bIsQueue=false&bIsRejected=false&sClass=version&sTitle=&sReturnTo=&iId=12570 #procedure for patching GRID #patch_grid() #{ #POL_SetupWindow_browse "Select patch file downloaded from www.codemasters.com" "$TITLE" "" #wine "$APP_ANSWER" #POL_SetupWindow_message "Patch for $TITLE has been installed successfully" "$TITLE" #} #POL_SetupWindow_make_icon_for_shortcut() #{ #convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1" #} POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Codemasters" "www.racedrivergrid.com" "NSLW" "$PREFIX" #1f4a7a2c36212a3ede5915c700578c74 setup_race_driver_grid_2.1.0.8.exe #035a1fe8d2d57b7146cb26422c6d7878 setup_race_driver_grid_2.1.0.8-1.bin #b9fb8635c41d2b13e898df2c80283dde setup_race_driver_grid_2.1.0.8-2.bin POL_Call POL_GoG_setup "$GOGID" "1f4a7a2c36212a3ede5915c700578c74" "035a1fe8d2d57b7146cb26422c6d7878" "b9fb8635c41d2b13e898df2c80283dde" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" POL_Install_gecko POL_Install_dotnet20 POL_Call POL_GoG_install Set_OS winxp # enable 1920x1080 screen sed -e 's/maxWidth="1208"/maxWidth="1920"/' -i "~/.PlayOnLinux/wineprefix/GRID/drive_c/GOG Games/Race Driver GRID/system/hardware_settings_restrictions.xml" POL_Wine_reboot #cd "$WINEPREFIX/drive_c/windows/temp" #setting multisample to enabled #echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > multisampling.reg #echo "\"Multisampling\"=\"enabled\"" >> multisampling.reg #regedit multisampling.reg #asking about memory size #POL_SetupWindow_menu_list "How much memory do your graphic card have got?" "$TITLE" "32-64-128-256-384-512-768-890-1024-2048" "-" "256" #VMS="$APP_ANSWER" #echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg #echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg #regedit vms.reg #making shortcut #POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Codemasters/GRID" "GRID.exe" "" "$TITLE" "" "" #Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE" #POL_SetupWindow_make_icon_for_shortcut "$TITLE" "*_grid.0.png" POL_Shortcut "grid.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;Racing;" POL_Shortcut "Language Setup.exe" "$SHORTCUT_NAME lang" "$SHORTCUT_NAME.png" "" "Game;Racing;" POL_SetupWindow_Close exit 0