Pokemon Trading Card Game Online

Informations

Creator Message
Cultist Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

This script will allow you to install Pokemon Trading Card Game Online. This is the online version of the popular card game, and works in much the same way. While the game is technically free to play, you will require cards to play which can be earned through redeeming codes found in physical card boxes/booster packs, or through various in-game methods such as completing minigames.

 

The game appears to work nearly flawlessly, with only two real bugs:
1. The QR code scanner won't work. This is a problem with wine being unable to access the webcam hardware and would likely require a patch to remedy. This doesn't impact anything except making it so you have to manually enter product codes for redemption rather than quickly scanning them.
2. The client freezes when switching to full-screen mode. This problem also appeared during testing in a Windows VM, which shows to me that this is more a problem with the virtualized graphics. I haven't been able to resolve this one, but windowed mode plays fine.

Source code

                

Contributions

Filters:

Contribute
Member Message
Cultist Friday 20 March 2015 at 8:26
Cultist Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,43 @@
+#!/bin/bash
+# Script version: 0.9
+# Date created: 19 March 2015
+# Last revision: 19 March 2015
+# Wine version used: 1.7.38
+# Distributions tested: Fedora 21 64 bit, using 32 bit compatibility libraries and Nvidia proprietary drivers
+# PlayOnLinux version tested: PlayOnLinux 4.2.6
+# Author: electrum/Cultist
+# License: This script is released under the terms of the GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt). This means you may use, modify, and redistribute this script for any use, as long as the resulting product is also released under this license and as long as you give credit to the original author (me!)
+# Purpose: To enable Linux users to play Pokemon Trading Card Game Online
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+PREFIX="PokemonTCGOnline"
+TITLE="Pokémon Trading Card Game Online"
+VERSION="2.26.1.1191"
+VERDATE="02 February 2015"
+HEADER="Pokémon TCG Online Installation Script"
+WINEVERSION="1.7.38"
+DOWNLOAD="http://tcgo-installer.s3.amazonaws.com/PokemonInstaller.msi"
+MD5SUM="c667afdbc2f2d0148a1127b07086eb18"
+INSTALLER="PokemonInstaller.msi"
+POL_GetSetupImages "https://i.imgur.com/xNsNaPD.jpg" "https://i.imgur.com/7q771F3.jpg"
+POL_SetupWindow_Init
+POL_SetupWindow_presentation "$TITLE" "The Pokémon Company International" "http://www.pokemon.com/" "Cultist/Electrum" "$PREFIX"
+POL_SetupWindow_message "This script will install Pokémon TCG Online on your computer." "$HEADER"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+POL_System_TmpCreate "$PREFIX"
+TEMP="$POL_System_TmpDir"
+cd $TEMP
+POL_Download "$DOWNLOAD" "$MD5SUM"
+POL_SetupWindow_wait "Please wait while $TITLE is installed." "$HEADER"
+POL_Wine start /unix "$INSTALLER"
+POL_Wine_WaitExit "$TITLE"
+POL_Shortcut "Pokemon Trading Card Game Online.exe" "$TITLE"
+POL_System_TmpDelete
+POL_SetupWindow_message "Main installation has completed. Click NEXT to begin installing additional required files." "$HEADER"
+POL_Call POL_Install_directx9
+POL_Wine_OverrideDLL "native,builtin" "dnsapi"
+POL_SetupWindow_Message "Installation of $TITLE has finished." "$HEADER"
+POL_SetupWindow_Close
+exit
\ No newline at end of file

New source code

#!/bin/bash
# Script version: 0.9
# Date created: 19 March 2015
# Last revision: 19 March 2015
# Wine version used: 1.7.38
# Distributions tested: Fedora 21 64 bit, using 32 bit compatibility libraries and Nvidia proprietary drivers
# PlayOnLinux version tested: PlayOnLinux 4.2.6
# Author: electrum/Cultist
# License: This script is released under the terms of the GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt). This means you may use, modify, and redistribute this script for any use, as long as the resulting product is also released under this license and as long as you give credit to the original author (me!)
# Purpose: To enable Linux users to play Pokemon Trading Card Game Online

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
PREFIX="PokemonTCGOnline"
TITLE="Pokémon Trading Card Game Online"
VERSION="2.26.1.1191"
VERDATE="02 February 2015"
HEADER="Pokémon TCG Online Installation Script"
WINEVERSION="1.7.38"
DOWNLOAD="http://tcgo-installer.s3.amazonaws.com/PokemonInstaller.msi"
MD5SUM="c667afdbc2f2d0148a1127b07086eb18"
INSTALLER="PokemonInstaller.msi"
POL_GetSetupImages "https://i.imgur.com/xNsNaPD.jpg" "https://i.imgur.com/7q771F3.jpg"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "The Pokémon Company International" "http://www.pokemon.com/" "Cultist/Electrum" "$PREFIX"
POL_SetupWindow_message "This script will install Pokémon TCG Online on your computer." "$HEADER"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
POL_System_TmpCreate "$PREFIX"
TEMP="$POL_System_TmpDir"
cd $TEMP
POL_Download "$DOWNLOAD" "$MD5SUM"
POL_SetupWindow_wait "Please wait while $TITLE is installed." "$HEADER"
POL_Wine start /unix "$INSTALLER"
POL_Wine_WaitExit "$TITLE"
POL_Shortcut "Pokemon Trading Card Game Online.exe" "$TITLE"
POL_System_TmpDelete
POL_SetupWindow_message "Main installation has completed. Click NEXT to begin installing additional required files." "$HEADER"
POL_Call POL_Install_directx9
POL_Wine_OverrideDLL "native,builtin" "dnsapi"
POL_SetupWindow_Message "Installation of $TITLE has finished." "$HEADER"
POL_SetupWindow_Close
exit

Replies

Friday 20 March 2015 at 17:34
Can you add some whitespace so it is more readable? Like, group some of the lines together and give some newlines between some of them. Also, you dont need to use "start /unix", and you also did not add any of the correct code for translation to take place:

http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_10:_Script_Translation
Friday 20 March 2015 at 21:31
TEMP="$POL_System_TmpDir"
cd $TEMP
Hum ... Could be simplified :-)
Anonymous
Saturday 25 July 2015 at 9:49
For me it gave a md5sum missmatch after the game downloaded. Even after several tries. I decided to proceed anyway and after launch the game it freezes on the start screen only with the background.
Saturday 25 July 2015 at 11:06
My review:
- $TITLE must match the script name in the repository (yes, accent matter)
- Lack of POL_Debug_Init statement
- POL_SetupWindow_message "This script will install Pokémon TCG Online on your computer." "$HEADER" all user-oriented messages must support localization http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_10:_Script_Translation
- POL_SetupWindow_wait "Please wait while $TITLE is installed." "$HEADER" use POL_Wine_WaitBefore "$TITLE" instead, it displays a standard wait message that'll make one less message to translate
- POL_Wine start /unix "$INSTALLER" start /unix is usually unnecessary, see discussion in http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions#POL_Wine_.284.0.2B.29
- POL_SetupWindow_Message "Installation of $TITLE has finished." "$HEADER" the use of ending success messages is deprecated