El Foro

[Script] Niko: Through the Dream (Steam)

Autor Respuestas
plata Saturday 13 August 2016 at 14:40
plata
Developer

The script installs Niko: Through the Dream for Steam.

Icons:

Niko-48x48.png

https://ibin.co/2rQOUP9xhkjr.png

Niko-22x22.png

https://ibin.co/2rQOhWAwOhIV.png

left.png

https://ibin.co/2rQOsl2vHTLf.png

top.png

https://ibin.co/2rQP3gYjrJXM.png

 

#!/bin/bash
# Date : (2016-08-13 12-30)
# Last revision : (2016-08-13 12-30)
# Wine version used : 1.8.2
# Distribution used to test : Kubuntu 16.04 x64
# Author : plata
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Niko: Through the Dream (Steam)"
PREFIX="Niko"
WORKING_WINE_VERSION="1.8.2"
EDITOR="Studio Paint"
GAME_URL="http://www.nikodream.com/"
AUTHOR="plata"
 
# start the script
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" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# set prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# download wine if necessary and create prefix
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# install dependencies
POL_Call POL_Install_dotnet40
POL_Call POL_Install_steam
 
# begin game installation
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/296550
POL_SetupWindow_message "$(eval_gettext 'When $TITLE download by Steam is finished,\nDo NOT click on Play.\n\nClose COMPLETELY the Steam interface, \nso that the installation script can continue.')" "$TITLE"
POL_Wine_WaitExit "$TITLE"
 
# make sure that game window shows up
Set_Managed "Off"
 
# create shortcut
POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/296550"
 
POL_SetupWindow_Close
exit 0

Editado por: plata