Pharaon

Informations

Creator Message
Toumeno

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 29325
Wine: 3.0.3

Feedbacks

Description

Isometric city-building game, 1999. Wikipedia.

Appdb.winehq.org

Screenshots

Miniature

Source code

# CHANGELOG
# [Toumeno] (2012 ?)
#   First script.
# [Dadu042] (2019-10-30)
#   Wine 1.1.29 -> 2.22
# [Dadu042] (2020-02-05)
#   Fix (outdated) function: POL_SetupWindow_make_shortcut -> POL_Shortcut
#   Update other functions (to POL v4).
#   Wine 2.22 -> 3.0.3

[ "$PLAYONLINUX" = "" ] && exit 0 
  
source "$PLAYONLINUX/lib/sources"
  
if [ "$POL_LANG" == "fr" ]
then
LNG_NAME="Pharaon"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaon/"
else
LNG_NAME="Pharaoh"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaoh/"
fi
  
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/4/46/Pharaoh_Coverart.png --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
  
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
  
# Presentation
POL_SetupWindow_presentation "$LNG_NAME" "Sierra" "http://pharaoh.heavengames.com/" "Toumeno" "Pharaoh"
 
# Detect the cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
# Prepare Wine
POL_Wine_SelectPrefix "Pharaoh"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "3.0.3"
  
# fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
  
# Setup Wine
Set_OS win98
Set_SoundDriver alsa
Set_Desktop On 1024 768
  
# Installation
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit 
  
POL_Shortcut "Pharaoh.exe" "$LNG_NAME" "" "" "Game;"
POL_Shortcut_Document "$LNG_NAME" "readme.txt"

  
# Create Icon
convert "$CDROM/pharaoh.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$LNG_NAME"
 
POL_SetupWindow_message "Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum).\n\n\nDuring a game, don't forget to click on Options=>Display, and set\nthe resolution on 1024x768 (maximum)."
 
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Dadu042 Wednesday 5 February 2020 at 21:14
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,17 +1,17 @@
-#!/bin/bash
-
 # CHANGELOG
-# [?] (2019-10-28)
+# [Toumeno] (2012 ?)
 #   First script.
 # [Dadu042] (2019-10-30)
 #   Wine 1.1.29 -> 2.22
+# [Dadu042] (2020-02-05)
+#   Fix (outdated) function: POL_SetupWindow_make_shortcut -> POL_Shortcut
+#   Update other functions (to POL v4).
+#   Wine 2.22 -> 3.0.3
 
-#Vérifier que PlayOnLinux est bien exécuté avant
 [ "$PLAYONLINUX" = "" ] && exit 0 
- 
-#Charger les librairies
+  
 source "$PLAYONLINUX/lib/sources"
- 
+  
 if [ "$POL_LANG" == "fr" ]
 then
 LNG_NAME="Pharaon"
@@ -20,49 +20,47 @@
 LNG_NAME="Pharaoh"
 LNG_FILE="$PROGRAMFILES/SIERRA/Pharaoh/"
 fi
- 
+  
 cd "$REPERTOIRE/tmp"
 rm *.jpg
 wget http://upload.wikimedia.org/wikipedia/en/4/46/Pharaoh_Coverart.png --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
 convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
- 
+  
 POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
- 
-#Presentation
+  
+# Presentation
 POL_SetupWindow_presentation "$LNG_NAME" "Sierra" "http://pharaoh.heavengames.com/" "Toumeno" "Pharaoh"
-
-#Détection du cd-rom
+ 
+# Detect the cd-rom
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "setup.exe"
-
-#Wine Installation
-POL_SetupWindow_install_wine "2.22"
-
-#Préparation de Wine
-select_prefix "$REPERTOIRE/wineprefix/Pharaoh"
-#POL_SetupWindow_prefixcreate
  
-#fetching PROGRAMFILES environmental variable
+# Prepare Wine
+POL_Wine_SelectPrefix "Pharaoh"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "3.0.3"
+  
+# fetching PROGRAMFILES environmental variable
 PROGRAMFILES="Program Files"
 POL_LoadVar_PROGRAMFILES
- 
-#Configuration de Wine
+  
+# Setup Wine
 Set_OS win98
 Set_SoundDriver alsa
 Set_Desktop On 1024 768
- 
-#Installation
+  
+# Installation
 wine "$CDROM/setup.exe"
 POL_SetupWindow_detect_exit 
- 
-POL_SetupWindow_make_shortcut "Pharaoh" "$LNG_FILE" "Pharaoh.exe" "" "$LNG_NAME"
- 
-#Creation Icone
-convert "$CDROM/pharaoh.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$LNG_NAME"
+  
+POL_Shortcut "Pharaoh.exe" "$LNG_NAME" "" "" "Game;"
+POL_Shortcut_Document "$LNG_NAME" "readme.txt"
 
+  
+# Create Icon
+convert "$CDROM/pharaoh.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$LNG_NAME"
+ 
 POL_SetupWindow_message "Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum).\n\n\nDuring a game, don't forget to click on Options=>Display, and set\nthe resolution on 1024x768 (maximum)."
-
-Set_WineVersion_Assign "2.22" "$LNG_NAME"
-
+ 
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

# CHANGELOG
# [Toumeno] (2012 ?)
#   First script.
# [Dadu042] (2019-10-30)
#   Wine 1.1.29 -> 2.22
# [Dadu042] (2020-02-05)
#   Fix (outdated) function: POL_SetupWindow_make_shortcut -> POL_Shortcut
#   Update other functions (to POL v4).
#   Wine 2.22 -> 3.0.3

[ "$PLAYONLINUX" = "" ] && exit 0 
  
source "$PLAYONLINUX/lib/sources"
  
if [ "$POL_LANG" == "fr" ]
then
LNG_NAME="Pharaon"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaon/"
else
LNG_NAME="Pharaoh"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaoh/"
fi
  
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/4/46/Pharaoh_Coverart.png --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
  
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
  
# Presentation
POL_SetupWindow_presentation "$LNG_NAME" "Sierra" "http://pharaoh.heavengames.com/" "Toumeno" "Pharaoh"
 
# Detect the cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
# Prepare Wine
POL_Wine_SelectPrefix "Pharaoh"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "3.0.3"
  
# fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
  
# Setup Wine
Set_OS win98
Set_SoundDriver alsa
Set_Desktop On 1024 768
  
# Installation
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit 
  
POL_Shortcut "Pharaoh.exe" "$LNG_NAME" "" "" "Game;"
POL_Shortcut_Document "$LNG_NAME" "readme.txt"

  
# Create Icon
convert "$CDROM/pharaoh.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$LNG_NAME"
 
POL_SetupWindow_message "Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum).\n\n\nDuring a game, don't forget to click on Options=>Display, and set\nthe resolution on 1024x768 (maximum)."
 
POL_SetupWindow_Close
exit

Replies

Dadu042 Wednesday 30 October 2019 at 18:31
Dadu042

Warning

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

Differences

@@ -1,5 +1,11 @@
 #!/bin/bash
- 
+
+# CHANGELOG
+# [?] (2019-10-28)
+#   First script.
+# [Dadu042] (2019-10-30)
+#   Wine 1.1.29 -> 2.22
+
 #Vérifier que PlayOnLinux est bien exécuté avant
 [ "$PLAYONLINUX" = "" ] && exit 0 
  
@@ -30,7 +36,7 @@
 POL_SetupWindow_check_cdrom "setup.exe"
 
 #Wine Installation
-POL_SetupWindow_install_wine "1.1.29"
+POL_SetupWindow_install_wine "2.22"
 
 #Préparation de Wine
 select_prefix "$REPERTOIRE/wineprefix/Pharaoh"
@@ -56,7 +62,7 @@
 
 POL_SetupWindow_message "Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum).\n\n\nDuring a game, don't forget to click on Options=>Display, and set\nthe resolution on 1024x768 (maximum)."
 
-Set_WineVersion_Assign "1.1.29" "$LNG_NAME"
+Set_WineVersion_Assign "2.22" "$LNG_NAME"
 
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash

# CHANGELOG
# [?] (2019-10-28)
#   First script.
# [Dadu042] (2019-10-30)
#   Wine 1.1.29 -> 2.22

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
if [ "$POL_LANG" == "fr" ]
then
LNG_NAME="Pharaon"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaon/"
else
LNG_NAME="Pharaoh"
LNG_FILE="$PROGRAMFILES/SIERRA/Pharaoh/"
fi
 
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/4/46/Pharaoh_Coverart.png --output-document="$REPERTOIRE/tmp/$Prefix.jpg"
convert "$REPERTOIRE/tmp/$Prefix.jpg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpg"
 
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
#Presentation
POL_SetupWindow_presentation "$LNG_NAME" "Sierra" "http://pharaoh.heavengames.com/" "Toumeno" "Pharaoh"

#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

#Wine Installation
POL_SetupWindow_install_wine "2.22"

#Préparation de Wine
select_prefix "$REPERTOIRE/wineprefix/Pharaoh"
#POL_SetupWindow_prefixcreate
 
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
 
#Configuration de Wine
Set_OS win98
Set_SoundDriver alsa
Set_Desktop On 1024 768
 
#Installation
wine "$CDROM/setup.exe"
POL_SetupWindow_detect_exit 
 
POL_SetupWindow_make_shortcut "Pharaoh" "$LNG_FILE" "Pharaoh.exe" "" "$LNG_NAME"
 
#Creation Icone
convert "$CDROM/pharaoh.ico" -geometry 32x32 "$REPERTOIRE/icones/32/$LNG_NAME"

POL_SetupWindow_message "Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum).\n\n\nDuring a game, don't forget to click on Options=>Display, and set\nthe resolution on 1024x768 (maximum)."

Set_WineVersion_Assign "2.22" "$LNG_NAME"

POL_SetupWindow_Close
exit

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