Das Forum

[Script] Borderlands 2

Autor Antworten
Thermionix Tuesday 8 July 2014 at 15:14
ThermionixAnonymous

I'm currently still unable to get this to run on my arch machine (believe related to alsa+pulse issue)

Still this is likely to work for others, looking for feedback while I continue trying to get it to run on my own machine.

 

#!/bin/bash
# Date : (2014-04-05 12-00)
# Wine version used : 1.7.15
# Distribution used to test : Arch Linux x64
# Author : Thermionix
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Borderlands 2"
PREFIX="Borderlands2"
STEAM_ID="49520"
EDITOR="2K Games"
GAME_URL="http://www.borderlands2.com/"
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_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_msxml6
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_vcrun2010
POL_Call POL_Install_dotnet40
POL_Call POL_Install_xact
POL_Call POL_Install_d3dx9
POL_Call POL_Install_d3dx9_43
POL_Call POL_Install_d3dx10
POL_Call POL_Install_d3dx11
POL_Call POL_Install_physx

POL_Call POL_Install_steam
POL_Call POL_Install_steam_flags "$STEAM_ID"

POL_Wine_SetVideoDriver
POL_SetupWindow_VMS $GAME_VMS

POL_Wine_OverrideDLL "" "gameoverlayrenderer"
POL_Wine_Direct3D "DirectDrawRenderer" "opengl"
POL_Wine_Direct3D "OffscreenRenderingMode" "fbo"

POL_SetupWindow_message "$(eval_gettext 'You will need to set -NoLauncher in the game launch args within steam\nyou may also want to set;\n-nostartupmovies\n-ResX=1920 -ResY=1200\n-WindowedFullscreen')" "$TITLE"

POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID -NoLauncher -nostartupmovies"
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
deri82 Wednesday 22 July 2015 at 11:16
deri82Anonymous

But isnt borderlands 2 on windows, mac and linux? why would you want it to run via POL