The forum

[Script] Hyperdimension Neptunia Re;Birth1 (Steam)

Author Replies
xerodotc Monday 25 May 2015 at 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)

Edited by xerodotc

petch Monday 25 May 2015 at 17:08
petch

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 Monday 25 May 2015 at 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 Monday 25 May 2015 at 18:41
petch

xerodotc Monday 25 May 2015 at 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 Monday 25 May 2015 at 19:55
petch

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.

 

 

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 dmcayonlinux.com