El Foro

[Script] Hadaka Shitsuji

Autor Respuestas
spycrab0 Wednesday 27 May 2015 at 2:53
spycrab0Anonymous

About the Game

Hadaka Shitsuji is a R18 Yaoi Visual Novel.

Screenshots

Stuff outside of PlayOnLinux / Wine that had to be downloaded.

This game requires the font lucon.ttf to display text properly, otherwise the space between single characters would increase over the playtime to a level that makes the text almost impossible to read.

The font is not optainable via PlayOnLinux and the Winetricks Method of getting it seemed to complicated so i simply download that file from a GitHub Repository for Microsoft Fonts.

 

This Setup can also install the English Patch of the game, sadly its in a .rar archive so (at the moment) you need the non-free unrar to unzip the archive. (I'll probably resolve that later).

Extra Notes

In Wine Versions higher than 1.7.4 the games font won't load properly.

The game requires a ja_JP.utf8 locale to work properly.

Setup Images (They are a bit ugly, but sadly there are no better ones out there :/)

22x22:

48x48:

64x64 (top.png):

left.png:

 

The Script

#!/usr/bin/env playonlinux-bash
# Date: (2015-05-26 16-00)
# Last revision: (2015-05-27 22-25)
# Wine version used: 1.7.4
# Distribution used to test: Debian 8 "Jessie" x86_64
# Author: Spycrab0
# Script licence: GNU GPLv3
# Program licence: Proprietary
# Depend: directx9, d3dx9, directmusic (Lucida Console,unrar)
 
[ "$PLAYONLINUX" == "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

#POL
WINEVERSION="1.7.4"
PREFIX="HadakaShitsuji"
MAINTAINER="Spycrab0"
 
#Info
TITLE="Hadaka Shitsuji"
VENDOR="Mada Koubou"
WEBSITE="http://madalabo.com/"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$VENDOR" "$WEBSITE" "$MAINTAINER" "$PREFIX"

#setting up the prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
#installing dependencies
POL_Call POL_Install_directx9
POL_Call POL_Install_d3dx9
POL_Call POL_Install_directmusic
 
#locale notification
[ $(locale -a | grep "ja_JP.utf8\|ja_JP.UTF-8") ] || POL_SetupWindow_message "$(eval_gettext '$TITLE and it's setup require the ja_JP.utf8 locale, which doesn't seem to be installed.\nPlease install the locale then press Next')" "$TITLE"

#choose installation method
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ];then
  POL_SetupWindow_cdrom
  POL_SetupWindow_check_cdrom "setup.exe"
  POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
  LANG=ja_JP.utf8 POL_Wine "$CDROM/setup.exe"
else
  POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
  POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
  LANG=ja_JP.utf8 POL_Wine "$APP_ANSWER"
fi
 
#Optional (but recommended) english patch/translation
POL_SetupWindow_question "$(eval_gettext 'Would you like to install the english fan-translation of the game?\n(Recommended;Requires unrar)\n\nCredits:\n\nTranslation: Good Haro\nEditing: Swiftnissity, Nikwebsterrulz\nHacking: w8m\nSpecial thanks: Yaoi.Desu')" "$TITLE"
 
if [ "$APP_ANSWER" = "TRUE" ];then
 
  POL_SetupWindow_menu "$(eval_gettext 'Should all files that the patch requires be downloaded for you?')" "$TITLE" "$(eval_gettext 'Yes')|$(eval_gettext 'No, let me choose myself')" "|"
  [ "$APP_ANSWER" = "$(eval_gettext 'Yes')" ] && AUTO="TRUE"
 
  #lucon.ttf
  if [ "$AUTO" = "TRUE" ];then
    APP_ANSWER="TRUE"
  else
    POL_SetupWindow_question "$(eval_gettext 'Should the Lucida Console Font be downloaded for you?')" "$TITLE"
  fi

  if [ "$APP_ANSWER" = "TRUE" ];then
    cd "$REPERTOIRE/wineprefix/$PREFIX/drive_c/windows/Fonts"
    POL_Download "https://raw.githubusercontent.com/caarlos0/msfonts/master/fonts/lucon.ttf" "97a55c954a18d2daae22c5f9114794d5"
  else
    POL_SetupWindow_browse "$(eval_gettext 'Select lucon.ttf')" "$TITLE"
    POL_SetupWindow_wait "$(eval_gettext 'Copying...')" "$TITLE"
    cp "$APP_ANSWER" "$REPERTOIRE/wineprefix/$PREFIX/drive_c/windows/Fonts/lucon.ttf"
  fi
 
  #patch itself
  if [ "$AUTO" = "TRUE" ];then
      APP_ANSWER="TRUE"
  else
      POL_SetupWindow_question "$(eval_gettext 'Should the english patch be downloaded for you?')" "$TITLE"
  fi
 
  POL_System_TmpCreate "$PREFIX.en"
  cd "$POL_System_TmpDir"
  if [ "$APP_ANSWER" = "TRUE" ];then
    POL_Download "http://download1056.mediafire.com/375isj855wpg/18ruh0ccr30waud/Hadaka+Shitsuji+English+patch+1.0.rar" "b263453575a3205c1addd5723782e35a"
  else
    POL_SetupWindow_browse "$(eval_gettext 'Select Hadaka Shitsuji English patch 1.0.rar (Aarinfantasy)')" "$TITLE"
    POL_SetupWindow_wait "$(eval_gettext 'Copying...')" "$TITLE"
    cp "$APP_ANSWER" "./Hadaka+Shitsuji+English+patch+1.0.rar"
  fi
 
  cd "$REPERTOIRE/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/裸執事"
  POL_SetupWindow_wait "$(eval_gettext 'Extracting rar archive...')" "$TITLE"
  if [ $(which unrar) ];then
    POL_SetupWindow_wait "$(eval_gettext 'Patching...')" "$TITLE"
    unrar e -y "$POL_System_TmpDir/Hadaka+Shitsuji+English+patch+1.0.rar" "Hadaka Shitsuji English patch 1.0/*.dat" "Hadaka Shitsuji English patch 1.0/hadaka_en.exe" &&
    cd data &&
    #backing up the original files
    mv msg.dat msg.dat.jp &&
    mv snr.dat snr.dat.jp &&
    #moving the english .dat files into the data/ directory
    mv ../*.dat . || POL_SetupWindow_message "$(eval_gettext 'Patching failed.')" "$TITLE"
  else
    POL_SetupWindow_message "$(eval_gettext 'Patching failed (Missing unrar).')" "$TITLE"
  fi
 
  [ -e "../hadaka_en.exe" ] || POL_SetupWindow_message "$(eval_gettext 'Patching failed (Missing hadaka_en.exe)')" "$TITLE"
  POL_System_TmpDelete
fi
 
if [ -e "$REPERTOIRE/wineprefix/$PREFIX/drive_c/$PROGRAMFILES/裸執事/hadaka_en.exe" ];then
  POL_Shortcut "hadaka_en.exe" "$TITLE English"
  POL_Shortcut_InsertBeforeWine "$TITLE English" "export LANG=ja_JP.utf8" #setting the locale
else
  POL_Shortcut "hadaka.exe" "$TITLE"
  POL_Shortcut_InsertBeforeWine "$TITLE" "export LANG=ja_JP.utf8" #setting the locale
fi
 
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"
POL_SetupWindow_Close
exit

Edit: Updated Script and added Screenshots
Edit 2: Updated Script regarding Translation and Setup Images, Added Setup Image

Edit 3: Updated Script to improve usabillity

 

Editado por: spycrab0