Вы находитесь здесь

Форум

[Script] Wizard101 (Europe)

Автор Replies
PlayPal Thursday 12 May 2016 at 21:46
PlayPalAnonymous

Wizard101 (Europe)

https://www.playonlinux.com/en/app-2808.html

Description:

Wizard101 is a multi-player online adventure game (MMO) designed to be easy-to-learn, and fun for children and adults of all ages.

Tested on Ubuntu 14.04 and OSX Mavericks 10.9.5 without any issues.

#!/bin/bash
# Date : 2016-05-02
# Last revision : 2016-05-02
# Wine version used: 1.8.x
# Distribution used to test : Ubuntu 14.04 amd64, OSX Mavericks 10.9.5
# Author: PlayPal
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Wizard101 Europe"
PREFIX="Wizard101Europe"
EDITOR="Gameforge 4D GmbH | KingsIsle Entertainment, Inc."
GAME_URL="http://www.gameforge.com"
AUTHOR="PlayPal"
POL_ID=2808

ICON_TOP="http://localhost/top.png"
ICON_LEFT="http://localhost/left.png"
 
POL_GetSetupImages "$ICON_TOP" "$ICON_LEFT" "$TITLE"
POL_SetupWindow_Init
POL_SetupWindow_SetID $POL_ID
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# choose game language
POL_SetupWindow_menu_list "Please choose your language:\n(you need an account for the specified language)" "$TITLE" "English~German~French~Spanish~Italian~Polish~Greek" "~" "English"
if [ "English" = "$APP_ANSWER" ]; then
  download_file="Wizard101_Installer_UK.exe"
  tld="co.uk"
elif [ "German" = "$APP_ANSWER" ]; then
  download_file="Wizard101_Installer_DE.exe"
  tld="de"
elif [ "French" = "$APP_ANSWER" ]; then
  download_file="Wizard101_Installer_FR.exe"
  tld="fr"
elif [ "Spanish" = "$APP_ANSWER" ]; then
  download_file="Wizard101_Installer_ES.exe"
  tld="es"
elif [ "Italian" = "$APP_ANSWER" ]; then
  download_file="Wizard101_Installer_IT.exe"
  tld="it"
elif [ "Polish" = "$APP_ANSWER" ]; then
  download_file="Wizard101_Installer_PL.exe"
  tld="pl"
elif [ "Greek" = "$APP_ANSWER" ]; then
  download_file="Wizard101_Installer_GR.exe"
  tld="gr"
fi

# open browser to register an account
POL_Browser "http://wizard101.$tld"

POL_Wine_SelectPrefix "$PREFIX"
# will not work with amd64:
POL_System_SetArch "x86"
POL_Wine_PrefixCreate 

POL_System_TmpCreate "$PREFIX"
 
# download and execute the installer:
cd "$POL_System_TmpDir"
POL_Download "http://dlcl.gfsrv.net/wizard101/clients/$download_file"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$download_file"
POL_Wine_WaitExit "$TITLE"
POL_System_TmpDelete
 
POL_Shortcut "Wizard101.exe" "$TITLE"
# avoid crash messages (after Wizard101 starts launcher):
POL_Shortcut_QuietDebug "$TITLE"
 
POL_SetupWindow_Close
 
exit

Top: 

Left: 

48x48 22x22 

Screenshots:

Edited by PlayPal

MTres19 Wednesday 18 May 2016 at 0:36
MTres19Anonymous

Looks good. However, you shouldn't need POL_Wine_WaitExit after POL_Wine. POL_Wine_WaitBefore is good enough so long as running the program pauses execution of the script. Also, unless you've already submitted your script, you can't (as far as I know) tell what number to use with POL_SetupWindow_SetID. Oh---and many distros are still on Wine 1.6.2. Without using POL_Wine_PrefixCreate "1.8.2", you have no guarentee that it will behave the same way.

However, is this game different than the regular Wizard 101? If it's not, or if the script would probably work anyway for the other version, I'd suggest simply submitting this as a contribution to the above-linked script. (In that case, $POL_ID would be 1934)

PlayPal Friday 10 June 2016 at 19:20
PlayPalAnonymous

Hi MTres19,

many thanks for your feedback.

I've adjusted the script and uploaded an update (https://www.playonmac.com/en/app-2808.html)

As you suggested, I removed the WaitExit command.

I tried with 1.6.2, but unfortunately the installer fails with some registry 64bit message :( So I set the version to 1.8.1 since that exists both on linux and mac.

As for the version: There are several publishers. The version I submitted a script for is the european version which uses different servers than the NA (existing) version. The game itself should not be much different, but the installer of course only works with the appropriate publisher.

Please approve my latest submission if possible. (I accidently did not add the script to the initial post, maybe you can fix this? https://www.playonmac.com/en/app-2808.html)

Best regards
PlayPal

Вы находитесь здесь: Index > Your creations. > [Script] Wizard101 (Europe)