03 - あなたと恋人つなぎ (Anata to Koibito Tsunagi / Joined in Love With You)
It seems that everytime I post a new script for SonoHana, I discover something new that improves the VN. In this case, it's the font that is displayed during gameplay. In Wine 1.6, the font spacing gets screwed up, making it somewhat hard to read the text. I didn't find a solution to this issue until recently.
When I tried using Wine 1.3.4 (which is required for SonoHana 11, which I'll explain then), there were no fonts installed in C:/Windows/Fonts by default, so I decided to try something. I installed Japanese fonts to replace MS Gothic/UI Gothic/etc. and the text become readable in the same way it's run in Windows XP. I tried various Japanese fonts and these were the best ones. The visual novel engine is
very picky about fonts. If it's wrong or too big, it'll crash the game.
Font anti-aliasing doesn't work in this version, but I'll take readibilty over pretty fonts. The screenshots below pretty much tell the story.
Wine 1.6Wine 1.3.4Perhaps there's something I'm missing in regards to Font subsitution in 1.6 and higher, so if anyone have tips, let me know. This should be the last major modification I'll make with the 15 scripts. At some point, I would like someone to revise the other two scripts, but I want to keep moving since they still work fine.
Everything else is the same as the other scripts; nothing else needed, script works with both original and remake release, "start /unix" is needed, etc. The script will install the Sazanami fonts after creating the prefix.
[code language=playonlinux]
#!/bin/bash
# Date : (2013-03-01)
# Last revision : (2013-07-09)
# Wine version used : 1.3.4
# 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 03 - Anata to Koibito Tsunagi"
PREFIX="SonoHana_03"
WINEVERSION="1.3.4"
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_img/SH_03T.png" "http://images.markinglifestyle.com/sonohana_mac/script_img/SH_03L.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/ふぐり屋/その花びらにくちづけを あなたと恋人つなぎ/"
# Installs Japanese fonts in order for visual novel to work
JP_FONTS="sazanami-20040629.zip"
cd "$WINEPREFIX/drive_c/windows/Fonts/"
POL_Download "http://files.markinglifestyle.com/sh_files/sazanami-20040629.zip" "c6cb294645d161a6799e2920d0f3b040"
POL_System_unzip $JP_FONTS
# 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 はい (Y). Click Next when you are done installing.')" "Installation instructions"
fi
# 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 "fjfix.exe" -f MGD
POL_Wine_WaitExit "the fjfix patch"
# Create a shortcut for easy access
POL_Shortcut "HANABIRA3.EXE" "その花びらにくちづけを 03 あなたと恋人つなぎ"
# Insert a command to run as a Japanese application
POL_Shortcut_InsertBeforeWine "その花びらにくちづけを 03 あなたと恋人つなぎ" "LANG=ja_JP.UTF-8"
#For English language
elif [ "$APP_ANSWER" = "English" ]
then
# Apply the English patch
POL_SetupWindow_browse "$(eval_gettext 'Please locate English translation patch file')" "$TITLE"
cp "$APP_ANSWER" "$SONOHANA/SH_EN.EXE"
cd "$SONOHANA"
POL_Wine_WaitExit "the English patch"
LANG="ja_JP.UTF-8" POL_Wine "SH_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 "fjfix.exe" -f MGD
POL_Wine_WaitExit "the fjfix patch"
# Create a shortcut for easy access
POL_Shortcut "HANABIRA3.EXE" "A Kiss for the Petals 03 - Joined in Love with You"
# Insert a command to run as a Japanese application/fix font issues
POL_Shortcut_InsertBeforeWine "A Kiss for the Petals 03 - Joined in Love with You" "LANG=ja_JP.UTF-8"
fi
POL_SetupWindow_Close
exit
[/code]
The images: Edité par markingdude