Forums

SonoHana 11 - Michael no Otome-tachi

ミカエルの乙女たち / Maidens of Michael

Auteur Réponses
markingdude Lundi 2 Décembre 2013 à 0:15
markingdudeAnonymous

After 10 games and one spinoff, the series finally makes it way into the big time with its first full-featured visual novel. This script installs components needed to play the opening movie. Because the movie is in MPEG-1 format, an older version of Wine is needed. This was tested using Mac OS X 10.6-10.9 and nothing else was needed.

[code language=playonlinux]
#!/bin/bash
# Date : (2013-03-01)
# Last revision : (2013-10-05)
# 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 11 - Michael no Otome-tachi"
PREFIX="SonoHana_11"
WINEVERSION="1.3.4"
EDITOR="Yurin Yurin"
GAME_URL="http://yurinyurin.com/"
AUTHOR="Marking"

INSTALL_JP='インストール'
END_JP='終了'
YES_JP='はい'

# Download images for installation script
POL_GetSetupImages "http://images.markinglifestyle.com/sonohana_mac/script_icons/SonoHana_11-64x64.png" "images.markinglifestyle.com/sonohana_mac/script_banners/SH_11.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 components needed to play intro movie
POL_Call POL_Install_d3dx9
POL_Call POL_Install_quartz
POL_Call POL_Install_devenum
POL_Call POL_Install_amstream

# 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"
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"
    # Tell user what to do while the installation program is running
    POL_SetupWindow_message "$(eval_gettext 'When the install program starts, click on ${INSTALL_JP}. When a new window opens, click on ${INSTALL_JP}. When installation finishes, click on ${END_JP} and then on ${YES_JP} (Y). Click Next to begin installation.')" "Installation instructions"   
    LANG="ja_JP.UTF-8" POL_Wine "$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DVD" ]
then
    # Launches the installation program from CD/DVD
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom
    # Tell user what to do while the installation program is running
    POL_SetupWindow_message "$(eval_gettext 'When the install program starts, click on ${INSTALL_JP}. When a new window opens, click on ${INSTALL_JP}. When installation finishes, click on ${END_JP} and then on ${YES_JP} (Y). Click Next to begin installation.')" "Installation instructions"   
    LANG="ja_JP.UTF-8" POL_Wine "$CDROM/Setup.exe"
fi

# 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_WaitBefore "the fjfix patch"
POL_Wine "fjfix.exe" -f MGD
   
# Create a shortcut for easy access
POL_Shortcut "HANAMIKA.EXE" "その花びらにくちづけを 11 ミカエルの乙女たち"
# Insert a command to run as a Japanese application
POL_Shortcut_InsertBeforeWine "その花びらにくちづけを 11 ミカエルの乙女たち" "LANG=ja_JP.UTF-8"
POL_SetupWindow_Close
exit
[/code]

The images:
Screenshot
22x22 icon
48x48 icon
Top right icon
Left banner
petch Lundi 2 Décembre 2013 à 1:29
petch

Looks ok
I think I also managed to play some MPEGs with ffdshow component, but whatever works is fine ;)
markingdude Lundi 2 Décembre 2013 à 2:09
markingdudeAnonymous

Yeah, I got it working through FFDShow as well, but it requires the user to open the video settings and enable MPEG-1 support since it is disabled by default. My goal is to minimize as much user input as possible.

The script has been sent for validation.

EDIT - Oops. I put the script under "Other" when it should be under "Games".

Edité par markingdude

petch Lundi 2 Décembre 2013 à 22:01
petch

ffdshow settings are stored in the registry, so it's probably a matter of

cat > "$POL_USER_ROOT/tmp/mpegffdshow.reg"
[HKEY_CURRENT_USER\Software\GNU\ffdshow]
"mpegAVI"=dword:00000001
"mpg1"=dword:00000001
"mpg2"=dword:00000001
"mss2"=dword:00000000
_EOFREG_
POL_Wine regedit "$POL_USER_ROOT/tmp/mpegffdshow.reg"
rm "$POL_USER_ROOT/tmp/mpegffdshow.reg"


after installation (untested).

Anyway, script validated :)
markingdude Mardi 3 Décembre 2013 à 5:45
markingdudeAnonymous

That's good to know, thanks. There are some visual novels (read:most) that use MPEG-1 for their opening movies, so having FFDShow handy is always a good thing. Thanks again for validating the scripts!

Edité par markingdude

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com