You are here

DayZ

Informations

Creator Message
Quentin PÂRIS
Admin

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

DayZ is a multiplayer open world survival horror video game in development by Bohemia Interactive.

Source code

                

Contributions

Filters:

Contribute
Member Message
Quentin PÂRIS Tuesday 22 July 2014 at 15:50
Quentin PÂRIS
Admin

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,75 @@
+#!/bin/bash
+# Date : (2014-07-22 15:45)
+# Last revision : (2014-07-22 15:45)
+# Wine version used : 1.7.22
+# Distribution used to test : Mac OS X 10.9
+# Author : QP
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="DayZ"
+PREFIX="DayZ"
+EDITOR="Bohemia Interactive "
+
+AUTHOR="Quentin PARIS"
+WORKING_WINE_VERSION="1.7.22"
+GAME_VMS="1024"
+STEAM_ID="221100"
+ 
+# Starting the script
+POL_SetupWindow_Init
+ 
+# Starting debugging API
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+# Check Kernel ptrace
+
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+ 
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x86" # For dotnet/mono
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+# Choose between DVD and Digital Download version
+POL_SetupWindow_InstallMethod "STEAM"
+ 
+# Installing mandatory dependencies
+POL_Call POL_Install_steam
+# POL_Call POL_Install_vcrun2008 # Fix game issue
+# POL_Call POL_Install_dotnet35 # Fix launcher issue
+# POL_Call POL_Install_dxfullsetup # Fix game crash
+ 
+# Fix pulseaudio issue
+which pulseaudio && Set_OS "win7"
+ 
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+ 
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+ 
+## Fix for this game
+POL_Wine_X11Drv "GrabFullscreen" "Y"
+ 
+# Mandatory pre-install fix for steam
+POL_Call POL_Install_steam_flags "$STEAM_ID"
+ 
+# Shortcut done before install for steam version
+POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID" "Game;"
+# POL_Shortcut "steam.exe" "Steam ($TITLE)" "" "" "Game;"
+ 
+# Begin game installation
+
+POL_SetupWindow_Close
+# Steam install
+#POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished, do 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
+
+ 
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-07-22 15:45)
# Last revision : (2014-07-22 15:45)
# Wine version used : 1.7.22
# Distribution used to test : Mac OS X 10.9
# Author : QP
# Licence : Retail
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="DayZ"
PREFIX="DayZ"
EDITOR="Bohemia Interactive "

AUTHOR="Quentin PARIS"
WORKING_WINE_VERSION="1.7.22"
GAME_VMS="1024"
STEAM_ID="221100"
 
# Starting the script
POL_SetupWindow_Init
 
# Starting debugging API
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
# Check Kernel ptrace

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86" # For dotnet/mono
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "STEAM"
 
# Installing mandatory dependencies
POL_Call POL_Install_steam
# POL_Call POL_Install_vcrun2008 # Fix game issue
# POL_Call POL_Install_dotnet35 # Fix launcher issue
# POL_Call POL_Install_dxfullsetup # Fix game crash
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win7"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
 
## Fix for this game
POL_Wine_X11Drv "GrabFullscreen" "Y"
 
# Mandatory pre-install fix for steam
POL_Call POL_Install_steam_flags "$STEAM_ID"
 
# Shortcut done before install for steam version
POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/$STEAM_ID" "Game;"
# POL_Shortcut "steam.exe" "Steam ($TITLE)" "" "" "Game;"
 
# Begin game installation

POL_SetupWindow_Close
# Steam install
#POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished, do 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

 
exit 0

Replies