Pro Pilkki 2

Informations

Creator Message
lahtis

Warning

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

Informations

Platforms:
Downloads: 10335
Wine: 3.0

Feedbacks

Description

It's a realistic ice fishing game (Europe). URL for download.

Note: this script can download automatically the game.

Screenshots

MiniatureMiniature

Source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : see changelog
# Distribution used to test : Ubuntu 18.04 LTS
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.4.2
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
# [Lahtis] (2019-03-08 15-48)
#
# [Dadu042] (2019-11-10)
#   Add warning about log size.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="3.0"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
AUTHOR="lahtis"

  
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_SetupWindow_SetID 1595
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_System_TmpCreate "$PREFIX"
 
Set_OS "win8"
 
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"

mv "PP2_download.php?id=0" "P2Installer_v1.4.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.4.2.exe"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut 'ProPilkki2.exe' "$TITLE"

POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have huge log file, you should type \ninto Debug flags : fixme-all')" "$TITLE"

POL_System_TmpDelete 
POL_SetupWindow_Close
 
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 10 November 2019 at 12:43
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,6 +1,6 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2019-03-08 15-48)
+# Last revision : see changelog
 # Distribution used to test : Ubuntu 18.04 LTS
 # Author : lahtis
 # Licence : GPLv3
@@ -12,7 +12,11 @@
 #   Update gettext messages
 #   Clean code
 #   Fix $PLAYONLINUX check presence
- 
+# [Lahtis] (2019-03-08 15-48)
+#
+# [Dadu042] (2019-11-10)
+#   Add warning about log size.
+
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
@@ -50,6 +54,8 @@
  
 POL_Shortcut 'ProPilkki2.exe' "$TITLE"
 
+POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have huge log file, you should type \ninto Debug flags : fixme-all')" "$TITLE"
+
 POL_System_TmpDelete 
 POL_SetupWindow_Close
  

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : see changelog
# Distribution used to test : Ubuntu 18.04 LTS
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.4.2
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
# [Lahtis] (2019-03-08 15-48)
#
# [Dadu042] (2019-11-10)
#   Add warning about log size.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="3.0"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
AUTHOR="lahtis"

  
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_SetupWindow_SetID 1595
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_System_TmpCreate "$PREFIX"
 
Set_OS "win8"
 
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"

mv "PP2_download.php?id=0" "P2Installer_v1.4.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.4.2.exe"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut 'ProPilkki2.exe' "$TITLE"

POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have huge log file, you should type \ninto Debug flags : fixme-all')" "$TITLE"

POL_System_TmpDelete 
POL_SetupWindow_Close
 
exit 0

Replies

lahtis Friday 2 August 2019 at 23:31
lahtis

Warning

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

Message

Old script not working. New version of game. This script working.

Differences

@@ -1,62 +1,56 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2015-02-09 15-48)
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2019-03-08 15-48)
+# Distribution used to test : Ubuntu 18.04 LTS
 # Author : lahtis
 # Licence : GPLv3
-# Installer for Pro pilkki 2 v1.0.3
+# Installer for Pro pilkki 2 v1.4.2
 # PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
-
+ 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
 #   Update gettext messages
 #   Clean code
 #   Fix $PLAYONLINUX check presence
-
+ 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Pro Pilkki 2"
 PREFIX="ProPilkki2"
-WORKING_WINE_VERSION="1.5.28"
+WORKING_WINE_VERSION="3.0"
 EDITOR="Team Procyon"
 GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
 AUTHOR="lahtis"
-GAME_VMS="512"
-
 
+  
 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_SetupWindow_Init 
+POL_SetupWindow_SetID 1595
 POL_Debug_Init
-
+ 
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+ 
 POL_System_TmpCreate "$PREFIX"
-
-# Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
-# Asking about memory size of graphic card
-POL_SetupWindow_VMS $GAME_VMS
-
+ 
+Set_OS "win8"
+ 
 cd "$POL_System_TmpDir"
 POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
 
-# Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"
-
+mv "PP2_download.php?id=0" "P2Installer_v1.4.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+ 
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.4.2.exe"
 POL_Wine_WaitExit "$TITLE"
-
-POL_System_TmpDelete
-
+ 
 POL_Shortcut 'ProPilkki2.exe' "$TITLE"
 
+POL_System_TmpDelete 
 POL_SetupWindow_Close
-
+ 
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : (2019-03-08 15-48)
# Distribution used to test : Ubuntu 18.04 LTS
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.4.2
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="3.0"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
AUTHOR="lahtis"

  
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_SetupWindow_SetID 1595
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_System_TmpCreate "$PREFIX"
 
Set_OS "win8"
 
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"

mv "PP2_download.php?id=0" "P2Installer_v1.4.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.4.2.exe"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut 'ProPilkki2.exe' "$TITLE"

POL_System_TmpDelete 
POL_SetupWindow_Close
 
exit 0

Replies

Saturday 3 August 2019 at 1:08
Approved.
lahtis Friday 9 February 2018 at 16:38
lahtis

Warning

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

Message

little fix

Differences

@@ -1,62 +1,57 @@
-#!/bin/bash
+#!/usr/bin/env playonlinux-bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2015-02-09 15-48)
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2018-02-09 17-34)
+# Distribution used to test : Ubuntu 16.04 lts, 64-bit
 # Author : lahtis
 # Licence : GPLv3
-# Installer for Pro pilkki 2 v1.0.3
-# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
-
+# Installer for Pro pilkki 2 v1.2
+# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10, 4.2.12
+# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
+   
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
 #   Update gettext messages
 #   Clean code
 #   Fix $PLAYONLINUX check presence
-
-[ -z "$PLAYONLINUX" ] && exit 0
+   
+[ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+   
 TITLE="Pro Pilkki 2"
 PREFIX="ProPilkki2"
-WORKING_WINE_VERSION="1.5.28"
+WORKING_WINE_VERSION="3.0"
 EDITOR="Team Procyon"
-GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
+GAME_URL="http://www.kalassa.net"
 AUTHOR="lahtis"
-GAME_VMS="512"
-
-
+CURRENT_VERSION="v.1.2"
+   
 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"
-
+   
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
 POL_System_TmpCreate "$PREFIX"
-
-# Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
+Set_OS "win8"
+   
 # Asking about memory size of graphic card
-POL_SetupWindow_VMS $GAME_VMS
-
+POL_SetupWindow_VMS "512"
+   
 cd "$POL_System_TmpDir"
 POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
-
+   
 # Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"
-
+mv "PP2_download.php?id=0" "P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+   
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
 POL_Wine_WaitExit "$TITLE"
-
+    
+POL_Shortcut "ProPilkki2.exe" "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"
+   
 POL_System_TmpDelete
-
-POL_Shortcut 'ProPilkki2.exe' "$TITLE"
-
 POL_SetupWindow_Close
-
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2013-02-26 ??-??)
# Last revision : (2018-02-09 17-34)
# Distribution used to test : Ubuntu 16.04 lts, 64-bit
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.2
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10, 4.2.12
# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
   
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
   
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="3.0"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net"
AUTHOR="lahtis"
CURRENT_VERSION="v.1.2"
   
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"
   
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$PREFIX"
Set_OS "win8"
   
# Asking about memory size of graphic card
POL_SetupWindow_VMS "512"
   
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
   
# Move file to correct filename
mv "PP2_download.php?id=0" "P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
   
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
POL_Wine_WaitExit "$TITLE"
    
POL_Shortcut "ProPilkki2.exe" "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"
   
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Friday 9 February 2018 at 16:50
You remove your previous patch ?
Friday 9 February 2018 at 20:38
yes. no needed anymore. The patch is included in the program file.
Sunday 11 February 2018 at 16:35
The patch section has an older version of patch that update the older version as a new one.
lahtis Friday 26 January 2018 at 17:32
lahtis

Warning

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

Message

fix

Differences

@@ -1,62 +1,63 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2015-02-09 15-48)
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2018-01-26 18:12)
+# Distribution used to test : Ubuntu 16.04 lts, 64-bit
 # Author : lahtis
 # Licence : GPLv3
-# Installer for Pro pilkki 2 v1.0.3
-# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
-
+# Installer for Pro pilkki 2 v1.1 and update 1.1.5
+# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10, 4.2.12
+# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
+  
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
 #   Update gettext messages
 #   Clean code
 #   Fix $PLAYONLINUX check presence
-
+  
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+  
 TITLE="Pro Pilkki 2"
 PREFIX="ProPilkki2"
-WORKING_WINE_VERSION="1.5.28"
+WORKING_WINE_VERSION="3.0"
 EDITOR="Team Procyon"
-GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
+GAME_URL="http://www.kalassa.net"
 AUTHOR="lahtis"
 GAME_VMS="512"
-
-
+ 
+CURRENT_VERSION="v.1.2"
+  
 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"
-
+  
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+  
 POL_System_TmpCreate "$PREFIX"
-
+  
 # Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
+which pulseaudio && Set_OS "win8"
+  
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS
-
+  
 cd "$POL_System_TmpDir"
 POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
-
+  
 # Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"
-
+mv "PP2_download.php?id=0" "P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+  
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
 POL_Wine_WaitExit "$TITLE"
-
+   
+POL_Shortcut "ProPilkki2.exe" "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"
+  
 POL_System_TmpDelete
-
-POL_Shortcut 'ProPilkki2.exe' "$TITLE"
-
 POL_SetupWindow_Close
-
+  
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : (2018-01-26 18:12)
# Distribution used to test : Ubuntu 16.04 lts, 64-bit
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.1 and update 1.1.5
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10, 4.2.12
# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
  
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
  
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="3.0"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net"
AUTHOR="lahtis"
GAME_VMS="512"
 
CURRENT_VERSION="v.1.2"
  
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"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_System_TmpCreate "$PREFIX"
  
# Fix pulseaudio issue
which pulseaudio && Set_OS "win8"
  
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
  
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
  
# Move file to correct filename
mv "PP2_download.php?id=0" "P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
  
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.2.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
POL_Wine_WaitExit "$TITLE"
   
POL_Shortcut "ProPilkki2.exe" "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"
  
POL_System_TmpDelete
POL_SetupWindow_Close
  
exit 0

Replies

lahtis Friday 27 January 2017 at 13:16
lahtis

Warning

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

Message

fixed shortcut for mac users.

Differences

@@ -1,62 +1,82 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2015-02-09 15-48)
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2017-01-20 21-16)
+# Distribution used to test : Ubuntu 16.04 lts, 64-bit
 # Author : lahtis
 # Licence : GPLv3
-# Installer for Pro pilkki 2 v1.0.3
-# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
-
+# Installer for Pro pilkki 2 v1.1 and update 1.1.5
+# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10
+# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
+ 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
 #   Update gettext messages
 #   Clean code
 #   Fix $PLAYONLINUX check presence
-
+ 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Pro Pilkki 2"
 PREFIX="ProPilkki2"
-WORKING_WINE_VERSION="1.5.28"
+WORKING_WINE_VERSION="2.0-rc5"
 EDITOR="Team Procyon"
-GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
+GAME_URL="http://www.kalassa.net"
 AUTHOR="lahtis"
 GAME_VMS="512"
 
-
+CURRENT_VERSION="v.1.1"
+UPDATE_VERSION="v.1.1.5"
+ 
 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"
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+ 
 POL_System_TmpCreate "$PREFIX"
-
+ 
 # Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
+which pulseaudio && Set_OS "win8"
+ 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS
-
+ 
 cd "$POL_System_TmpDir"
 POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
-
+ 
 # Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"
-
+mv "PP2_download.php?id=0" "P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+ 
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
 POL_Wine_WaitExit "$TITLE"
+  
+POL_Shortcut "ProPilkki2.exe" "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"
 
-POL_System_TmpDelete
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
+if [ "$APP_ANSWER" = "TRUE" ]
+then
+
+	# Download update file.
+	cd "$POL_System_TmpDir"
+	POL_Download "http://propilkki.ddns.net/propilkki2/download_1.1.5/PP2_download.php?id=0"
+	POL_Wine_WaitBefore "$TITLE" 
+
+	# Move file to correct filename
+	mv "PP2_download.php?id=0" "P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+
+	# Installing update
+	POL_Wine "$POL_System_TmpDir/P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
+	POL_Wine_WaitExit "$TITLE"
 
-POL_Shortcut 'ProPilkki2.exe' "$TITLE"
+fi
 
+POL_System_TmpDelete
 POL_SetupWindow_Close
-
-exit 0
\ No newline at end of file
+ 
+exit 0

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : (2017-01-20 21-16)
# Distribution used to test : Ubuntu 16.04 lts, 64-bit
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.1 and update 1.1.5
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10
# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="2.0-rc5"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net"
AUTHOR="lahtis"
GAME_VMS="512"

CURRENT_VERSION="v.1.1"
UPDATE_VERSION="v.1.1.5"
 
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"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_System_TmpCreate "$PREFIX"
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win8"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
 
# Move file to correct filename
mv "PP2_download.php?id=0" "P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
POL_Wine_WaitExit "$TITLE"
  
POL_Shortcut "ProPilkki2.exe" "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"

POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then

        # Download update file.
        cd "$POL_System_TmpDir"
        POL_Download "http://propilkki.ddns.net/propilkki2/download_1.1.5/PP2_download.php?id=0"
        POL_Wine_WaitBefore "$TITLE" 

        # Move file to correct filename
        mv "PP2_download.php?id=0" "P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"

        # Installing update
        POL_Wine "$POL_System_TmpDir/P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
        POL_Wine_WaitExit "$TITLE"

fi

POL_System_TmpDelete
POL_SetupWindow_Close
 
exit 0

Replies

lahtis Friday 20 January 2017 at 20:30
lahtis

Warning

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

Message

wrong prefix. sorry.

Differences

@@ -1,62 +1,81 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2015-02-09 15-48)
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2017-01-20 21-16)
+# Distribution used to test : Ubuntu 16.04 lts, 64-bit
 # Author : lahtis
 # Licence : GPLv3
-# Installer for Pro pilkki 2 v1.0.3
-# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
-
+# Installer for Pro pilkki 2 v1.1 and update 1.1.5
+# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10
+ 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
 #   Update gettext messages
 #   Clean code
 #   Fix $PLAYONLINUX check presence
-
+ 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Pro Pilkki 2"
 PREFIX="ProPilkki2"
-WORKING_WINE_VERSION="1.5.28"
+WORKING_WINE_VERSION="2.0-rc5"
 EDITOR="Team Procyon"
-GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
+GAME_URL="http://www.kalassa.net"
 AUTHOR="lahtis"
 GAME_VMS="512"
 
-
+CURRENT_VERSION="v.1.1"
+UPDATE_VERSION="v.1.1.5"
+ 
 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"
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+ 
 POL_System_TmpCreate "$PREFIX"
-
+ 
 # Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
+which pulseaudio && Set_OS "win8"
+ 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS
-
+ 
 cd "$POL_System_TmpDir"
 POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
-
+ 
 # Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"
-
+mv "PP2_download.php?id=0" "P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+ 
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
 POL_Wine_WaitExit "$TITLE"
+  
+POL_Shortcut 'ProPilkki2.exe' "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"
 
-POL_System_TmpDelete
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
+if [ "$APP_ANSWER" = "TRUE" ]
+then
+
+	# Download update file.
+	cd "$POL_System_TmpDir"
+	POL_Download "http://propilkki.ddns.net/propilkki2/download_1.1.5/PP2_download.php?id=0"
+	POL_Wine_WaitBefore "$TITLE" 
+
+	# Move file to correct filename
+	mv "PP2_download.php?id=0" "P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+
+	# Installing update
+	POL_Wine "$POL_System_TmpDir/P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
+	POL_Wine_WaitExit "$TITLE"
 
-POL_Shortcut 'ProPilkki2.exe' "$TITLE"
+fi
 
+POL_System_TmpDelete
 POL_SetupWindow_Close
-
+ 
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : (2017-01-20 21-16)
# Distribution used to test : Ubuntu 16.04 lts, 64-bit
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.1 and update 1.1.5
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="2.0-rc5"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net"
AUTHOR="lahtis"
GAME_VMS="512"

CURRENT_VERSION="v.1.1"
UPDATE_VERSION="v.1.1.5"
 
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"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_System_TmpCreate "$PREFIX"
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win8"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
 
# Move file to correct filename
mv "PP2_download.php?id=0" "P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
POL_Wine_WaitExit "$TITLE"
  
POL_Shortcut 'ProPilkki2.exe' "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"

POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then

        # Download update file.
        cd "$POL_System_TmpDir"
        POL_Download "http://propilkki.ddns.net/propilkki2/download_1.1.5/PP2_download.php?id=0"
        POL_Wine_WaitBefore "$TITLE" 

        # Move file to correct filename
        mv "PP2_download.php?id=0" "P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"

        # Installing update
        POL_Wine "$POL_System_TmpDir/P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
        POL_Wine_WaitExit "$TITLE"

fi

POL_System_TmpDelete
POL_SetupWindow_Close
 
exit 0

Replies

lahtis Friday 20 January 2017 at 20:27
lahtis

Warning

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

Message

This is a new installer for new players.

* Add question. Do you want to install Pro Pilkki 2 v.1.1.5 update?

If you want to upgrade old 1.1 version to a new version 1.1.5. Use the Pro Pilkki 2 update patch. -> https://www.playonlinux.com/en/app-3110-Pro_Pilkki_2_update_v115.html

Differences

@@ -1,62 +1,95 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2015-02-09 15-48)
-# Distribution used to test : Ubuntu 12.10
+# Last revision : (2017-01-20 21-16)
+# Distribution used to test : Ubuntu 16.04 lts, 64-bit
 # Author : lahtis
 # Licence : GPLv3
-# Installer for Pro pilkki 2 v1.0.3
-# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
-
+# Installer for Pro pilkki 2 v1.1 and update 1.1.5
+# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10
+# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
+ 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
 #   Update gettext messages
 #   Clean code
 #   Fix $PLAYONLINUX check presence
-
+ 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Pro Pilkki 2"
-PREFIX="ProPilkki2"
-WORKING_WINE_VERSION="1.5.28"
+PREFIX="ProPilkki2-115"
+WORKING_WINE_VERSION="2.0-rc5"
 EDITOR="Team Procyon"
-GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
+GAME_URL="http://www.kalassa.net"
 AUTHOR="lahtis"
 GAME_VMS="512"
 
-
+CURRENT_VERSION="v.1.1"
+UPDATE_VERSION="v.1.1.5"
+ 
 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"
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+ 
 POL_System_TmpCreate "$PREFIX"
-
+ 
 # Fix pulseaudio issue
-which pulseaudio && Set_OS "winxp"
-
+which pulseaudio && Set_OS "win8"
+ 
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS $GAME_VMS
-
+ 
 cd "$POL_System_TmpDir"
 POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
-
+ 
 # Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"
-
+mv "PP2_download.php?id=0" "P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+ 
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
 POL_Wine_WaitExit "$TITLE"
+  
+POL_Shortcut 'ProPilkki2.exe' "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"
 
-POL_System_TmpDelete
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
+if [ "$APP_ANSWER" = "TRUE" ]
+then
+
+	# Download update file.
+	cd "$POL_System_TmpDir"
+	POL_Download "http://propilkki.ddns.net/propilkki2/download_1.1.5/PP2_download.php?id=0"
+	POL_Wine_WaitBefore "$TITLE" 
+
+	# Move file to correct filename
+	mv "PP2_download.php?id=0" "P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
+
+	# Installing update
+	POL_Wine "$POL_System_TmpDir/P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
+	POL_Wine_WaitExit "$TITLE"
 
-POL_Shortcut 'ProPilkki2.exe' "$TITLE"
+fi
 
+POL_System_TmpDelete
 POL_SetupWindow_Close
-
-exit 0
\ No newline at end of file
+ 
+exit 0
+mv "PP2_download.php?id=0" "P2Installer_v1.0.3.exe"
+ 
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.0.3.exe"
+POL_Wine_WaitExit "$TITLE"
+ 
+POL_System_TmpDelete
+ 
+POL_Shortcut 'ProPilkki2.exe' "$TITLE"
+ 
+POL_SetupWindow_Close
+ 
+exit 0

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : (2017-01-20 21-16)
# Distribution used to test : Ubuntu 16.04 lts, 64-bit
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.1 and update 1.1.5
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9 4.2.10
# Latest found https://github.com/lahtis/playonlinux/blob/master/working/ProPilkki2
 
# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2-115"
WORKING_WINE_VERSION="2.0-rc5"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net"
AUTHOR="lahtis"
GAME_VMS="512"

CURRENT_VERSION="v.1.1"
UPDATE_VERSION="v.1.1.5"
 
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"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_System_TmpCreate "$PREFIX"
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win8"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
 
# Move file to correct filename
mv "PP2_download.php?id=0" "P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
POL_Wine_WaitExit "$TITLE"
  
POL_Shortcut 'ProPilkki2.exe' "$TITLE" || POL_Debug_Fatal "$(eval_gettext 'Error in shortcut!')"

POL_SetupWindow_question "$(eval_gettext 'Do you want to install $TITLE $UPDATE_VERSION update?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]
then

        # Download update file.
        cd "$POL_System_TmpDir"
        POL_Download "http://propilkki.ddns.net/propilkki2/download_1.1.5/PP2_download.php?id=0"
        POL_Wine_WaitBefore "$TITLE" 

        # Move file to correct filename
        mv "PP2_download.php?id=0" "P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error rename the file!')"

        # Installing update
        POL_Wine "$POL_System_TmpDir/P2Updater_v1.1.5.exe" || POL_Debug_Fatal "$(eval_gettext 'Error file installing!')"
        POL_Wine_WaitExit "$TITLE"

fi

POL_System_TmpDelete
POL_SetupWindow_Close
 
exit 0
mv "PP2_download.php?id=0" "P2Installer_v1.0.3.exe"
 
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.0.3.exe"
POL_Wine_WaitExit "$TITLE"
 
POL_System_TmpDelete
 
POL_Shortcut 'ProPilkki2.exe' "$TITLE"
 
POL_SetupWindow_Close
 
exit 0

Replies

lahtis Tuesday 9 February 2016 at 14:53
lahtis

Warning

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

Message

version 1.1 update

Differences

@@ -1,11 +1,11 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2013-07-24 09-37)
+# Last revision : (2015-02-09 15-48)
 # Distribution used to test : Ubuntu 12.10
 # Author : lahtis
 # Licence : GPLv3
 # Installer for Pro pilkki 2 v1.0.3
-# PlayOnLinux: 4.1.9, 4.2.1
+# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
@@ -44,13 +44,13 @@
 POL_SetupWindow_VMS $GAME_VMS
 
 cd "$POL_System_TmpDir"
-POL_Download "http://www.kalassa.net/propilkki2/download/PP2_download.php?id=0" "293f9e4e4ba0905f7f9526042510c2d1"
+POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"
 
 # Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.0.3.exe"
+mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"
 
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.0.3.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
 POL_Wine_WaitExit "$TITLE"
 
 POL_System_TmpDelete

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : (2015-02-09 15-48)
# Distribution used to test : Ubuntu 12.10
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.0.3
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9

# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="1.5.28"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
AUTHOR="lahtis"
GAME_VMS="512"


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"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

cd "$POL_System_TmpDir"
POL_Download "http://propilkki.ddns.net/propilkki2/download/PP2_download.php?id=0"

# Move file to correct filename
mv "PP2_download.php?id=0" "P2Installer_v1.1.exe"

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.1.exe"
POL_Wine_WaitExit "$TITLE"

POL_System_TmpDelete

POL_Shortcut 'ProPilkki2.exe' "$TITLE"

POL_SetupWindow_Close

exit 0

Replies

Anonymous
Wednesday 20 April 2016 at 16:54
Does not work for me... Error in POL_Shortcut.
The installer does not give an option to change the installation directory so I don't know how I can cause this issue, or resolve it either..
Thursday 21 April 2016 at 20:31
in mac version or linux version?
Thursday 21 April 2016 at 20:37
Don't change installer directory. (windows game installer) The Playonlinux or playonmac program does not work that way. You get Error in POL_Shortcut error.
Anonymous
Friday 22 April 2016 at 7:52
Playonmac version. I did nothing except clicking directly the "Install this program" button right up there and even tried the updated 1.1 version. I did not change any installation directories because it is not even possible on Pro Pilkki 2 installer. And I haven't messed up with any playonmac settings. Just plain raw installed it to Applications folder in my Mac and right after that tried your installer provided here.
Friday 20 January 2017 at 15:04
it is new installer not updater.
lahtis Wednesday 21 October 2015 at 4:16
lahtis

Warning

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

Message

New version 1.0.6. Removed md5 check.

Differences

@@ -1,11 +1,11 @@
 #!/bin/bash
 # Date : (2013-02-26 ??-??)
-# Last revision : (2013-07-24 09-37)
+# Last revision : (2015-10-21 05-13)
 # Distribution used to test : Ubuntu 12.10
 # Author : lahtis
 # Licence : GPLv3
-# Installer for Pro pilkki 2 v1.0.3
-# PlayOnLinux: 4.1.9, 4.2.1
+# Installer for Pro pilkki 2 v1.0.6
+# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9
 
 # CHANGELOG
 # [SuperPlumus] (2013-07-24 09-37)
@@ -44,13 +44,13 @@
 POL_SetupWindow_VMS $GAME_VMS
 
 cd "$POL_System_TmpDir"
-POL_Download "http://www.kalassa.net/propilkki2/download/PP2_download.php?id=0" "293f9e4e4ba0905f7f9526042510c2d1"
+POL_Download "http://www.kalassa.net/propilkki2/download/PP2_download.php?id=0"
 
 # Move file to correct filename
-mv "PP2_download.php?id=0" "P2Installer_v1.0.3.exe"
+mv "PP2_download.php?id=0" "P2Installer_v1.0.6.exe"
 
 POL_Wine_WaitBefore "$TITLE"
-POL_Wine "$POL_System_TmpDir/P2Installer_v1.0.3.exe"
+POL_Wine "$POL_System_TmpDir/P2Installer_v1.0.6.exe"
 POL_Wine_WaitExit "$TITLE"
 
 POL_System_TmpDelete

New source code

#!/bin/bash
# Date : (2013-02-26 ??-??)
# Last revision : (2015-10-21 05-13)
# Distribution used to test : Ubuntu 12.10
# Author : lahtis
# Licence : GPLv3
# Installer for Pro pilkki 2 v1.0.6
# PlayOnLinux: 4.1.9, 4.2.1, 4.2.9

# CHANGELOG
# [SuperPlumus] (2013-07-24 09-37)
#   Update gettext messages
#   Clean code
#   Fix $PLAYONLINUX check presence

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Pro Pilkki 2"
PREFIX="ProPilkki2"
WORKING_WINE_VERSION="1.5.28"
EDITOR="Team Procyon"
GAME_URL="http://www.kalassa.net/propilkki2/index.php?eng=1"
AUTHOR="lahtis"
GAME_VMS="512"


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"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

# Fix pulseaudio issue
which pulseaudio && Set_OS "winxp"

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

cd "$POL_System_TmpDir"
POL_Download "http://www.kalassa.net/propilkki2/download/PP2_download.php?id=0"

# Move file to correct filename
mv "PP2_download.php?id=0" "P2Installer_v1.0.6.exe"

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$POL_System_TmpDir/P2Installer_v1.0.6.exe"
POL_Wine_WaitExit "$TITLE"

POL_System_TmpDelete

POL_Shortcut 'ProPilkki2.exe' "$TITLE"

POL_SetupWindow_Close

exit 0

Replies

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