You are here > Les forums > Your creations. > Gothic 4 Acrania sv ru pl es fr

Forums

Gothic 4 Acrania

New topic  - Reply
Author Replies
norway Saturday 12 November 2011 at 20:47 - [Quote]
Membre

Membre
Here is the first version of script. Ive tested only installation, it works.

-------------------------------------------------------------------------------
#!/bin/bash
# Date : (2011-12-11 23-46)
# Last revision : (2011-12-11 23-46)
# Wine version used : 1.3.18
# Distribution used to test : Kubuntu 11.10 x64
# Author : Ulrick(No)
# Licence : Retail
# Only For : http://www.playonlinux.com

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Gothic 4 Arcania"
PREFIX="gothic4"
WORKING_WINE_VERSION="1.3.18"
GAME_VMS="512"
DEVELOPER="Piranha Bytes"
SCRIPTCREATOR="Ulrick(No)"
COMPANYSITE="http://www.pluto13.de/"

if [ "$POL_LANG" == "ru" ] ; then
CHOOSE="Выберите установочный файл $TITLE"
INSTALLATION="Пожалуйста подождите, идет установка..."
GAME_VMS="Сколько памяти у вашей видеокарты ?"
END="$TITLE установлена !"
else #English messages
CHOOSE="Select the installation file of $TITLE."
INSTALLATION="Please wait during the installation..."
GAME_VMS="How much video ram is ?"
END="$Title installation is a succes ! "
fi

# Starting the script
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$COMPANYSITE" "$SCRIPTCREATOR" "$PREFIX"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
Set_Arch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Choose between DVD and Digital Download version
POL_SetupWindow_InstallMethod "DVD,LOCAL"
# Installing mandatory dependencies
POL_Call POL_Install_dsound
POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_physx
POL_Call POL_Install_gfwl86
POL_Call POL_Install_vcrun6
POL_Call POL_Install_wmp10

# Begin game installation
if [ "$INSTALL_METHOD" == "DVD" ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert game media into your disk drive\nif not already done.')"
POL_SetupWindow_cdrom
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "$TITLE"
else
# Asking then installing DDV of the game
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
fi

# Asking about memory size of graphic card
POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256"
VMS="$APP_ANSWER"

# Fix for this game
POL_Wine_DirectSound "MaxShadowSize" "0"
POL_Wine_Direct3D "UseGLSL" "enabled"

# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver

# Sound problem fix - pulseaudio related
[ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
[ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
## End Fix

## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
## End Section ##

# Making shortcut
POL_Shortcut "Arcania.exe" "$TITLE" "" ""

POL_SetupWindow_Close
exit 0
------------------------------------------------------------------------------
Unfortunately wine can not start the game because of bugs. I will test the game when new version of wine will be released.

Edited by norway


Ulrick(No)
Il n'y a rien à voir ici