Planet Pokemon

Informations

Créateur Messages
STFLightning

Attention

This installer is a beta script. It means that it might not work as expected

Informations

Plate-formes :
Téléchargements : 10482
Wine: 3.0.3

Retours d'expérience

Description

Warning: this game (launched in 2014) was shutdown in 2017 (ref: https://www.indiedb.com/games/planet-pokemon ).

Planet Pokémon was a massively MMO RPG game inspired by the original games and the anime under development by Hogkey Games for Windows and Linux OS. The game is fan-made by fans for fans which shares no connection to the real instalments of the Pokémon series developed by Game Freak. 

Code source

#!/bin/bash
# Date : (2014-12-28 15-03)
# Last revision : (2014-12-28 19-39)
# Wine version used : 1.7.133
# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
# Author : STFLightning with help from petch
     
# Changelog
# (2014-12-28 15-03) - STFLightning
#  Created Script
# (2014-12-28 15-10) - STFLightning
#  Fixed Capitalisation Error, Added Changelog
# (2014-12-28 16-44) - STFLightning with help from petch
#  Fixed Tons Of Errors
# (2014-12-28 19-17) - STFLightning with help from petch
#  Fixed More Errors, Some Fixed Errors That Re-Appeared Have Been Fixed
# (2014-12-28 19-22) - STFLightning
#  Added exit to end of script, gave petch credit, fixed presentation bug
# (2014-12-28 19-39) - STFLightning
#  Fixed if and elif comparisons
# (2020-10-23 10-00) - Dadu042
#  Wine v1.7.33 -> 3.0.3 (game server is down)

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Planet Pokémon"
PREFIX="PlanetPokemon"
  
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_SetID 2368
     
## Welcome & Setup Options
POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net" "STFLightning & petch" $PREFIX
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
     
## Prefix Creation
POL_System_SetArch "x86"
POL_Wine_SelectPrefix $PREFIX
POL_Wine_PrefixCreate "3.0.3"
Set_OS "win7"
     
## Installing Prerequisites
POL_Call POL_Install_d3dx11
POL_Call POL_Install_dinput8
POL_Call POL_Install_dotnet40
     
## Install
if [$INSTALL_METHOD="DOWNLOAD"]
then
    POL_System_TmpCreate $PREFIX
    cd $POL_System_TmpDir
    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
fi
elif [$INSTALL_METHOD="LOCAL"]
then
    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
    localInstallerPath=$APP_ANSWER
    POL_System_TmpCreate $PREFIX
    cd $POL_System_TmpDir
    cp localInstallerPath ./
fi
   
POL_System_unzip "Planet Pokemon (Windows).zip"
mv ./"Planet Pokemon (Windows)"/* $WINEPREFIX/drive_c/$PROGRAMFILES/
     
POL_Shortcut "Planet Pokemon.exe" $TITLE
      
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Vendredi 23 Octobre 2020 à 15:36
Dadu042

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -18,7 +18,9 @@
 #  Added exit to end of script, gave petch credit, fixed presentation bug
 # (2014-12-28 19-39) - STFLightning
 #  Fixed if and elif comparisons
-     
+# (2020-10-23 10-00) - Dadu042
+#  Wine v1.7.33 -> 3.0.3 (game server is down)
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
   
@@ -36,7 +38,7 @@
 ## Prefix Creation
 POL_System_SetArch "x86"
 POL_Wine_SelectPrefix $PREFIX
-POL_Wine_PrefixCreate "1.7.33"
+POL_Wine_PrefixCreate "3.0.3"
 Set_OS "win7"
      
 ## Installing Prerequisites

Nouveau code source

#!/bin/bash
# Date : (2014-12-28 15-03)
# Last revision : (2014-12-28 19-39)
# Wine version used : 1.7.133
# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
# Author : STFLightning with help from petch
     
# Changelog
# (2014-12-28 15-03) - STFLightning
#  Created Script
# (2014-12-28 15-10) - STFLightning
#  Fixed Capitalisation Error, Added Changelog
# (2014-12-28 16-44) - STFLightning with help from petch
#  Fixed Tons Of Errors
# (2014-12-28 19-17) - STFLightning with help from petch
#  Fixed More Errors, Some Fixed Errors That Re-Appeared Have Been Fixed
# (2014-12-28 19-22) - STFLightning
#  Added exit to end of script, gave petch credit, fixed presentation bug
# (2014-12-28 19-39) - STFLightning
#  Fixed if and elif comparisons
# (2020-10-23 10-00) - Dadu042
#  Wine v1.7.33 -> 3.0.3 (game server is down)

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Planet Pokémon"
PREFIX="PlanetPokemon"
  
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_SetID 2368
     
## Welcome & Setup Options
POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net" "STFLightning & petch" $PREFIX
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
     
## Prefix Creation
POL_System_SetArch "x86"
POL_Wine_SelectPrefix $PREFIX
POL_Wine_PrefixCreate "3.0.3"
Set_OS "win7"
     
## Installing Prerequisites
POL_Call POL_Install_d3dx11
POL_Call POL_Install_dinput8
POL_Call POL_Install_dotnet40
     
## Install
if [$INSTALL_METHOD="DOWNLOAD"]
then
    POL_System_TmpCreate $PREFIX
    cd $POL_System_TmpDir
    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
fi
elif [$INSTALL_METHOD="LOCAL"]
then
    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
    localInstallerPath=$APP_ANSWER
    POL_System_TmpCreate $PREFIX
    cd $POL_System_TmpDir
    cp localInstallerPath ./
fi
   
POL_System_unzip "Planet Pokemon (Windows).zip"
mv ./"Planet Pokemon (Windows)"/* $WINEPREFIX/drive_c/$PROGRAMFILES/
     
POL_Shortcut "Planet Pokemon.exe" $TITLE
      
POL_SetupWindow_Close
exit

Réponses

endurer87 Dimanche 3 Décembre 2017 à 16:37
endurer87 Anonymous

Messages

this game is awsom

Réponses

Mardi 24 Décembre 2019 à 16:19
But dead, I add it in the intro.
STFLightning Dimanche 28 Décembre 2014 à 19:39
STFLightning

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,69 @@
+#!/bin/bash
+# Date : (2014-12-28 15-03)
+# Last revision : (2014-12-28 19-39)
+# Wine version used : 1.7.133
+# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
+# Author : STFLightning with help from petch
+     
+# Changelog
+# (2014-12-28 15-03) - STFLightning
+#  Created Script
+# (2014-12-28 15-10) - STFLightning
+#  Fixed Capitalisation Error, Added Changelog
+# (2014-12-28 16-44) - STFLightning with help from petch
+#  Fixed Tons Of Errors
+# (2014-12-28 19-17) - STFLightning with help from petch
+#  Fixed More Errors, Some Fixed Errors That Re-Appeared Have Been Fixed
+# (2014-12-28 19-22) - STFLightning
+#  Added exit to end of script, gave petch credit, fixed presentation bug
+# (2014-12-28 19-39) - STFLightning
+#  Fixed if and elif comparisons
+     
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Planet Pokémon"
+PREFIX="PlanetPokemon"
+  
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_SetID 2368
+     
+## Welcome & Setup Options
+POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net" "STFLightning & petch" $PREFIX
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+     
+## Prefix Creation
+POL_System_SetArch "x86"
+POL_Wine_SelectPrefix $PREFIX
+POL_Wine_PrefixCreate "1.7.33"
+Set_OS "win7"
+     
+## Installing Prerequisites
+POL_Call POL_Install_d3dx11
+POL_Call POL_Install_dinput8
+POL_Call POL_Install_dotnet40
+     
+## Install
+if [$INSTALL_METHOD="DOWNLOAD"]
+then
+    POL_System_TmpCreate $PREFIX
+    cd $POL_System_TmpDir
+    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
+fi
+elif [$INSTALL_METHOD="LOCAL"]
+then
+    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
+    localInstallerPath=$APP_ANSWER
+    POL_System_TmpCreate $PREFIX
+    cd $POL_System_TmpDir
+    cp localInstallerPath ./
+fi
+   
+POL_System_unzip "Planet Pokemon (Windows).zip"
+mv ./"Planet Pokemon (Windows)"/* $WINEPREFIX/drive_c/$PROGRAMFILES/
+     
+POL_Shortcut "Planet Pokemon.exe" $TITLE
+      
+POL_SetupWindow_Close
+exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-12-28 15-03)
# Last revision : (2014-12-28 19-39)
# Wine version used : 1.7.133
# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
# Author : STFLightning with help from petch
     
# Changelog
# (2014-12-28 15-03) - STFLightning
#  Created Script
# (2014-12-28 15-10) - STFLightning
#  Fixed Capitalisation Error, Added Changelog
# (2014-12-28 16-44) - STFLightning with help from petch
#  Fixed Tons Of Errors
# (2014-12-28 19-17) - STFLightning with help from petch
#  Fixed More Errors, Some Fixed Errors That Re-Appeared Have Been Fixed
# (2014-12-28 19-22) - STFLightning
#  Added exit to end of script, gave petch credit, fixed presentation bug
# (2014-12-28 19-39) - STFLightning
#  Fixed if and elif comparisons
     
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Planet Pokémon"
PREFIX="PlanetPokemon"
  
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_SetID 2368
     
## Welcome & Setup Options
POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net" "STFLightning & petch" $PREFIX
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
     
## Prefix Creation
POL_System_SetArch "x86"
POL_Wine_SelectPrefix $PREFIX
POL_Wine_PrefixCreate "1.7.33"
Set_OS "win7"
     
## Installing Prerequisites
POL_Call POL_Install_d3dx11
POL_Call POL_Install_dinput8
POL_Call POL_Install_dotnet40
     
## Install
if [$INSTALL_METHOD="DOWNLOAD"]
then
    POL_System_TmpCreate $PREFIX
    cd $POL_System_TmpDir
    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
fi
elif [$INSTALL_METHOD="LOCAL"]
then
    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
    localInstallerPath=$APP_ANSWER
    POL_System_TmpCreate $PREFIX
    cd $POL_System_TmpDir
    cp localInstallerPath ./
fi
   
POL_System_unzip "Planet Pokemon (Windows).zip"
mv ./"Planet Pokemon (Windows)"/* $WINEPREFIX/drive_c/$PROGRAMFILES/
     
POL_Shortcut "Planet Pokemon.exe" $TITLE
      
POL_SetupWindow_Close
exit

Réponses

STFLightning Dimanche 28 Décembre 2014 à 16:45
STFLightning

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,66 @@
+#!/bin/bash
+# Date : (2014-12-28 15-03)
+# Last revision : (2014-12-28 15-44)
+# Wine version used : 1.7.133
+# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
+# Author : STFLightning
+  
+# Changelog
+# (2014-12-28 15-03) - STFLightning
+#  Created Script
+# (2014-12-28 15-10) - STFLightning
+#  Fixed Capitalisation Error, Added Changelog
+# (2014-12-28 15-44) - STFLightning
+#  Fixed Tons Of Errors Thanks To petch
+  
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_SetID 2368
+  
+TITLE="Planet Pokémon"
+PREFIX="PlanetPokemon"
+  
+## Welcome & Setup Options
+POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net"
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+  
+## Prefix Creation
+POL_System_SetArch "x86"
+POL_Wine_SelectPrefix $PREFIX
+POL_Wine_PrefixCreate "1.7.33"
+Set_OS "win7"
+  
+## Installing Prerequisites
+POL_Call POL_Install_d3dx11
+POL_Call POL_Install_dinput8
+POL_Call POL_Install_dotnet40
+  
+## Install
+if [$INSTALL_METHOD = "Download from planetpokemon.net"]
+then
+    POL_System_TmpCreate $PREFIX
+    temporaryDirectory = $POL_System_TmpDir
+    cd temporaryDirectory
+    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
+    cd temporaryDirectory
+fi
+elif [$INSTALL_METHOD = "Install from Local File"]
+then
+    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
+    localInstallerPath = $APP_ANSWER
+    POL_System_TmpCreate $PREFIX
+    temporaryDirectory = $POL_System_TmpDir
+    cd temporaryDirectory
+    cp localInstallerPath ./
+fi
+
+POL_System_unzip "Planet Pokemon (Windows).zip"
+mv "./Planet Pokemon (Windows)" "./planetpokemon"
+mv ./planetpokemon/* $PROGRAMFILES
+  
+POL_Shortcut "Planet Pokemon.exe" $TITLE
+   
+POL_SetupWindow_Close
+exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-12-28 15-03)
# Last revision : (2014-12-28 15-44)
# Wine version used : 1.7.133
# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
# Author : STFLightning
  
# Changelog
# (2014-12-28 15-03) - STFLightning
#  Created Script
# (2014-12-28 15-10) - STFLightning
#  Fixed Capitalisation Error, Added Changelog
# (2014-12-28 15-44) - STFLightning
#  Fixed Tons Of Errors Thanks To petch
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_SetID 2368
  
TITLE="Planet Pokémon"
PREFIX="PlanetPokemon"
  
## Welcome & Setup Options
POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net"
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  
## Prefix Creation
POL_System_SetArch "x86"
POL_Wine_SelectPrefix $PREFIX
POL_Wine_PrefixCreate "1.7.33"
Set_OS "win7"
  
## Installing Prerequisites
POL_Call POL_Install_d3dx11
POL_Call POL_Install_dinput8
POL_Call POL_Install_dotnet40
  
## Install
if [$INSTALL_METHOD = "Download from planetpokemon.net"]
then
    POL_System_TmpCreate $PREFIX
    temporaryDirectory = $POL_System_TmpDir
    cd temporaryDirectory
    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
    cd temporaryDirectory
fi
elif [$INSTALL_METHOD = "Install from Local File"]
then
    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
    localInstallerPath = $APP_ANSWER
    POL_System_TmpCreate $PREFIX
    temporaryDirectory = $POL_System_TmpDir
    cd temporaryDirectory
    cp localInstallerPath ./
fi

POL_System_unzip "Planet Pokemon (Windows).zip"
mv "./Planet Pokemon (Windows)" "./planetpokemon"
mv ./planetpokemon/* $PROGRAMFILES
  
POL_Shortcut "Planet Pokemon.exe" $TITLE
   
POL_SetupWindow_Close
exit

Réponses

Dimanche 28 Décembre 2014 à 16:50
Even with the fixes from petch (thanks!) this script still fails due to an undeclared $TITLE variable even though it's there as TITLE="Planet Pokémon"
Dimanche 28 Décembre 2014 à 16:50
Can anyone help me with that?
Dimanche 28 Décembre 2014 à 18:40
- Ah yes, POL_Debug_Init requires $TITLE to be define (that's how it makes the link with the bug tracker page). Simple way to fix and forget those statements/variables dependencies is to define the variables near the very top of the script, let's say just after the source "$PLAYONLINUX/lib/sources" line

- if [$INSTALL_METHOD = "Download from planetpokemon.net"]
Still some already mentionned problems in this line, spaces and $INSTALL_METHOD values

- temporaryDirectory = $POL_System_TmpDir
Still some spaces-around-equal problems

- POL_System_unzip "Planet Pokemon (Windows).zip"
mv "./Planet Pokemon (Windows)" "./planetpokemon"
mv ./planetpokemon/* $PROGRAMFILES
$PROGRAMFILES just stands for the localized version of "Program Files", so it's usually used as "$WINEPREFIX/drive_c/$PROGRAMFILES/..." instead
Also you can replace the two mvs with one as
mv "Planet Pokemon (Windows)"/* "$WINEPREFIX/drive_c/$PROGRAMFILES/"
Just don't double quote the star symbol as it would stop working
STFLightning Dimanche 28 Décembre 2014 à 15:10
STFLightning

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,73 @@
+#!/bin/bash
+# Date : (2014-12-28 15-03)
+# Last revision : (2014-12-28 15-10)
+# Wine version used : 1.7.133
+# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
+# Author : STFLightning
+ 
+# Changelog
+# (2014-12-28 15-03) - STFLightning
+#  Created Script
+# (2014-12-28 15-10) - STFLightning
+#  Fixed Capitalisation Error, Added Changelog
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+TITLE = "Planet Pokémon"
+PREFIX = "PlanetPokemon
+ 
+## Welcome & Setup Options
+POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net"
+POL_SetupWindow_message "This will install the Planet Pokémon online game onto your computer" $TITLE
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+installMethod = $INSTALL_METHOD
+ 
+## Prefix Creation
+POL_Wine_SelectPrefix $PREFIX
+POL_Wine_PrefixCreate "1.7.33"
+Set_OS "win7"
+POL_System_SetArch "x86"
+ 
+## Installing Prerequisites
+POL_SetupWindow_wait "Installing Prerequisite DirectX 11 DLLs" $TITLE
+POL_Call POL_Install_d3dx11
+POL_SetupWindow_wait "Installing Prerequisite Dinput 8" $TITLE
+POL_Call POL_Install_dinput8
+POL_SetupWindow_wait "Installing Prerequisite .NET 4.0" $TITLE
+POL_Call POL_Install_dotnet40
+ 
+## Install
+if ["installMethod" = "Download from planetpokemon.net"]
+then
+    POL_SetupWindow_wait "Downloading Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $TITLE
+    POL_System_TmpCreate $PREFIX
+    temporaryDirectory = $POL_System_TmpDir
+    cd temporaryDirectory
+    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
+    POL_SetupWindow_wait "Installing Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $TITLE
+    unzip "Planet Pokemon (Windows).zip"
+    mv "./Planet Pokemon (Windows)" "./planetpokemon"
+    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$PREFIX/Program Files/*
+fi
+elif ["installMethod" = "Install from Local File"]
+then
+    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
+    localInstallerPath = $APP_ANSWER
+    POL_System_TmpCreate $PREFIX
+    temporaryDirectory = $POL_System_TmpDir
+    cd temporaryDirectory
+    cp localInstallerPath ./
+    unzip "Planet Pokemon (Windows).zip"
+    mv "./Planet Pokemon (Windows)" "./planetpokemon"
+    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$PREFIX/Program Files/*
+fi
+ 
+POL_Shortcut "Planet Pokemon.exe" $TITLE
+  
+POL_SetupWindow_message "$TITLE has been successfully installed." "Window title"
+  
+POL_SetupWindow_Close
+exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-12-28 15-03)
# Last revision : (2014-12-28 15-10)
# Wine version used : 1.7.133
# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
# Author : STFLightning
 
# Changelog
# (2014-12-28 15-03) - STFLightning
#  Created Script
# (2014-12-28 15-10) - STFLightning
#  Fixed Capitalisation Error, Added Changelog
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_Debug_Init
 
TITLE = "Planet Pokémon"
PREFIX = "PlanetPokemon
 
## Welcome & Setup Options
POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net"
POL_SetupWindow_message "This will install the Planet Pokémon online game onto your computer" $TITLE
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
installMethod = $INSTALL_METHOD
 
## Prefix Creation
POL_Wine_SelectPrefix $PREFIX
POL_Wine_PrefixCreate "1.7.33"
Set_OS "win7"
POL_System_SetArch "x86"
 
## Installing Prerequisites
POL_SetupWindow_wait "Installing Prerequisite DirectX 11 DLLs" $TITLE
POL_Call POL_Install_d3dx11
POL_SetupWindow_wait "Installing Prerequisite Dinput 8" $TITLE
POL_Call POL_Install_dinput8
POL_SetupWindow_wait "Installing Prerequisite .NET 4.0" $TITLE
POL_Call POL_Install_dotnet40
 
## Install
if ["installMethod" = "Download from planetpokemon.net"]
then
    POL_SetupWindow_wait "Downloading Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $TITLE
    POL_System_TmpCreate $PREFIX
    temporaryDirectory = $POL_System_TmpDir
    cd temporaryDirectory
    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
    POL_SetupWindow_wait "Installing Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $TITLE
    unzip "Planet Pokemon (Windows).zip"
    mv "./Planet Pokemon (Windows)" "./planetpokemon"
    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$PREFIX/Program Files/*
fi
elif ["installMethod" = "Install from Local File"]
then
    POL_SetupWindow_browse "Please select the downloaded zip file." $TITLE
    localInstallerPath = $APP_ANSWER
    POL_System_TmpCreate $PREFIX
    temporaryDirectory = $POL_System_TmpDir
    cd temporaryDirectory
    cp localInstallerPath ./
    unzip "Planet Pokemon (Windows).zip"
    mv "./Planet Pokemon (Windows)" "./planetpokemon"
    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$PREFIX/Program Files/*
fi
 
POL_Shortcut "Planet Pokemon.exe" $TITLE
  
POL_SetupWindow_message "$TITLE has been successfully installed." "Window title"
  
POL_SetupWindow_Close
exit

Réponses

Dimanche 28 Décembre 2014 à 15:12
I don't understand why this code fails at $TITLE undeclared when it is declared at the start. Could someone please explain this to me? I have never playonmac/linux scripted before but I am no novice to Bash.
Dimanche 28 Décembre 2014 à 15:24
Oops, missed that entry, see below, spaces around '=' in assignments are not allowed in Bash
Dimanche 28 Décembre 2014 à 15:53
Ok full review, if it can help you:
-
POL_SetupWindow_Init
POL_Debug_Init
You can add POL_SetupWindow_SetID 2368 to add a link to this very page in the installation wizard, that's not required but a nice touch

- spaces not allowed around = in assignments in Bash (since it supports "var=value program args" syntax for variables local to one program spawning, space has to be considered a separator in the syntax)

- PREFIX = "PlanetPokemon
unclosed double quotes, caution!

- POL_SetupWindow_message "This will install the Planet Pokémon online game onto your computer" $TITLE
Beside being redundant with the POL_SetupWindow_presentation statement just above, all user-oriented messages need support for localization, see http://www.playonlinux.com/en/dev-documentation-10.html)
That comment applies to most POL_SetupWindow_wait statements in your script, maybe they help you in debugging the script, but I don't really see the benefit to the user during installation, they're mostly redundant (and unexpected).

- installMethod = $INSTALL_METHOD
Only POL_SetupWindow_InstallMethod statement sets $INSTALL_METHOD variable, you can use it directly

- POL_System_SetArch "x86"
Unnecessary statement (that's the default), but it's also too late if used after POL_Wine_PrefixCreate: you cannot change the architecture once the virtual drive has been created

- if ["installMethod" = "Download from planetpokemon.net"]
$INSTALL_METHOD values are the ones listed after POL_SetupWindow_InstallMethod: "LOCAL", or "DOWNLOAD"
Also, I this spaces inside [] are part of the syntax, so that's actually not Bash correct code

- lots of duplicate code between the two install methods, better factorize it

- unzip "Planet Pokemon (Windows).zip"
Starting with PlayOnLinux/Mac 4.1.4 you can use POL_System_unzip instead, with the added benefit that the script will stop if the unarchiving fails (right now you're not testing its result).
unzip also supports -d to set unarchiving target directory, so you don't have to move the files after archiving; You can also set the current directory before unarchiving for a similar effect, if you specify the full path to the archive.

- mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$PREFIX/Program Files/*
use $WINEPREFIX relative paths, or it will only work with PlayOnMac
Also, never use "Program Files" as it depends on locale (use $PROGRAMFILES instead). Space in path will also break the mv command, use double quotes; And star at the end of target path does not make sense either, target is just a directory.

- POL_SetupWindow_message "$TITLE has been successfully installed." "Window title"
Such final message is deprecated, as it will display even if the installation somehow failed. Just remove it.
Dimanche 28 Décembre 2014 à 15:56
Documentation is available from http://www.playonlinux.com/en/documentation.html, it may also be more convenient to ask questions about scripts technical points and style in http://www.playonlinux.com/en/forum-25-Your_creations.html
Dimanche 28 Décembre 2014 à 16:47
Thanks petch I fixed everything you listed, could you please give the new update a look over to make sure I didn't make any mistakes?
STFLightning Dimanche 28 Décembre 2014 à 15:03
STFLightning

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,67 @@
+#!/bin/bash
+# Date : (2014-12-28 13-min)
+# Last revision : (2014-12-28 13-min)
+# Wine version used : 1.7.133
+# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
+# Author : STFLightning
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+POL_SetupWindow_Init
+POL_Debug_Init
+
+title = "Planet Pokémon"
+prefix = "PlanetPokemon
+
+## Welcome & Setup Options
+POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net"
+POL_SetupWindow_message "This will install the Planet Pokémon online game onto your computer" title
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
+installMethod = $INSTALL_METHOD
+
+## Prefix Creation
+POL_Wine_SelectPrefix $prefix
+POL_Wine_PrefixCreate "1.7.33"
+Set_OS "win7"
+POL_System_SetArch "x86"
+
+## Installing Prerequisites
+POL_SetupWindow_wait "Installing Prerequisite DirectX 11 DLLs" $title
+POL_Call POL_Install_d3dx11
+POL_SetupWindow_wait "Installing Prerequisite Dinput 8" $title
+POL_Call POL_Install_dinput8
+POL_SetupWindow_wait "Installing Prerequisite .NET 4.0" $title
+POL_Call POL_Install_dotnet40
+
+## Install
+if ["installMethod" = "Download from planetpokemon.net"]
+then
+    POL_SetupWindow_wait "Downloading Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $title
+    POL_System_TmpCreate $prefix
+    temporaryDirectory = $POL_System_TmpDir
+    cd temporaryDirectory
+    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
+    POL_SetupWindow_wait "Installing Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $title
+    unzip "Planet Pokemon (Windows).zip"
+    mv "./Planet Pokemon (Windows)" "./planetpokemon"
+    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$prefix/Program Files/*
+fi
+elif ["installMethod" = "Install from Local File"]
+then
+    POL_SetupWindow_browse "Please select the downloaded zip file." $title
+    localInstallerPath = $APP_ANSWER
+    POL_System_TmpCreate $prefix
+    temporaryDirectory = $POL_System_TmpDir
+    cd temporaryDirectory
+    cp localInstallerPath ./
+    unzip "Planet Pokemon (Windows).zip"
+    mv "./Planet Pokemon (Windows)" "./planetpokemon"
+    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$prefix/Program Files/*
+fi
+
+POL_Shortcut "Planet Pokemon.exe" $title
+ 
+POL_SetupWindow_message "$title has been successfully installed." "Window title"
+ 
+POL_SetupWindow_Close
+exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2014-12-28 13-min)
# Last revision : (2014-12-28 13-min)
# Wine version used : 1.7.133
# Distribution used to test : Mac OSX 10.10.2 Yosemite Appleseed Version
# Author : STFLightning

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
POL_SetupWindow_Init
POL_Debug_Init

title = "Planet Pokémon"
prefix = "PlanetPokemon

## Welcome & Setup Options
POL_SetupWindow_presentation "Planet Pokémon" "Planet Pokémon Team" "http://www.planetpokemon.net"
POL_SetupWindow_message "This will install the Planet Pokémon online game onto your computer" title
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
installMethod = $INSTALL_METHOD

## Prefix Creation
POL_Wine_SelectPrefix $prefix
POL_Wine_PrefixCreate "1.7.33"
Set_OS "win7"
POL_System_SetArch "x86"

## Installing Prerequisites
POL_SetupWindow_wait "Installing Prerequisite DirectX 11 DLLs" $title
POL_Call POL_Install_d3dx11
POL_SetupWindow_wait "Installing Prerequisite Dinput 8" $title
POL_Call POL_Install_dinput8
POL_SetupWindow_wait "Installing Prerequisite .NET 4.0" $title
POL_Call POL_Install_dotnet40

## Install
if ["installMethod" = "Download from planetpokemon.net"]
then
    POL_SetupWindow_wait "Downloading Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $title
    POL_System_TmpCreate $prefix
    temporaryDirectory = $POL_System_TmpDir
    cd temporaryDirectory
    POL_Download "http://www.planetpokemon.net/download/prealpha/Planet%20Pokemon%20(Windows).zip" "cb54b24e3c7c808e36fc22b220779c6"
    POL_SetupWindow_wait "Installing Latest Version '[v0.1.2.3] Gladiatorial Turkey'" $title
    unzip "Planet Pokemon (Windows).zip"
    mv "./Planet Pokemon (Windows)" "./planetpokemon"
    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$prefix/Program Files/*
fi
elif ["installMethod" = "Install from Local File"]
then
    POL_SetupWindow_browse "Please select the downloaded zip file." $title
    localInstallerPath = $APP_ANSWER
    POL_System_TmpCreate $prefix
    temporaryDirectory = $POL_System_TmpDir
    cd temporaryDirectory
    cp localInstallerPath ./
    unzip "Planet Pokemon (Windows).zip"
    mv "./Planet Pokemon (Windows)" "./planetpokemon"
    mv ./planetpokemon/* ~/Library/PlayOnMac/wineprefix/$prefix/Program Files/*
fi

POL_Shortcut "Planet Pokemon.exe" $title
 
POL_SetupWindow_message "$title has been successfully installed." "Window title"
 
POL_SetupWindow_Close
exit

Réponses

Dimanche 28 Décembre 2014 à 15:22
title = "Planet Pokémon"
prefix = "PlanetPokemon
that's not Bash syntax (spaces around = are not allowed), did you test your script?
lahtis Dimanche 28 Décembre 2014 à 10:41
lahtis

Messages

Here seems to be a lot of new friends who do not know how to use the site. Read the instructions and please add the source code in page.

Réponses

Dimanche 28 Décembre 2014 à 13:17
Yes and no, while many miss the workflow to submit install scripts (that's not obvious at first, cf http://www.playonlinux.com/en/issue-4896.html), a recurrent idea among the team is that the repository could also be used to request for install scripts, so having entries without script may make perfect sense. Making it more effective could require some more work, but it's usable as such already...
Dimanche 28 Décembre 2014 à 15:04
Thanks for pointing this out, I had made a script but it had not appeared, I have added the script again so it should work fine

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 dmca-notice@playonlinux.com