01 - その花びらにくちづけを (Sono Hanabira Ni Kuchiduke Wo / A Kiss for the Petals) [2011 Remake only]
This script only works for the 2011 remake available at the English DLsite store. The original 2006 release requires manual installation. Nothing outside of Wine or PlayOnMac/PlayOnLinux was needed.
[code language=playonlinux]
#!/bin/bash
# Date : (2013-03-01)
# Last revision : (2013-07-09)
# Wine version used : 1.6
# Distribution used to test : Mac OS X 10.8.4
# Author : Marking
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
# Setup some needed variables
TITLE="Sono Hanabira ni Kuchizuke wo"
PREFIX="SonoHana_01"
WINEVERSION="1.6"
EDITOR="Fuguriya"
GAME_URL="http://fuguriya.sakura.ne.jp"
AUTHOR="Marking"
# Download images for installation script
POL_GetSetupImages "http://images.markinglifestyle.com/sonohana_mac/script_icons/SonoHana_01-64x64.png" "http://images.markinglifestyle.com/sonohana_mac/script_banners/SH_01.jpg" "$TITLE"
# Initialize the script, debugging, and set required version
POL_SetupWindow_Init
POL_RequiredVersion "4.1.6" || POL_Debug_Fatal "$APPLICATION_TITLE 4.1.6 is required to install $TITLE"
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_Wine_PrefixCreate "$WINEVERSION"
SONOHANA="$WINEPREFIX/drive_c/$PROGRAMFILES/ふぐり屋/その花びらにくちづけを/"
# Ask user for either DVD or Local installation
POL_SetupWindow_InstallMethod "LOCAL,DVD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
# Ask user to find "Setup.exe"
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please locate installation program (Setup.exe)')" "$TITLE"
LANG="ja_JP.UTF-8" POL_Wine start /unix "$APP_ANSWER"
# Tell user what to do while the installation program is running
POL_SetupWindow_message "$(eval_gettext 'When the install program starts, click on インストール. When a new window opens, click on インストール. When installation finishes, click on 終了 and then on はい. Click Next when you are done installing.')" "Installation instructions"
elif [ "$INSTALL_METHOD" = "DVD" ]
then
# Launches the installation program from CD/DVD
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom
LANG="ja_JP.UTF-8" POL_Wine start /unix "$CDROM/Setup.exe"
# Tell user what to do while the installation program is running
POL_SetupWindow_message "$(eval_gettext 'When the install program starts, click on インストール. When a new window opens, click on インストール. When installation finishes, click on 終了 and then on はい. Click Next when you are done installing.')" "Installation instructions"
fi
# Renames the main EXE file if installing the 2011 remake
mv "$SONOHANA/HANA1.EXE" "$SONOHANA/HANABIRA.EXE"
# Tells users which language they want to use
POL_SetupWindow_menu "Which language would you like to read this in?" "Select Language" "日本語 (Japanese)|English" "|"
#For Japanese language
if [ "$APP_ANSWER" = "日本語 (Japanese)" ]
then
# Apply fjfix to fix the visual novel
FJFIX_PATCH="fjfix.zip"
cd "$SONOHANA"
POL_Download "http://files.markinglifestyle.com/sh_files/fjfix.zip" "789634f517003c1619eca669a83306a0"
POL_System_unzip $FJFIX_PATCH
POL_Wine_WaitExit "the fjfix patch" POL_Wine "fjfix.exe" -f MGD
# Create a shortcut for easy access
POL_Shortcut "HANABIRA.EXE" "その花びらにくちづけを"
# Insert a command to run as a Japanese application
POL_Shortcut_InsertBeforeWine "その花びらにくちづけを" "LANG=ja_JP.UTF-8"
#For English language
elif [ "$APP_ANSWER" = "English" ]
then
# Warn user about applying English patch to unsupported remake
POL_SetupWindow_message "Please note that while the English patch works with the remake, it is not officially supported by the creators of the patch. Patch at your own risk. Click Next to continue." "Note about the English patch"
#Download and install English translation patch
EN_PATCH="HANABIRA-EN.zip"
cd "$SONOHANA"
POL_Download "http://files.markinglifestyle.com/sh_files/HANABIRA-EN.zip" "94f2e7876f22093f9fefe87451529848"
POL_System_unzip $EN_PATCH
mv "$SONOHANA/HANABIRA-EN/MGE" "$SONOHANA/MGE"
mv "$SONOHANA/HANABIRA-EN/MSE" "$SONOHANA/MSE"
mv "$SONOHANA/HANABIRA-EN/HANABIRA-EN.EXE" "$SONOHANA/HANABIRA-EN.EXE"
# Apply fjfix to fix the visual novel
FJFIX_PATCH="fjfix.zip"
cd "$SONOHANA"
POL_Download "http://files.markinglifestyle.com/sh_files/fjfix.zip" "789634f517003c1619eca669a83306a0"
POL_System_unzip $FJFIX_PATCH
POL_Wine_WaitExit "the fjfix patch" POL_Wine "fjfix.exe" -f MGE
# Create a shortcut for easy access
POL_Shortcut "HANABIRA-EN.EXE" "A Kiss for the Petals"
# Insert a command to run as a Japanese application
POL_Shortcut_InsertBeforeWine "A Kiss for the Petals" "LANG=ja_JP.UTF-8"
fi
POL_SetupWindow_Close
exit
[/code]
Images:
Screenshot
22x22 icon
48x48 icon
Top corner image
Left banner
Edited by markingdude