grid

grid_gog.sh
#!/bin/bash
# Date : (2013-06-01 17-00)
# Last revision : (2014-15-11 00-00)
# Wine version used : 1.7.30
# Distribution used to test : Xubuntu 14.04
# Authors : TonyFlow, rogue-spectre
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
GOGID="race_driver_grid"
PREFIX="GRID_gog"
WORKING_WINE_VERSION="1.7.30"
 
TITLE="GOG.com - Race Driver: GRID"
SHORTCUT_NAME="Race Driver: GRID"
 
#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_SetupWindow_SetID
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Codemasters" "http://www.gog.com/gamecard/$GOGID" "TonyFlow" "$PREFIX"
 
POL_Call POL_GoG_setup "$GOGID" "1f4a7a2c36212a3ede5915c700578c74" "035a1fe8d2d57b7146cb26422c6d7878" "b9fb8635c41d2b13e898df2c80283dde"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Default interface leaks winprocs and crashes under Wine
POL_Call POL_GoG_install
 
# GoG work!
Set_OS winxp
 
# Install DirectX9
POL_Call POL_Install_d3dx9_36
 
POL_SetupWindow_VMS "256"
 
# enable 1920x1080 screen
sed -e 's/maxWidth="1280"/maxWidth="1920"/' -i "$WINEPREFIX/drive_c/GOG Games/Race Driver GRID/system/hardware_settings_restrictions.xml"
 
# Doesn't hurt ;)
POL_Wine_reboot
 
GOGPATH="$GOGROOT/Race Driver GRID"
POL_Shortcut "GRID.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;SportsGame"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/Manuals/Manual.pdf"
#POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGPATH/Manuals/Manual FR.pdf"
 
POL_SetupWindow_Close
 
# Launch the language setup
POL_Wine "$WINEPREFIX/drive_c/GOG Games/Race Driver GRID/Language Setup.exe"
 
exit 0
grid_gog.sh
#!/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
<?xml version="1.0" encoding="UTF-8" ?>
<hardware_settings_config version="39">
        <cpu>
                <threadStrategy parallelUpdateRender="true" workerMapFile="system/workerMap4Core.xml" forceFeedbackProcessor="3" dvdStorageProcessor="3" dataSetMonitorProcessor="1" renderProcessor="0" updateProcessor="2" fileStreamProcessor="3" />
        </cpu>
        <audio_card>
                <audio mixing="software" reverbs="1" voices="120" creation="auto" />
        </audio_card>
        <graphics_card>
                <resolution width="1920" height="1080" aspect="normal" fullscreen="true" vsync="1" oldWidth="1920" oldHeight="1080">
                        <refreshRate rate="60" />
                </resolution>
                <gamma level="1.4" />
                <multisampling option="off">
                        <back_buffer level="0" />
                        <colour_target level="0" />
                        <minimap level="0" />
                        <dynamic_envmap level="0" />
                        <static_envmap level="0" />
                        <rear_view_mirror level="0" />
                </multisampling>
                <textures lod="0" />
        </graphics_card>
        <graphics_detail level="medium" />
        <wind particles="false" groundcover="false" />
        <shadows enabled="false" size="1024" maskQuality="1" />
        <headlights headlightQuality="0" />
        <particles enabled="false" collisions="false" max="500" />
        <crowd enabled="false" />
        <cloth enabled="false" />
        <postprocess enabled="true" blur="false" />
        <groundcover enabled="true" layers="1" />
        <trees visibility="500" low="180" high="60" lodQuality="1" />
        <vehicles characterQuality="2" lodQuality="0" />
        <reflections faces="0" size="256" forceBilinear="true" />
        <mirrors enabled="false" forceBilinear="true" width="512" height="128" />
        <skidmarks enabled="false" />
        <dynamic_ambient_occ enabled="true" />
        <track_reflections enabled="true" />
        <physics environmentalDamage="true" vehicleDamage="true" />
        <input device_type="auto" />
        <motion enabled="false" ip="127.0.0.1" port="20777" delay="1" extradata="0" />
</hardware_settings_config>