SimCity 4

Informations

Creator Message
Toumeno

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 59341
Wine: System

Feedbacks

Description

This script is very old ( < 2010). Update needed.

Source code

#!/bin/bash
 
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
 
source "$PLAYONLINUX/lib/sources"
 
wget http://upload.wikimedia.org/wikipedia/en/thumb/0/09/Sc4box.jpg/250px-Sc4box.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"
 
#Check dependencies

cfg_check
 
#Presentation

POL_SetupWindow_presentation "SimCity 4" "EA Games - Maxis" "http://www.electronicarts.com" "Toumeno" "SimCity4"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_SC4PATCH_DL="Téléchargement de la mise à jour..."
LNG_SC4_WHERE="Où avez-vous acheté votre jeu SimCity 4 ?"
LNG_SC4_WAIT="Patientez pendant la préparation de l'installation"
LNG_SC4_CD2="Veuillez insérer le CD2 et cliquer sur Suivant"
LNG_SC4_REMCD2="Veuillez enlever le CD2 et cliquer sur Suivant"
LNG_SC4_CHANGE="Quand l'installateur vous demandera le CD2, cliquez sur Suivant dans cette fenêtre"
LNG_SC4_CONTINUE="Continuez l'installation s'il vous plait en cliquant sur Ok dans l'installateur\nCliquez sur suivant dans cette fenêtre UNIQUEMENT quand\nl'installation sera terminée"
LNG_SC4_CRACK="Vous aurez besoin d'un crack no cd pour lancer SimCity 4.\nVous devez posséder le jeu original.\nPlayOnLinux ne vous fournira aucune aide pour les cracks no cd.\nPlayOnLinux n'est pas reponsable de l'utilisation que vous faites du logiciel."
LNG_SC4_CD1="Veuillez insérer le CD 1 et cliquer sur Suivant"
LNG_SC4_RUN="Si le jeu ne se lance pas correctement, appuyez sur Echap."
LNG_SC4_FIN="Installation terminée"
 
else
 
LNG_SC4PATCH_DL="Downloading the update..."
LNG_SC4_WHERE="Where did you buy your SimCity 4 game?"
LNG_SC4_WAIT="Please wait during the installation's preparation"
LNG_SC4_CD2="Please insert the CD2 and click on Next"
LNG_SC4_REMCD2="Please remove the CD2 and click on Next"
LNG_SC4_CHANGE="When the installer will ask you for the CD2, click on Next (in this window)"
LNG_SC4_CONTINUE="Please continue the installation by clicking Ok in the installer\nClick on Next in this window ONLY if the install is finished"
LNG_SC4_CRACK="You will need a no cd crack to run SimCity 4.\nYou must own the original game.\nPlayOnLinux will not give you any help about no cd cracks.\nPlayOnLinux is not responsible of the use of the software."
LNG_SC4_CD1="Please insert the CD 1 and click on Next"
LNG_SC4_RUN="If the game does not run correctly, press Esc (Echap)."
LNG_SC4_FIN="Installation Finished"
 
fi
 
#Wine preparation

mkdir -p "$REPERTOIRE/wineprefix/SimCity4"
cd "$REPERTOIRE/wineprefix/SimCity4"
select_prefixe "$(pwd)"
POL_SetupWindow_prefixcreate
 
POL_SetupWindow_message "$LNG_SC4_CD1"
 
#CD-ROM detection

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
# Wine settings

Set_OS "win2k"
Set_SoundDriver alsa
Set_GLSL Off
Set_WineVersion_Session 0.9.44
 
# Game installation
 
# Create Windows drives
cd "$REPERTOIRE/wineprefix/SimCity4/dosdevices"
rm ./*
ln -s "$REPERTOIRE/wineprefix/SimCity4/drive_c" "c:"
ln -s "$CDROM" "d:"
ln -s "/" "z:"
 
mkdir "$REPERTOIRE/wineprefix/SimCity4/temp"
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
mkdir sc4setup
 
POL_SetupWindow_wait_next_signal "$LNG_SC4_WAIT" "SimCity 4"
cp -vR $CDROM/* ./sc4setup/
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_SC4_CD2"
 
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
mkdir sc4setup2
POL_SetupWindow_wait_next_signal "$LNG_SC4_WAIT" "SimCity 4"
cp -vR $CDROM/* ./sc4setup2/
chmod -R 777 "$REPERTOIRE/wineprefix/SimCity4/temp"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_SC4_REMCD2"

POL_SetupWindow_message "$LNG_SC4_CD1"
 
cd sc4setup
 
wine setup.exe
POL_SetupWindow_message "$LNG_SC4_CHANGE"
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
mv sc4setup sc4setup1
mv sc4setup2 sc4setup
POL_SetupWindow_message "$LNG_SC4_CONTINUE"
 
#Fixed Graphics Rules issue
 
cd "$REPERTOIRE/wineprefix/SimCity4/drive_c/Program Files/Maxis/SimCity 4"
cp "Graphics Rules.sgr" "Graphics Rules.backup"
 
### Download and update installation ###
 
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
 
POL_SetupWindow_menu "$LNG_SC4_WHERE" "" "Europe/South and Central America/Africa/Russia/Mexico~North America/South Africa/India/Pakistan/Australia/New Zealand~Korea/Thailand/Tawain/Hong Kong~China~Japan" "~"
COUNTRY="$APP_ANSWER"
if [ "$COUNTRY" == "Europe/South and Central America/Africa/Russia/Mexico" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU2-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU2-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
fi
 
if [ "$COUNTRY" == "North America/South Africa/India/Pakistan/Australia/New Zealand" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU1-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU1-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
if [ "$COUNTRY" == "Korea/Thailand/Tawain/Hong Kong" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU3-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU3-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
if [ "$COUNTRY" == "China" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU4-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU4-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
if [ "$COUNTRY" == "Japan" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU5-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU5-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
### END of download and update installation ###
 
cd "$REPERTOIRE/wineprefix/SimCity 4/drive_c/Program Files/Maxis/SimCity 4"
cp "Graphics Rules.sgr" "Graphics Rules.new"
cp "Graphics Rules.backup" "Graphics Rules.sgr"
 
#End of the game code

#Launcher creation
 
POL_SetupWindow_make_shortcut "SimCity4" "Program Files/Maxis/SimCity 4/Apps/" "SimCity 4.exe" "simcity4.xpm" "SimCity 4" "" "-d:software"
Set_WineVersion_Assign "1.1.0" "SimCity 4"
Set_Desktop Off
 
POL_SetupWindow_reboot
rm -rf "$REPERTOIRE/wineprefix/SimCity4/temp"
POL_SetupWindow_message "$LNG_SC4_FIN"

POL_SetupWindow_message "$LNG_SC4_CRACK"
POL_SetupWindow_message "$LNG_SC4_RUN"
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
paxile2k Wednesday 22 July 2020 at 23:30
paxile2k Anonymous

Information

This update has been approved by the team.

Differences

@@ -1,23 +1,24 @@
 #!/bin/bash
-
+ 
 if [ "$PLAYONLINUX" = "" ]
 then
 exit 0
 fi
-
+ 
 source "$PLAYONLINUX/lib/sources"
-
+ 
 wget http://upload.wikimedia.org/wikipedia/en/thumb/0/09/Sc4box.jpg/250px-Sc4box.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"
+ 
+#Check dependencies
 
-#Verifier les dépendences
 cfg_check
-
+ 
 #Presentation
-POL_SetupWindow_presentation "SimCity 4" "EA Games - Maxis" "http://www.electronicarts.com" "Toumeno" "SimCity4"
-
 
+POL_SetupWindow_presentation "SimCity 4" "EA Games - Maxis" "http://www.electronicarts.com" "Toumeno" "SimCity4"
+ 
 if [ "$POL_LANG" == "fr" ]; then
 LNG_SC4PATCH_DL="Téléchargement de la mise à jour..."
 LNG_SC4_WHERE="Où avez-vous acheté votre jeu SimCity 4 ?"
@@ -29,9 +30,10 @@
 LNG_SC4_CRACK="Vous aurez besoin d'un crack no cd pour lancer SimCity 4.\nVous devez posséder le jeu original.\nPlayOnLinux ne vous fournira aucune aide pour les cracks no cd.\nPlayOnLinux n'est pas reponsable de l'utilisation que vous faites du logiciel."
 LNG_SC4_CD1="Veuillez insérer le CD 1 et cliquer sur Suivant"
 LNG_SC4_RUN="Si le jeu ne se lance pas correctement, appuyez sur Echap."
-
+LNG_SC4_FIN="Installation terminée"
+ 
 else
-
+ 
 LNG_SC4PATCH_DL="Downloading the update..."
 LNG_SC4_WHERE="Where did you buy your SimCity 4 game?"
 LNG_SC4_WAIT="Please wait during the installation's preparation"
@@ -42,48 +44,49 @@
 LNG_SC4_CRACK="You will need a no cd crack to run SimCity 4.\nYou must own the original game.\nPlayOnLinux will not give you any help about no cd cracks.\nPlayOnLinux is not responsible of the use of the software."
 LNG_SC4_CD1="Please insert the CD 1 and click on Next"
 LNG_SC4_RUN="If the game does not run correctly, press Esc (Echap)."
-
+LNG_SC4_FIN="Installation Finished"
+ 
 fi
+ 
+#Wine preparation
 
-#Préparation de Wine
 mkdir -p "$REPERTOIRE/wineprefix/SimCity4"
 cd "$REPERTOIRE/wineprefix/SimCity4"
 select_prefixe "$(pwd)"
 POL_SetupWindow_prefixcreate
-
+ 
 POL_SetupWindow_message "$LNG_SC4_CD1"
+ 
+#CD-ROM detection
 
-#Détection du cd-rom
 POL_SetupWindow_cdrom
 POL_SetupWindow_check_cdrom "setup.exe"
+ 
+# Wine settings
 
-# Réglages de Wine
 Set_OS "win2k"
-Set_Desktop On 1024 768
 Set_SoundDriver alsa
 Set_GLSL Off
 Set_WineVersion_Session 0.9.44
-
-# Installation du jeu
-
-# Créer les lecteurs Windows
+ 
+# Game installation
+ 
+# Create Windows drives
 cd "$REPERTOIRE/wineprefix/SimCity4/dosdevices"
 rm ./*
 ln -s "$REPERTOIRE/wineprefix/SimCity4/drive_c" "c:"
 ln -s "$CDROM" "d:"
 ln -s "/" "z:"
-
-
+ 
 mkdir "$REPERTOIRE/wineprefix/SimCity4/temp"
 cd "$REPERTOIRE/wineprefix/SimCity4/temp"
 mkdir sc4setup
-
-
+ 
 POL_SetupWindow_wait_next_signal "$LNG_SC4_WAIT" "SimCity 4"
 cp -vR $CDROM/* ./sc4setup/
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "$LNG_SC4_CD2"
-
+ 
 cd "$REPERTOIRE/wineprefix/SimCity4/temp"
 mkdir sc4setup2
 POL_SetupWindow_wait_next_signal "$LNG_SC4_WAIT" "SimCity 4"
@@ -92,105 +95,100 @@
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "$LNG_SC4_REMCD2"
 
+POL_SetupWindow_message "$LNG_SC4_CD1"
+ 
 cd sc4setup
-
+ 
 wine setup.exe
 POL_SetupWindow_message "$LNG_SC4_CHANGE"
 cd "$REPERTOIRE/wineprefix/SimCity4/temp"
 mv sc4setup sc4setup1
 mv sc4setup2 sc4setup
 POL_SetupWindow_message "$LNG_SC4_CONTINUE"
-
-#Réglage du problème Graphics Rules
-
+ 
+#Fixed Graphics Rules issue
+ 
 cd "$REPERTOIRE/wineprefix/SimCity4/drive_c/Program Files/Maxis/SimCity 4"
 cp "Graphics Rules.sgr" "Graphics Rules.backup"
-
-### Téléchargement et installation mise à jour ###
-
-
+ 
+### Download and update installation ###
+ 
 cd "$REPERTOIRE/wineprefix/SimCity4/temp"
-
-
+ 
 POL_SetupWindow_menu "$LNG_SC4_WHERE" "" "Europe/South and Central America/Africa/Russia/Mexico~North America/South Africa/India/Pakistan/Australia/New Zealand~Korea/Thailand/Tawain/Hong Kong~China~Japan" "~"
 COUNTRY="$APP_ANSWER"
 if [ "$COUNTRY" == "Europe/South and Central America/Africa/Russia/Mexico" ]
 then
-
+ 
 POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU2-TO-P2.EXE"
 POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
 wine UPDATE-SKU2-TO-P2.EXE
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "SimCity 4 updated."
 fi
-
+ 
 if [ "$COUNTRY" == "North America/South Africa/India/Pakistan/Australia/New Zealand" ]
 then
-
+ 
 POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU1-TO-P2.EXE"
 POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
 wine UPDATE-SKU1-TO-P2.EXE
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "SimCity 4 updated."
-
+ 
 fi
-
+ 
 if [ "$COUNTRY" == "Korea/Thailand/Tawain/Hong Kong" ]
 then
-
+ 
 POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU3-TO-P2.EXE"
 POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
 wine UPDATE-SKU3-TO-P2.EXE
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "SimCity 4 updated."
-
+ 
 fi
-
+ 
 if [ "$COUNTRY" == "China" ]
 then
-
+ 
 POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU4-TO-P2.EXE"
 POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
 wine UPDATE-SKU4-TO-P2.EXE
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "SimCity 4 updated."
-
+ 
 fi
-
+ 
 if [ "$COUNTRY" == "Japan" ]
 then
-
+ 
 POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU5-TO-P2.EXE"
 POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
 wine UPDATE-SKU5-TO-P2.EXE
 POL_SetupWindow_detect_exit
 POL_SetupWindow_message "SimCity 4 updated."
-
+ 
 fi
-
-### FIN de téléchargement et installation mise à jour ###
-
-
-
-
+ 
+### END of download and update installation ###
+ 
 cd "$REPERTOIRE/wineprefix/SimCity 4/drive_c/Program Files/Maxis/SimCity 4"
 cp "Graphics Rules.sgr" "Graphics Rules.new"
 cp "Graphics Rules.backup" "Graphics Rules.sgr"
+ 
+#End of the game code
 
-
-
-#Fin du code du jeu
-#Création du lanceur
-
+#Launcher creation
+ 
 POL_SetupWindow_make_shortcut "SimCity4" "Program Files/Maxis/SimCity 4/Apps/" "SimCity 4.exe" "simcity4.xpm" "SimCity 4" "" "-d:software"
 Set_WineVersion_Assign "1.1.0" "SimCity 4"
 Set_Desktop Off
-
+ 
 POL_SetupWindow_reboot
 rm -rf "$REPERTOIRE/wineprefix/SimCity4/temp"
-POL_SetupWindow_message "Installation terminée
+POL_SetupWindow_message "$LNG_SC4_FIN"
 
-Install finished"
 POL_SetupWindow_message "$LNG_SC4_CRACK"
 POL_SetupWindow_message "$LNG_SC4_RUN"
 POL_SetupWindow_Close

New source code

#!/bin/bash
 
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
 
source "$PLAYONLINUX/lib/sources"
 
wget http://upload.wikimedia.org/wikipedia/en/thumb/0/09/Sc4box.jpg/250px-Sc4box.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"
 
#Check dependencies

cfg_check
 
#Presentation

POL_SetupWindow_presentation "SimCity 4" "EA Games - Maxis" "http://www.electronicarts.com" "Toumeno" "SimCity4"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_SC4PATCH_DL="Téléchargement de la mise à jour..."
LNG_SC4_WHERE="Où avez-vous acheté votre jeu SimCity 4 ?"
LNG_SC4_WAIT="Patientez pendant la préparation de l'installation"
LNG_SC4_CD2="Veuillez insérer le CD2 et cliquer sur Suivant"
LNG_SC4_REMCD2="Veuillez enlever le CD2 et cliquer sur Suivant"
LNG_SC4_CHANGE="Quand l'installateur vous demandera le CD2, cliquez sur Suivant dans cette fenêtre"
LNG_SC4_CONTINUE="Continuez l'installation s'il vous plait en cliquant sur Ok dans l'installateur\nCliquez sur suivant dans cette fenêtre UNIQUEMENT quand\nl'installation sera terminée"
LNG_SC4_CRACK="Vous aurez besoin d'un crack no cd pour lancer SimCity 4.\nVous devez posséder le jeu original.\nPlayOnLinux ne vous fournira aucune aide pour les cracks no cd.\nPlayOnLinux n'est pas reponsable de l'utilisation que vous faites du logiciel."
LNG_SC4_CD1="Veuillez insérer le CD 1 et cliquer sur Suivant"
LNG_SC4_RUN="Si le jeu ne se lance pas correctement, appuyez sur Echap."
LNG_SC4_FIN="Installation terminée"
 
else
 
LNG_SC4PATCH_DL="Downloading the update..."
LNG_SC4_WHERE="Where did you buy your SimCity 4 game?"
LNG_SC4_WAIT="Please wait during the installation's preparation"
LNG_SC4_CD2="Please insert the CD2 and click on Next"
LNG_SC4_REMCD2="Please remove the CD2 and click on Next"
LNG_SC4_CHANGE="When the installer will ask you for the CD2, click on Next (in this window)"
LNG_SC4_CONTINUE="Please continue the installation by clicking Ok in the installer\nClick on Next in this window ONLY if the install is finished"
LNG_SC4_CRACK="You will need a no cd crack to run SimCity 4.\nYou must own the original game.\nPlayOnLinux will not give you any help about no cd cracks.\nPlayOnLinux is not responsible of the use of the software."
LNG_SC4_CD1="Please insert the CD 1 and click on Next"
LNG_SC4_RUN="If the game does not run correctly, press Esc (Echap)."
LNG_SC4_FIN="Installation Finished"
 
fi
 
#Wine preparation

mkdir -p "$REPERTOIRE/wineprefix/SimCity4"
cd "$REPERTOIRE/wineprefix/SimCity4"
select_prefixe "$(pwd)"
POL_SetupWindow_prefixcreate
 
POL_SetupWindow_message "$LNG_SC4_CD1"
 
#CD-ROM detection

POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
# Wine settings

Set_OS "win2k"
Set_SoundDriver alsa
Set_GLSL Off
Set_WineVersion_Session 0.9.44
 
# Game installation
 
# Create Windows drives
cd "$REPERTOIRE/wineprefix/SimCity4/dosdevices"
rm ./*
ln -s "$REPERTOIRE/wineprefix/SimCity4/drive_c" "c:"
ln -s "$CDROM" "d:"
ln -s "/" "z:"
 
mkdir "$REPERTOIRE/wineprefix/SimCity4/temp"
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
mkdir sc4setup
 
POL_SetupWindow_wait_next_signal "$LNG_SC4_WAIT" "SimCity 4"
cp -vR $CDROM/* ./sc4setup/
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_SC4_CD2"
 
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
mkdir sc4setup2
POL_SetupWindow_wait_next_signal "$LNG_SC4_WAIT" "SimCity 4"
cp -vR $CDROM/* ./sc4setup2/
chmod -R 777 "$REPERTOIRE/wineprefix/SimCity4/temp"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_SC4_REMCD2"

POL_SetupWindow_message "$LNG_SC4_CD1"
 
cd sc4setup
 
wine setup.exe
POL_SetupWindow_message "$LNG_SC4_CHANGE"
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
mv sc4setup sc4setup1
mv sc4setup2 sc4setup
POL_SetupWindow_message "$LNG_SC4_CONTINUE"
 
#Fixed Graphics Rules issue
 
cd "$REPERTOIRE/wineprefix/SimCity4/drive_c/Program Files/Maxis/SimCity 4"
cp "Graphics Rules.sgr" "Graphics Rules.backup"
 
### Download and update installation ###
 
cd "$REPERTOIRE/wineprefix/SimCity4/temp"
 
POL_SetupWindow_menu "$LNG_SC4_WHERE" "" "Europe/South and Central America/Africa/Russia/Mexico~North America/South Africa/India/Pakistan/Australia/New Zealand~Korea/Thailand/Tawain/Hong Kong~China~Japan" "~"
COUNTRY="$APP_ANSWER"
if [ "$COUNTRY" == "Europe/South and Central America/Africa/Russia/Mexico" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU2-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU2-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
fi
 
if [ "$COUNTRY" == "North America/South Africa/India/Pakistan/Australia/New Zealand" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU1-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU1-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
if [ "$COUNTRY" == "Korea/Thailand/Tawain/Hong Kong" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU3-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU3-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
if [ "$COUNTRY" == "China" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU4-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU4-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
if [ "$COUNTRY" == "Japan" ]
then
 
POL_SetupWindow_download "$LNG_SC4PATCH_DL" "SimCity 4" "http://simcity.ea.com/update/exe/R1/UPDATE-SKU5-TO-P2.EXE"
POL_SetupWindow_wait_next_signal "Installing update" "SimCity 4"
wine UPDATE-SKU5-TO-P2.EXE
POL_SetupWindow_detect_exit
POL_SetupWindow_message "SimCity 4 updated."
 
fi
 
### END of download and update installation ###
 
cd "$REPERTOIRE/wineprefix/SimCity 4/drive_c/Program Files/Maxis/SimCity 4"
cp "Graphics Rules.sgr" "Graphics Rules.new"
cp "Graphics Rules.backup" "Graphics Rules.sgr"
 
#End of the game code

#Launcher creation
 
POL_SetupWindow_make_shortcut "SimCity4" "Program Files/Maxis/SimCity 4/Apps/" "SimCity 4.exe" "simcity4.xpm" "SimCity 4" "" "-d:software"
Set_WineVersion_Assign "1.1.0" "SimCity 4"
Set_Desktop Off
 
POL_SetupWindow_reboot
rm -rf "$REPERTOIRE/wineprefix/SimCity4/temp"
POL_SetupWindow_message "$LNG_SC4_FIN"

POL_SetupWindow_message "$LNG_SC4_CRACK"
POL_SetupWindow_message "$LNG_SC4_RUN"
POL_SetupWindow_Close
exit

Replies

Thursday 23 July 2020 at 10:25
Script approved.

Edited by paxile2k

paxile2k Wednesday 22 July 2020 at 21:35
paxile2k Anonymous

Message

The installer seems to hide the cd change prompt behind the installer window - no way to move it out of the way.  hitting enter just cancels the entire thing then you can see the CD 2 prompt but at that point the installation is cancelling

~UPDATE~
I may have found a solution

Open the PoL Configuration window from the main window (and have it side by side with the main window)

*Durring the install it will create the drive
*when the installation script prompts for CD1 click next

*then open the "Configure Wine" from the "Wine" Tab
*go to the Graphics tab and uncheck "Emulate a virtual desktop" then apply
*after removing CD2 per the prompts - reinsert CD1 and click next
*the install will proceed and will launch the game - exit out of the game then follow the remaining prompts
 

Replies

Edited by paxile2k

wargof Saturday 26 March 2016 at 18:35
wargof Anonymous

Message

Installateur qui veut à tout prix le cd .. Passez votre chemin ..

Replies

Anonymous
Saturday 10 February 2018 at 11:48
j'aimerai effectivement pouvoir finir l'installation mais je me heurte au même problème... y a t'il une solution ? si oui quelle est elle ? je suis possesseur bien évidemment de l'ensemble des 2 CD avec le boîtier et la clé ... je suis sous linux mint 18
Anonymous
Saturday 10 February 2018 at 11:57
juste pour vous dire merci par avance pour les informations que vous pourrez m'apporter ...
Saturday 10 February 2018 at 12:57
Cette installateur est extrêmement vieux. Si qqun se sent motiver de le mettre à jour, il est bienvenue :)
Anonymous
Saturday 10 February 2018 at 13:00
ce serait super parceque je n'ai plus windows et j'aimerai bien pouvoir y rejouer c'est un super jeu... et pour mes petits enfants aussi .... très gros merci par avance à qui voudra bien essayer de faire pour que je puisse avancer ...
Thursday 4 July 2019 at 21:17
J'aurais voulu aider, mais il faudrait une description plus claire du probleme. Et si possible un .log