Forum

[Script] Pirate 101

Författare Svar
jhersey Thursday 30 January 2014 at 0:34
jherseyAnonymous

Description (From MMORPG.com):Pirate101 is a free-to-play, pirate-themed MMOG from KingsIsle Entertainment, makers of Wizard101. The game is set in the same universe as its wizard-themed predecessor, so players can expect to continue to challenge the Clockwork Empire. Players begin the game by creating a pirate and then setting out to gain a ship and crew. Pirate101 offers swashbuckling ground combat, but its main fighting focus is comprised of ship-to-ship combat high in the sky among the skyways and floating islands in the Weave.

Anything done outside of wine: When downloading the file from the internet, I used the mv command to rename it to an .exe file. Sometimes it will get a feature transfer error if you do not do this.

Extra Notes: See anything done outside of Wine above.

[code language=playonlinux]
#!/bin/bash
# Date : (2014-01-29 ??-??)
# Wine version used : 1.7.11 x86
# Distribution used to test : Ubuntu 13.10 x86_64
# PlayOnLinux : 4.2.1
# Author : Joseph Hersey
 
# CHANGELOG
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="Pirate101-t"
TITLE="Pirate 101-t"
EDITOR="KingsIsle Entertainment, Inc."
GAME_URL="https://www.pirate101.com"
AUTHOR="Joseph Hersey"
 
# Initialization
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
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_System_SetArch "x86" # Game crashes if installed with x86_64
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_WaitBefore "$TITLE"
POL_Wine_PrefixCreate
 
# Installation - Determine if user wants to download or use a local copy.

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD" # Choose method of installation
 if [ "$INSTALL_METHOD" = "LOCAL" ]
   then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" # Browse for File
 
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$APP_ANSWER" # Install Application
    POL_Wine_WaitExit "$TITLE"
 
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    POL_System_TmpCreate "$PREFIX"  # Create temp folder
    cd "$POL_System_TmpDir"
    POL_Download "https://www.pirate101.com/downloadGame/OtherDownload" # Download installer
    mv OtherDownload InstallPirate101.exe # Setup will give a feature transfer error if not named InstallPirate101.exe
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "InstallPirate101.exe" # Install Application
    POL_Wine_WaitExit "$TITLE"
 
    POL_System_TmpDelete
fi
 
# Create Shortcuts
POL_Shortcut "Pirate101.exe" "$TITLE" "" "" "Game;RolePlaying;"
 
POL_SetupWindow_Close
exit 0
[/code]

Left
[img]http://s27.postimg.org/z88acvqin/left.jpg[/img]

44x44
[img]http://s27.postimg.org/8jby12inz/Pirate101_44x44.png[/img]

22x22
[img]http://s27.postimg.org/mod5p52bj/Pirate101_22x22.png[/img]

Screenshots
[img]http://s27.postimg.org/s7kak3oqn/Pirate101_1.jpg[/img]
[img]http://s27.postimg.org/iuoatqadb/Pirate101_2.jpg[/img]
[img]http://s27.postimg.org/kdjoypgxr/Pirate101_3.jpg[/img]
[img]http://s27.postimg.org/z6ycjgoov/Pirate101_4.jpg[/img]
petch Sunday 2 February 2014 at 15:31
petch
Developer

Hi,
The very same comments I just made on your Wizard101 script seem to apply to this one too.
petch Thursday 6 February 2014 at 19:45
petch
Developer

Script validated, but without the gfx resources that do not have the required dimensions.