Forums

[Script] Hyperdimension Neptunia Re;Birth1 (Steam)

Auteur Réponses
xerodotc Lundi 25 Mai 2015 à 16:19
xerodotcAnonymous

Description (from Steam store page)

 

Packed with fast-paced, turn-based RPG action, fourth-wall-breaking, trope-demolishing dialogue, and more item, weapon, and costume customization than you can shake a Lvl. 1 Stick at, Gamindustri is a world set on turning the concept of the JRPG on its head!

Script

#!/usr/bin/env playonlinux-bash

# Date : (2015-05-25 18:15 UTC+7)
# Last revision : (2015-05-25 18:15 UTC+7)
# Wine version used : 1.7.43
# Distribution used to test : Ubuntu 14.04
# Author : Visatouch Deeying (xerodotc)
# Script licence : GPLv3
# Program licence : Proprietary
# Depend : xact, vcrun2012, devenum, quartz, wmp9, wmpcodecs

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

TITLE="Hyperdimension Neptunia Re;Birth1"
PREFIX="NeptuniaReBirth1"
WINEVERSION="1.7.43"
STEAM_APPID=282900

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Idea Factory International, Inc." "http://ideafintl.com" "xerodotc" "$PREFIX"

POL_SetupWindow_InstallMethod "STEAM"

# Start installation
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Install dependencies (thanks to Jon Feldman at AppDB)
POL_Call POL_Install_xact
POL_Call POL_Install_vcrun2012
POL_Call POL_Install_devenum
POL_Call POL_Install_quartz
POL_Call POL_Install_wmp9
POL_Call POL_Install_wmpcodecs

if [ "$INSTALL_METHOD" = "STEAM" ]; then
    # Install Steam and actual game
    POL_Call POL_Install_steam
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "steam.exe" "steam://install/$STEAM_APPID"
fi

# Minimum Video memory requirement is 1GB
POL_SetupWindow_VMS "1024"

# Creating a shortcut
if [ "$INSTALL_METHOD" = "STEAM" ]; then
    POL_Shortcut "steam.exe" "$TITLE" "${TITLE}.png" "steam://rungameid/$STEAM_APPID"
fi

POL_SetupWindow_Close
exit 0

Screenshots (click the image for larger image)

Icons and setup images

Notes

  • First time contributing script here, I apologize if there's any mistakes here.
  • Dependencies to install are adapted from instructions in AppDB page of this game.
  • I'm not sure how to deal with an installation method screen when the only installation method is to install via Steam. (AFAIK, PC port of this game is only officially distributed via Steam)

Edité par xerodotc

petch Lundi 25 Mai 2015 à 17:08
petch
Développeur

Hi,

I think you can drop the whole "install method" logic until there's at least two different methods supported.

$TITLE will have to match script name in the repository, and the ";" character may be an issue there, I'm not certain.

Not much else to say, the script looks ok to me, and to the script checker too...

 

xerodotc Lundi 25 Mai 2015 à 17:34
xerodotcAnonymous

Thanks for your comments. Here's the updated script:

#!/usr/bin/env playonlinux-bash

# Date : (2015-05-25 18:15 UTC+7)
# Last revision : (2015-05-25 22:32 UTC+7)
# Wine version used : 1.7.43
# Distribution used to test : Ubuntu 14.04
# Author : Visatouch Deeying (xerodotc)
# Script licence : GPLv3
# Program licence : Proprietary
# Depend : xact, vcrun2012, devenum, quartz, wmp9, wmpcodecs

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

TITLE="Hyperdimension Neptunia ReBirth1"
PREFIX="NeptuniaReBirth1"
WINEVERSION="1.7.43"
STEAM_APPID=282900

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Idea Factory International, Inc." "http://ideafintl.com" "xerodotc" "$PREFIX"

# Start installation
POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Install dependencies (thanks to Jon Feldman at AppDB)
POL_Call POL_Install_xact
POL_Call POL_Install_vcrun2012
POL_Call POL_Install_devenum
POL_Call POL_Install_quartz
POL_Call POL_Install_wmp9
POL_Call POL_Install_wmpcodecs

# Install Steam and actual game
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "steam.exe" "steam://install/$STEAM_APPID"

# Minimum Video memory requirement is 1GB
POL_SetupWindow_VMS "1024"

# Creating a shortcut
POL_Shortcut "steam.exe" "$TITLE" "${TITLE}.png" "steam://rungameid/$STEAM_APPID"

POL_SetupWindow_Close
exit 0
petch Lundi 25 Mai 2015 à 18:41
petch
Développeur

xerodotc Lundi 25 Mai 2015 à 19:31
xerodotcAnonymous

Thanks.

BTW, should I submit the script to the system (as a testing installer) now or wait for more people to test/validate my script first? :)

petch Lundi 25 Mai 2015 à 19:55
petch
Développeur

Well, you can submit it right away, but mark it as "testing", some kind of beta state if you want.

But don't expect much feedback if you don't want to be disappointed, the top 5 scripts receive some feedback from time to time, for everything else it's quite rare.