Valmar |
Vendredi 16 Novembre 2012 à 0:16
|
Valmar
|
This is my first post and first script! :D This script installs the archaic Grandia II from the two-disk set. It now runs decently on wine, something that was an issue in the past. Wine version : 1.5.17 x86 and x86-64 Distribution : Chakra Linux Distribution Version : 2012.10 Claire x86-64 Graphics card : ATI, Mobility HD5470 Graphics card driver version: fglrx catalyst 12.5
#!/bin/bash
# Date : (2012-11-13 21-00)
# Last revision : (2012-11-20 16-55)
# Wine version used : 1.5.17 x86
# Distribution used to test : Chakra Linux 2012.10 Claire x86_64
# Author : Valmar
#Mandatory stuff
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
#Setup some needed variables
TITLE="Grandia II"
PREFIX="Grandia_II"
EDITOR="Game Arts"
GAME_URL="http://www.gamearts.com/"
AUTHOR="Valmar"
WINE_VER="1.5.17"
#Initialize the script
POL_SetupWindow_Init
#Initialize the PlayOnLinux debugger
POL_Debug_Init
#Setup presentation window
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
#Begin setting up the Wine Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINE_VER"
#Set OS and Audio version
which pulseaudio && Set_OS "win98"
#Setup a virtual desktop - needed because
Set_Desktop "On" "1024" "768"
#Begin game installation
POL_SetupWindow_message "Please insert the first $TITLE installation disk into your disk drive\\n(and mount it if you need to).)" "$TITLE installation"
POL_SetupWindow_cdrom
POL_Wine start /unix "$CDROM/Setup.exe"
POL_Wine_WaitExit "$TITLE installation" --allow-kill
POL_SetupWindow_message "When you press 'Next', please select the location of the second $TITLE installation disk." "$TITLE installation"
POL_SetupWindow_cdrom
#Now fix for the executable as the installer generally fails to copy it to it's needed directory.
cp "$CDROM/EXE/Grandia2.exe" "$REPERTOIRE/wineprefix/$PREFIX/drive_c/Program Files/Grandia2/Grandia2.exe"
POL_SetupWindow_VMS "100"
POL_Wine_reboot
#Create handy shortcuts
POL_Shortcut "Grandia2.exe" "$TITLE" "" ""
POL_Shortcut "GmConfig.exe" "$TITLE Configuration" "" ""
#Last minute
POL_SetupWindow_message "Please visit\\n'http://appdb.winehq.org/objectManager.php?sClass=version&iId=3967'\\nfor more information on getting the game to work." "Last minute information"
POL_SetupWindow_Close
exit
Edité par Valmar
|
Quentin PÂRIS |
Vendredi 16 Novembre 2012 à 12:40
|
Quentin PÂRIS
|
Few things:
You cannot use because it won't work on every linux distro
CDROM1="/media/GRANDIA2CD1" CDROM2="/media/GRANDIA2CD2"
We have some tools like POL_SetupWindow_cdrom to manage cdroms
Also, avoid
POL_Browser "http://appdb.winehq.org/objectManager.php?sClass=version&iId=3967"
To finish,
POL_SetupWindow_message "Before you click 'Next', keep this in mind: when the installer finishes installing the game, it will attempt to open a text file and a another process that may not show it's window. The process is called UBI1.exe.\\n\\nYou will need to explicitly *kill* it in your system monitor/task manager, otherwise it will happily chew away at your CPU resources.\\n\\nIf the desktop seems frozen and won't respond to mouse clicks, just alt-tab once or twice." "Important note!"
Could be replaced by adding --allow-kill to the end of POL_Wine_WaitExit
Thank you anyway
|
Valmar |
Mardi 20 Novembre 2012 à 7:28
|
Valmar
|
Will fix with your suggestions and repost. Thank you, Quentin PÂRIS. ;)
|
Valmar |
Samedi 13 Avril 2013 à 17:23
|
Valmar
|
Updated script:
#!/bin/bash
# Date : (2012-11-13 21-00)
# Last revision : (2013-04-14 01-15)
# Wine version used : 1.5.28 x86
# Distribution used to test : Chakra Linux 2013.03 Benz x86-64
# Author : Valmar
#Mandatory stuff
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
#Setup some needed variables
TITLE="Grandia 2"
PREFIX="Grandia_II"
EDITOR="Game Arts"
GAME_URL="http://www.gamearts.com/"
AUTHOR="Valmar"
WORKINGWINEVERSION="1.5.28"
#Initialize the script
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/Grandia_2/top.jpg" "http://files.playonlinux.com/resources/setups/Grandia_2/left.jpg" "$TITLE"
POL_SetupWindow_Init
#Initialize the PlayOnLinux debugger
POL_Debug_Init
#Setup presentation window
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
#Begin setting up the Wine Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKINGWINEVERSION"
#Set OS and Audio version
which pulseaudio && Set_OS "win98"
#Begin game installation
POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_check_cdrom "Setup.exe"
wine start /unix "$CDROM/Setup.exe"
POL_SetupWindow_message "When the installer asks you for 2nd installation CD, click 'Next'." "$TITLE"
wine eject
POL_Wine_WaitExit "$TITLE installation" --allow-kill
#POL_SetupWindow_message "Please press 'Next' to allow for a little " "$TITLE installation"
#POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "drvmgt.dll"
#A fix for the executable as the installer generally fails to copy it to it's needed directory.
cp "$CDROM/EXE/Grandia2.exe" "$WINEPREFIX/drive_c/$PROGRAMFILES/Grandia2/Grandia2.exe"
#Doesn't hurt to do a quick reboot.
POL_Wine_reboot
#Create handy shortcuts
POL_Shortcut "Grandia2.exe" "$TITLE" "" ""
POL_Shortcut "GmConfig.exe" "$TITLE Configuration" "" ""
#Crucial gameplay information
POL_SetupWindow_message "Whenever the screen goes black and does not change after a while, press F9. This is due to problems with Wine's current amstream.dll implementation, meaning that game cannot play it's cinematics.\\n\\nInstalling a native windows amstream.dll does not solve the problem, unfortunately.\\n\\nHopefully, this problem is solved in the future."
POL_SetupWindow_Close
exit
Grandia_2-22x22.png http://www.freeimagehosting.net/newuploads/5phig.pngGrandia_2-48x48.png http://www.freeimagehosting.net/newuploads/inw19.pngleft.png http://www.freeimagehosting.net/t/hqn22.jpgtop.png http://www.freeimagehosting.net/t/7wgsk.jpg Edité par Valmar
|