Emperor: Rise of the Middle Kingdom

Informations

Creator Message
Toumeno

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 14600
Wine: System

Feedbacks

Description

City Building game, 2002. Website.

Source code

#!/bin/bash

# CHANGELOG
# [Toumeno] (2009 ?)
#   First script.
# [Dadu042] (2019-12-31)
#  Wine 1.1.0 -> 2.22
#  Updates.

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

if [ "$POL_LANG" == "fr" ]
then
LNG_NAME="Empereur : L'Empire du Milieu"
LNG_FOLDER="Sierra/Empereur/"
LNG_WAIT="Installation en cours..."
LNG_SETTINGS="Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum)."
else
LNG_NAME="Emperor : Rise of the Middle Kingdom"
LNG_FOLDER="Sierra/Emperor/"
LNG_WAIT="Installing..."
LNG_SETTINGS="During a game, don't forget to click on Options=>Display,\nand set the resolution on 1024x768 (maximum)."

fi

wget http://upload.wikimedia.org/wikipedia/en/thumb/3/32/EmperorBoxshot.jpg/250px-EmperorBoxshot.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "$LNG_NAME" "Sierra" "http://emperor.sierra.com/" "Toumeno" "Emperor"

#Préparation de Wine

mkdir -p $REPERTOIRE/wineprefix/Emperor

# Setting prefix path
POL_Wine_SelectPrefix "Emperor"
          
# Determine Architecture
# POL_System_SetArch "amd64"
POL_System_SetArch "x86"
     
# Downloading wine if necessary and creating prefix
POL_Wine_PrefixCreate


Set_OS "winxp"

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

# Lancement de l'installeur

cd "$CDROM"
POL_SetupWindow_wait_next_signal "$LNG_WAIT" ""
wine Setup.exe
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "Emperor" "$LNG_FOLDER" "Emperor.exe" "emperor.xpm" "Game;"

# Fin du code du jeu

POL_SetupWindow_reboot

POL_SetupWindow_message "$LNG_SETTINGS"

POL_SetupWindow_Close
exit 

Contributions

Filters:

Contribute
Member Message
Dadu042 Tuesday 31 December 2019 at 11:36
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,19 +1,17 @@
 #!/bin/bash
-#Vérifier que PlayOnLinux est bien exécuté avant
-if [ "$PLAYONLINUX" = "" ]
-then
-exit 0
-fi
-#Charger les librairies
-source "$PLAYONLINUX/lib/sources"
 
-#Verifier les dépendences
-cfg_check
+# CHANGELOG
+# [Toumeno] (2009 ?)
+#   First script.
+# [Dadu042] (2019-12-31)
+#  Wine 1.1.0 -> 2.22
+#  Updates.
 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
 
 if [ "$POL_LANG" == "fr" ]
 then
-
 LNG_NAME="Empereur : L'Empire du Milieu"
 LNG_FOLDER="Sierra/Empereur/"
 LNG_WAIT="Installation en cours..."
@@ -35,31 +33,38 @@
 #Préparation de Wine
 
 mkdir -p $REPERTOIRE/wineprefix/Emperor
-select_prefixe "$REPERTOIRE/wineprefix/Emperor"
-POL_SetupWindow_prefixcreate
-Set_OS winxp
+
+# Setting prefix path
+POL_Wine_SelectPrefix "Emperor"
+          
+# Determine Architecture
+# POL_System_SetArch "amd64"
+POL_System_SetArch "x86"
+     
+# Downloading wine if necessary and creating prefix
+POL_Wine_PrefixCreate
+
+
+Set_OS "winxp"
 
 #Détection du cd-rom
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "Setup.exe"
-Set_WineVersion_Session 1.1.0
 
-#Lancement de l'installeur
+# Lancement de l'installeur
 
 cd "$CDROM"
 POL_SetupWindow_wait_next_signal "$LNG_WAIT" ""
 wine Setup.exe
 POL_SetupWindow_detect_exit
 
-POL_SetupWindow_make_shortcut "Emperor" "$LNG_FOLDER" "Emperor.exe" "emperor.xpm" "$LNG_NAME"
-Set_WineVersion_Assign "1.1.0" "$LNG_NAME" 
+POL_SetupWindow_make_shortcut "Emperor" "$LNG_FOLDER" "Emperor.exe" "emperor.xpm" "Game;"
 
-#Fin du code du jeu
+# Fin du code du jeu
 
 POL_SetupWindow_reboot
 
 POL_SetupWindow_message "$LNG_SETTINGS"
 
 POL_SetupWindow_Close
-
 exit 
\ No newline at end of file

New source code

#!/bin/bash

# CHANGELOG
# [Toumeno] (2009 ?)
#   First script.
# [Dadu042] (2019-12-31)
#  Wine 1.1.0 -> 2.22
#  Updates.

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

if [ "$POL_LANG" == "fr" ]
then
LNG_NAME="Empereur : L'Empire du Milieu"
LNG_FOLDER="Sierra/Empereur/"
LNG_WAIT="Installation en cours..."
LNG_SETTINGS="Au cours d'une partie, n'oubliez pas de cliquer sur Options=>Affichage,\net de régler la résolution à 1024x768 (maximum)."
else
LNG_NAME="Emperor : Rise of the Middle Kingdom"
LNG_FOLDER="Sierra/Emperor/"
LNG_WAIT="Installing..."
LNG_SETTINGS="During a game, don't forget to click on Options=>Display,\nand set the resolution on 1024x768 (maximum)."

fi

wget http://upload.wikimedia.org/wikipedia/en/thumb/3/32/EmperorBoxshot.jpg/250px-EmperorBoxshot.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"

POL_SetupWindow_presentation "$LNG_NAME" "Sierra" "http://emperor.sierra.com/" "Toumeno" "Emperor"

#Préparation de Wine

mkdir -p $REPERTOIRE/wineprefix/Emperor

# Setting prefix path
POL_Wine_SelectPrefix "Emperor"
          
# Determine Architecture
# POL_System_SetArch "amd64"
POL_System_SetArch "x86"
     
# Downloading wine if necessary and creating prefix
POL_Wine_PrefixCreate


Set_OS "winxp"

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

# Lancement de l'installeur

cd "$CDROM"
POL_SetupWindow_wait_next_signal "$LNG_WAIT" ""
wine Setup.exe
POL_SetupWindow_detect_exit

POL_SetupWindow_make_shortcut "Emperor" "$LNG_FOLDER" "Emperor.exe" "emperor.xpm" "Game;"

# Fin du code du jeu

POL_SetupWindow_reboot

POL_SetupWindow_message "$LNG_SETTINGS"

POL_SetupWindow_Close
exit 

Replies

xlours Tuesday 2 January 2018 at 14:24
xlours Anonymous

Message

Bonjour,

une simple installation (Installer un programme non listé) en choisissant le wine 2.20 (sur mon UBUNTU 16.04, 32bit), windows XP et POL_Install_d3dx9 m'a permis de jouer sans problème.

cordialement

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