Het forum

SonoHana 12 - Atelier no Koibito-tachi

アトリエの恋人たち / Lovers of the Atelier

Auteur Antwoorden
markingdude Zondag 19 Januari 2014 om 15:01
markingdudeAnonymous

Starting with this visual novel, the developers have decided to change their visual novel engine to the more popular KiriKiri2. While it is more robust than MScenario, it runs a little slower with Wine. That being said, it shouldn't effect the gameplay.

[code language=playonlinux]
#!/bin/bash
# Date : (2013-03-01)
# Last revision : (2013-10-05)
# 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 12 - Atelier no Koibito-tachi"
PREFIX="SonoHana_12"
WINEVERSION="1.6.2"
EDITOR="Yurin Yurin"
GAME_URL="http://yurinyurin.com/"
AUTHOR="Marking"
SHORTCUT_NAME="その花びらにくちづけを 12 ~アトリエの恋人たち~"

# Download images for installation script
POL_GetSetupImages "http://images.markinglifestyle.com/sonohana_mac/script_icons/SonoHana_12-64x64.png" "images.markinglifestyle.com/sonohana_mac/script_banners/SH_12.jpg" "$TITLE"

# Initialize the script and debugging
POL_SetupWindow_Init
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"

# 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 "When the install program starts, keep clicking on the button with the letter (N) until you see the game installing. When it's finished, UNCHECK the two checkboxes. Click the button to quit the installer. Click Next when you are done." "Installation instructions"
   
elif [ "$INSTALL_METHOD" = "DVD" ]
then
    # Launches the installation program from CD/DVD
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "Setup.exe"
    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 "When the install program starts, keep clicking on the button with the letter (N) until you see the game installing. When it's finished, UNCHECK the two checkboxes. Click the button to quit the installer. Click Next when you are done." "Installation instructions"   
fi
   
# Create a shortcut for easy access
POL_Shortcut "ATELIER.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png"
# Insert a command to run as a Japanese application
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "LANG=ja_JP.UTF-8"
POL_SetupWindow_Close
exit
[/code]

The images:
Screenshot
22x22 icon
48x48 icon
Top right icon
Left banner

Aangepast door markingdude

petch Zondag 19 Januari 2014 om 19:02
petch

Hi markingdude,

    POL_SetupWindow_message "When the install program starts, keep clicking on the button with the letter (N) until you see the game installing. When it's finished, UNCHECK the two checkboxes. Click the button to quit the installer. Click Next when you are done." "Installation instructions"

No translation support for this message?
   
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom

Sorry for not noticing this earlier as I never used the CD-ROM support myself, but POL_SetupWindow_check_cdrom with no argument is almost a no-op.
It's suppose to be followed by filename(s) (usually just one) that should be present on the media for it to be considered the expected media.
With an empty list it just results in a message "checking CDROM" or something like that, and goes on.

(Both remarks apply to the other scripts, obviously)

Regards,
Pierre.

Aangepast door petch

markingdude Zondag 19 Januari 2014 om 19:26
markingdudeAnonymous

Yeah, the installation program that is used on KiriKiri VN's is very wonky when it comes to text. On the MacBook Pro, it can display the text to install the VN, but on the Mac Mini I couldn't get the text to show up, even with calling the Japanese system locale command. Those instructions were written back when I still had the Mac Mini, but since system fonts and such will work different for people, I decided to just go with those instructions.

I'll continue to investigate the issue, but for right now I'm going with that.

As for the second comment, I take it you want something like:


POL_SetupWindow_check_cdrom "Setup.exe"

petch Zondag 19 Januari 2014 om 21:07
petch

since system fonts and such will work different for people, I decided to just go with those instructions.

Quote from markingdude

The instructions are as-is I think, but what about enclosing them in $(eval_gettext '') so they're translated into the language of the user? (I wonder if we already discussed that already)

As for the second comment, I take it you want something like:


POL_SetupWindow_check_cdrom "Setup.exe"

Quote from markingdude

In spirit, yes. Problem with setup.exe or install.exe is that they're probably present on half of the installation cdroms, so they're hardly a proof that the user inserted the right cdrom; It's better to pick something more specific.

Aangepast door petch

markingdude Zondag 19 Januari 2014 om 21:46
markingdudeAnonymous

Nevermind, I see what you're asking for now. That was an oversight on my part since we did talk about that in earlier scripts. I was referring to the actual installation text in setup.exe itself. Script has been edited and others will have it soon.

As for the second comment, VNs 12-15 have the game data packed inside "setup.exe", making it difficult to be specific with verifying the CD-ROM/DVD, since it's usually the only file there besides "autorun.inf" which is also common. This is a KiriKiri "feature". 1-11 will have no problem with this since game data can be found in the root directory of the disc.

Alternatively, I could just remove the CD/DVD method completely since more people purchase digital version of the VNs.
petch Zondag 19 Januari 2014 om 22:06
petch

Ok, so I assume POL_SetupWindow_check_cdrom "Setup.exe" is the best way to go, as it's better than nothing...
markingdude Zondag 19 Januari 2014 om 22:33
markingdudeAnonymous

All right, cool. I'll probably go back at some point and edit it for the older VNs, including some of the newer code that is present in the newer scripts thanks to the learning experience I've gotten from coding PoM/PoL scripts.

Anyway, if there's nothing else, I'll send in the remaining four SonoHana scripts for validation.
petch Zondag 19 Januari 2014 om 23:00
petch

markingdude Zondag 27 April 2014 om 17:09
markingdudeAnonymous

This script now supports silent installation without input from the
user. The script tells the user to close the visual novel when it opens
to continue installation since I am unable to stop the game from
automatically starting after installation finishes.


#!/bin/bash
# Date : (2014-01-20)
# Last revision : (2014-04-05)
# Wine version used : 1.6.2
# Distribution used to test : Mac OS X 10.9.2
# Author : Marking

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

# Setup some needed variables
TITLE="Sono Hanabira ni Kuchizuke wo 12 - Atelier no Koibito-tachi"
PREFIX="SonoHana_12"
WINEVERSION="1.6.2"
EDITOR="Yurin Yurin"
GAME_URL="http://yurinyurin.com/"
AUTHOR="Marking"
SHORTCUT_NAME="その花びらにくちづけを 12 ~アトリエの恋人たち~"

# Download images for installation script
POL_GetSetupImages "http://images.markinglifestyle.com/sonohana_mac/script_icons/SonoHana_12-64x64.png" "images.markinglifestyle.com/sonohana_mac/script_banners/SH_12.jpg" "$TITLE"

# Initialize the script and debugging
POL_SetupWindow_Init
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"

# 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"
    POL_SetupWindow_message "$(eval_gettext 'Close the visual novel when it appears to continue installation. Click Next to begin installation.')" "Installation instructions"
    POL_Wine_WaitBefore "$TITLE"
    LANG="ja_JP.UTF-8" POL_Wine "$APP_ANSWER" /sp- /verysilent
    
elif [ "$INSTALL_METHOD" = "DVD" ]
then
    # Launches the installation program from CD/DVD
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "Setup.exe"
    POL_SetupWindow_message "$(eval_gettext 'Close the visual novel when it appears to continue installation. Click Next to begin installation.')" "Installation instructions"
    POL_Wine_WaitBefore "$TITLE"
    LANG="ja_JP.UTF-8" POL_Wine "$CDROM/Setup.exe" /sp- /verysilent
fi
    
# Create a shortcut for easy access
POL_Shortcut "ATELIER.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png"
# Insert a command to run as a Japanese application
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "LANG=ja_JP.UTF-8"
POL_SetupWindow_Close
exit


petch Zondag 27 April 2014 om 22:39
petch