SimCity 4 Deluxe

Informations

Creator Message
Ronin DUSETTE

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 75469
Wine: 2.22

Feedbacks

Description

From http://www.ea.com/simcity-4-deluxe

"In SimCity™ 4, you don’t just build your city; you breathe life into it. Sculpt mountains, dig riverbeds, and seed forests as you lay the groundwork for your creation. Then, use your god-like powers to construct the most realistic metropolis you can imagine."

Screenshots

MiniatureMiniature

Source code

#!/bin/bash
# Date : (2015-01-15 13-00)
# Last revision : see changelog
# Distribution used to test : Ubuntu 19.04 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.3.4

# Media used: 2 CD-Rom retail, august 2004 (folders date. But on CD #2 it's july 2008), pre patched ?.
# File Version: 1.1.613.0

# CHANGELOG
# [Dadu042] (2019-07-04)
#   - Some little improvements.
#   - Wine 1.7.34 -> 2.22.
#   - Add KNOWN ISSUES.

# KNOWN ISSUES:
# Wine 4.1, 4.8: when trying to launch the game it does not recognize the retail CD-ROM #1.
# Wine 4.8 + NoCD : "Could not initialize direct draw" (same with: force GDI, UseGLSL, dx3d9).

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
       
PREFIX="SimCity4Deluxe"
WINEVERSION="2.22"
TITLE="SimCity 4 Deluxe"
EDITOR="EA Games - Maxis"
GAME_URL="http://www.electronicarts.com"
AUTHOR="RoninDusette"

       
#Initialization
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

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_RequiredVersion 4.2.12 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Getting information for installation
POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file for $TITLE')" "$TITLE"
    SETUP_BY="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    SETUP_BY="STEAM"
fi
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"
POL_System_TmpCreate "$TITLE"

if [ "$INSTALL_METHOD" = "STEAM" ]; then
POL_SetupWindow_message "$(eval_gettext 'NOTICE: After Steam installs, uncheck "Run Steam" so that it does not start.')" "$TITLE"
fi
 
# Dependencies
if [ "$SETUP_BY" = "STEAM" ]; then
    POL_Call POL_Install_steam
fi
 
# Configuration
Set_Desktop "On" "1024" "768"
POL_Wine_Direct3D "UseGLSL" "disabled"
 
# Installation
if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Function_NoCDWarning
        Set_OS "win2k"

        #CD-ROM 1
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 1.')"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "SC4_ConnectToWebIcon.ico"
        cd "$WINEPREFIX/dosdevices"
        rm "d::"
        ln -s "$CDROM" "d:"
        cd "$CDROM"
        POL_Wine "$CDROM/setup.exe"
        POL_SetupWindow_message "$(eval_gettext 'When the game setup will ask for next disk, please come back to this window in order to click on "Next" before to insert it.')"
        #CD-ROM 2
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 2.\n\nIn the next window click 'Refresh' until you see it then select it.')"
        POL_SetupWindow_cdrom
        cd "$WINEPREFIX/dosdevices"
        rm "d:"
        ln -s "$CDROM" "d:"
        cd "$POL_System_TmpDir"

        POL_SetupWindow_message "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
        
        POL_Shortcut "SimCity 4.exe"
        POL_Shortcut_Document "$TITLE" "ReadMe.txt"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_Call POL_Function_NoCDWarning
    Set_OS "win2k"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
    POL_Shortcut "SimCity 4.exe"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    Set_OS "winxp"
    POL_SetupWindow_message "$(eval_gettext 'NOTICE: If you notice an error, but Steam and $TITLE are running, it can be ignored.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine "Steam.exe" -applaunch 24780
    POL_SetupWindow_message "$LNG_WAIT_STEAM_END" "$TITLE"
    POL_Shortcut "Steam.exe" "$TITLE"
fi

# Set Graphic Card informations keys for wine
POL_Call POL_Install_VideoDriver

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Thursday 4 July 2019 at 21:30
Dadu042

Information

This update has been approved by the team.

Message

See changelog. I own the retail DVDs.

Differences

@@ -1,58 +1,105 @@
 #!/bin/bash
 # Date : (2015-01-15 13-00)
-# Distribution used to test : Kubuntu 14.04 LTS 64-bit
+# Last revision : see changelog
+# Distribution used to test : Ubuntu 19.04 64-bit
 # Author : RoninDusette
 # Licence : GPLv3
-# PlayOnLinux: 4.2.5
+# PlayOnLinux: 4.3.4
 
+# Media used: 2 CD-Rom retail, august 2004 (folders date. But on CD #2 it's july 2008), pre patched ?.
+# File Version: 1.1.613.0
+
+# CHANGELOG
+# [Dadu042] (2019-07-04)
+#   - Some little improvements.
+#   - Wine 1.7.34 -> 2.22.
+#   - Add KNOWN ISSUES.
+
+# KNOWN ISSUES:
+# Wine 4.1, 4.8: when trying to launch the game it does not recognize the retail CD-ROM #1.
+# Wine 4.8 + NoCD : "Could not initialize direct draw" (same with: force GDI, UseGLSL, dx3d9).
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-      
+       
 PREFIX="SimCity4Deluxe"
-WINEVERSION="1.7.34"
+WINEVERSION="2.22"
 TITLE="SimCity 4 Deluxe"
 EDITOR="EA Games - Maxis"
 GAME_URL="http://www.electronicarts.com"
 AUTHOR="RoninDusette"
-      
+
+       
 #Initialization
 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
-      
+
 # Presentation
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
-# Getting information for installation
-POL_SetupWindow_InstallMethod "LOCAL,STEAM"
+POL_RequiredVersion 4.2.12 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."
 
+# Getting information for installation
+POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD"
+ 
 if [ "$INSTALL_METHOD" = "LOCAL" ]; then
     POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file for $TITLE')" "$TITLE"
     SETUP_BY="$APP_ANSWER"
 elif [ "$INSTALL_METHOD" = "STEAM" ]; then
     SETUP_BY="STEAM"
 fi
-
+ 
 # Create Prefix
 POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WINEVERSION"
+POL_System_TmpCreate "$TITLE"
 
+if [ "$INSTALL_METHOD" = "STEAM" ]; then
 POL_SetupWindow_message "$(eval_gettext 'NOTICE: After Steam installs, uncheck "Run Steam" so that it does not start.')" "$TITLE"
-
+fi
+ 
 # Dependencies
 if [ "$SETUP_BY" = "STEAM" ]; then
     POL_Call POL_Install_steam
 fi
-
+ 
 # Configuration
 Set_Desktop "On" "1024" "768"
 POL_Wine_Direct3D "UseGLSL" "disabled"
-
+ 
 # Installation
+if [ "$INSTALL_METHOD" = "CD" ]; then
+        POL_Call POL_Function_NoCDWarning
+        Set_OS "win2k"
+
+        #CD-ROM 1
+        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 1.')"
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "SC4_ConnectToWebIcon.ico"
+        cd "$WINEPREFIX/dosdevices"
+        rm "d::"
+        ln -s "$CDROM" "d:"
+        cd "$CDROM"
+        POL_Wine "$CDROM/setup.exe"
+        POL_SetupWindow_message "$(eval_gettext 'When the game setup will ask for next disk, please come back to this window in order to click on "Next" before to insert it.')"
+        #CD-ROM 2
+        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 2.\n\nIn the next window click 'Refresh' until you see it then select it.')"
+        POL_SetupWindow_cdrom
+        cd "$WINEPREFIX/dosdevices"
+        rm "d:"
+        ln -s "$CDROM" "d:"
+        cd "$POL_System_TmpDir"
+
+        POL_SetupWindow_message "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
+        
+        POL_Shortcut "SimCity 4.exe"
+        POL_Shortcut_Document "$TITLE" "ReadMe.txt"
+fi
+
 if [ "$INSTALL_METHOD" = "LOCAL" ]; then
-    POL_SetupWindow_message "$(eval_gettext 'NOTICE: SimCity 4 needs a no-cd crack if you are installing from a CD or DVD. We do not support cracks, and cannot help if it does not work.')" "$TITLE"
+    POL_Call POL_Function_NoCDWarning
     Set_OS "win2k"
     POL_Wine_WaitBefore "$TITLE"
     POL_Wine "$APP_ANSWER"
@@ -67,5 +114,9 @@
     POL_Shortcut "Steam.exe" "$TITLE"
 fi
 
+# Set Graphic Card informations keys for wine
+POL_Call POL_Install_VideoDriver
+
+POL_System_TmpDelete
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-01-15 13-00)
# Last revision : see changelog
# Distribution used to test : Ubuntu 19.04 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.3.4

# Media used: 2 CD-Rom retail, august 2004 (folders date. But on CD #2 it's july 2008), pre patched ?.
# File Version: 1.1.613.0

# CHANGELOG
# [Dadu042] (2019-07-04)
#   - Some little improvements.
#   - Wine 1.7.34 -> 2.22.
#   - Add KNOWN ISSUES.

# KNOWN ISSUES:
# Wine 4.1, 4.8: when trying to launch the game it does not recognize the retail CD-ROM #1.
# Wine 4.8 + NoCD : "Could not initialize direct draw" (same with: force GDI, UseGLSL, dx3d9).

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
       
PREFIX="SimCity4Deluxe"
WINEVERSION="2.22"
TITLE="SimCity 4 Deluxe"
EDITOR="EA Games - Maxis"
GAME_URL="http://www.electronicarts.com"
AUTHOR="RoninDusette"

       
#Initialization
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

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_RequiredVersion 4.2.12 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update."

# Getting information for installation
POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file for $TITLE')" "$TITLE"
    SETUP_BY="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    SETUP_BY="STEAM"
fi
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"
POL_System_TmpCreate "$TITLE"

if [ "$INSTALL_METHOD" = "STEAM" ]; then
POL_SetupWindow_message "$(eval_gettext 'NOTICE: After Steam installs, uncheck "Run Steam" so that it does not start.')" "$TITLE"
fi
 
# Dependencies
if [ "$SETUP_BY" = "STEAM" ]; then
    POL_Call POL_Install_steam
fi
 
# Configuration
Set_Desktop "On" "1024" "768"
POL_Wine_Direct3D "UseGLSL" "disabled"
 
# Installation
if [ "$INSTALL_METHOD" = "CD" ]; then
        POL_Call POL_Function_NoCDWarning
        Set_OS "win2k"

        #CD-ROM 1
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 1.')"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "SC4_ConnectToWebIcon.ico"
        cd "$WINEPREFIX/dosdevices"
        rm "d::"
        ln -s "$CDROM" "d:"
        cd "$CDROM"
        POL_Wine "$CDROM/setup.exe"
        POL_SetupWindow_message "$(eval_gettext 'When the game setup will ask for next disk, please come back to this window in order to click on "Next" before to insert it.')"
        #CD-ROM 2
        POL_SetupWindow_message "$(eval_gettext 'Please insert CD 2.\n\nIn the next window click 'Refresh' until you see it then select it.')"
        POL_SetupWindow_cdrom
        cd "$WINEPREFIX/dosdevices"
        rm "d:"
        ln -s "$CDROM" "d:"
        cd "$POL_System_TmpDir"

        POL_SetupWindow_message "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
        
        POL_Shortcut "SimCity 4.exe"
        POL_Shortcut_Document "$TITLE" "ReadMe.txt"
fi

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_Call POL_Function_NoCDWarning
    Set_OS "win2k"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
    POL_Shortcut "SimCity 4.exe"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    Set_OS "winxp"
    POL_SetupWindow_message "$(eval_gettext 'NOTICE: If you notice an error, but Steam and $TITLE are running, it can be ignored.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine "Steam.exe" -applaunch 24780
    POL_SetupWindow_message "$LNG_WAIT_STEAM_END" "$TITLE"
    POL_Shortcut "Steam.exe" "$TITLE"
fi

# Set Graphic Card informations keys for wine
POL_Call POL_Install_VideoDriver

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

L-tu Thursday 24 August 2017 at 13:57
L-tu Anonymous

Message

Can't change resoltuion in-game GOG version

Replies

Anonymous
Friday 25 August 2017 at 6:04
Search for SC4 Luncher if you have this issue Install it trough PlayOnLinux and it will fix all the issues such as changing resolutions and such.
Ronin DUSETTE Thursday 15 January 2015 at 22:01
Ronin DUSETTE

Warning

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

Message

I am going to take over as maintainer for this script (it just has not had any updates for a very long time.). Here is a complete script re-write with Steam support. It is testing fine with Steam, but I do not have the physical discs to test with. This game still will need a no-cd crack for the disc version, but I have added a warning in here about that. 

Differences

@@ -1,97 +1,71 @@
 #!/bin/bash
+# Date : (2015-01-15 13-00)
+# Distribution used to test : Kubuntu 14.04 LTS 64-bit
+# Author : RoninDusette
+# Licence : GPLv3
+# PlayOnLinux: 4.2.5
 
-if [ "$PLAYONLINUX" = "" ]
-then
-exit 0
-fi
 
+[ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
+      
+PREFIX="SimCity4Deluxe"
+WINEVERSION="1.7.34"
+TITLE="SimCity 4 Deluxe"
+EDITOR="EA Games - Maxis"
+GAME_URL="http://www.electronicarts.com"
+AUTHOR="RoninDusette"
+      
+#Initialization
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 POL_SetupWindow_Init
-#Verifier les dépendences
-cfg_check
-
-#Presentation
-POL_SetupWindow_presentation "SimCity 4 Deluxe" "EA Games - Maxis" "http://www.electronicarts.com" "Toumeno" "simcity4deluxe"
-
-
-if [ "$POL_LANG" == "fr" ]; then
-
-
-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_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."
-
-else
+      
+POL_Debug_Init
+      
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+# Getting information for installation
+POL_SetupWindow_InstallMethod "LOCAL,STEAM"
+
+if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file for $TITLE')" "$TITLE"
+    SETUP_BY="$APP_ANSWER"
+elif [ "$INSTALL_METHOD" = "STEAM" ]; then
+    SETUP_BY="STEAM"
+fi
 
-LNG_SC4_WAIT="Please wait during the installation's preparation"
-LNG_SC4_CD2="Please insert the CD2 and click on Next"
-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)."
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: After Steam installs, uncheck "Run Steam" so that it does not start.')" "$TITLE"
+
+# Dependencies
+if [ "$SETUP_BY" = "STEAM" ]; then
+    POL_Call POL_Install_steam
+fi
 
+# Configuration
+Set_Desktop "On" "1024" "768"
+POL_Wine_Direct3D "UseGLSL" "disabled"
+
+# Installation
+if [ "$INSTALL_METHOD" = "LOCAL" ]; then
+    POL_SetupWindow_message "$(eval_gettext 'NOTICE: SimCity 4 needs a no-cd crack if you are installing from a CD or DVD. We do not support cracks, and cannot help if it does not work.')" "$TITLE"
+    Set_OS "win2k"
+    POL_Wine_WaitBefore "$TITLE"
+    POL_Wine "$APP_ANSWER"
+    POL_Wine_WaitExit "$TITLE"
+    POL_Shortcut "SimCity 4.exe"
+elif [ "$INSTALL_METHOD" = "STEAM" ]; then
+    Set_OS "winxp"
+    POL_SetupWindow_message "$(eval_gettext 'NOTICE: If you notice an error, but Steam and $TITLE are running, it can be ignored.')" "$TITLE"
+    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+    POL_Wine "Steam.exe" -applaunch 24780
+    POL_SetupWindow_message "$LNG_WAIT_STEAM_END" "$TITLE"
+    POL_Shortcut "Steam.exe" "$TITLE"
 fi
 
-#Préparation de Wine
-mkdir -p "$REPERTOIRE/wineprefix/simcity4deluxe"
-cd "$REPERTOIRE/wineprefix/simcity4deluxe"
-select_prefixe "$(pwd)"
-POL_SetupWindow_prefixcreate
-
-POL_SetupWindow_message "$LNG_SC4_CD1"
-
-#Détection du cd-rom
-POL_SetupWindow_cdrom
-POL_SetupWindow_check_cdrom "setup.exe"
-
-# Réglages de Wine
-Set_WineVersion_Session 0.9.19
-Set_OS "win2k"
-Set_Desktop On 1024 768
-Set_SoundDriver alsa
-Set_GLSL Off
-
-
-# Installation du jeu
-
-# Créer les lecteurs Windows
-cd "$REPERTOIRE/wineprefix/simcity4deluxe/dosdevices"
-rm ./*
-ln -s "$REPERTOIRE/wineprefix/simcity4deluxe/drive_c" "c:"
-ln -s "$CDROM" "d:"
-ln -s "/" "z:"
-
-
-mkdir "$REPERTOIRE/wineprefix/simcity4deluxe/temp"
-cd "$REPERTOIRE/wineprefix/simcity4deluxe/temp"
-mkdir sc4setup
-
-
-POL_SetupWindow_wait_next_signal "$LNG_SC4_WAIT" "SimCity 4 Deluxe"
-cp -vR $CDROM/* ./sc4setup/
-POL_SetupWindow_detect_exit
-POL_SetupWindow_message "$LNG_SC4_CD2"
-chmod -R 777 "$REPERTOIRE/wineprefix/simcity4deluxe/temp"
-
-cd sc4setup
-POL_SetupWindow_wait_next_signal "Installing... / Installation en cours" "SimCity 4 Deluxe"
-wine setup.exe
-POL_SetupWindow_detect_exit
-
-#Fin du code du jeu
-#Création du lanceur
-
-POL_SetupWindow_make_shortcut "simcity4deluxe" "Program Files/Maxis/SimCity 4 Deluxe/Apps/" "SimCity 4.exe" "simcity4.xpm" "SimCity 4 Deluxe"
-Set_WineVersion_Assign "1.1.0" "SimCity 4 Deluxe"
-Set_Desktop Off
-
-POL_SetupWindow_reboot
-rm -rf "$REPERTOIRE/wineprefix/simcity4deluxe/temp"
-POL_SetupWindow_message "Installation terminée
-
-Install finished"
-POL_SetupWindow_message "$LNG_SC4_CRACK"
-POL_SetupWindow_message "$LNG_SC4_RUN"
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2015-01-15 13-00)
# Distribution used to test : Kubuntu 14.04 LTS 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.2.5


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
      
PREFIX="SimCity4Deluxe"
WINEVERSION="1.7.34"
TITLE="SimCity 4 Deluxe"
EDITOR="EA Games - Maxis"
GAME_URL="http://www.electronicarts.com"
AUTHOR="RoninDusette"
      
#Initialization
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
      
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Getting information for installation
POL_SetupWindow_InstallMethod "LOCAL,STEAM"

if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file for $TITLE')" "$TITLE"
    SETUP_BY="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    SETUP_BY="STEAM"
fi

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_message "$(eval_gettext 'NOTICE: After Steam installs, uncheck "Run Steam" so that it does not start.')" "$TITLE"

# Dependencies
if [ "$SETUP_BY" = "STEAM" ]; then
    POL_Call POL_Install_steam
fi

# Configuration
Set_Desktop "On" "1024" "768"
POL_Wine_Direct3D "UseGLSL" "disabled"

# Installation
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
    POL_SetupWindow_message "$(eval_gettext 'NOTICE: SimCity 4 needs a no-cd crack if you are installing from a CD or DVD. We do not support cracks, and cannot help if it does not work.')" "$TITLE"
    Set_OS "win2k"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
    POL_Shortcut "SimCity 4.exe"
elif [ "$INSTALL_METHOD" = "STEAM" ]; then
    Set_OS "winxp"
    POL_SetupWindow_message "$(eval_gettext 'NOTICE: If you notice an error, but Steam and $TITLE are running, it can be ignored.')" "$TITLE"
    cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
    POL_Wine "Steam.exe" -applaunch 24780
    POL_SetupWindow_message "$LNG_WAIT_STEAM_END" "$TITLE"
    POL_Shortcut "Steam.exe" "$TITLE"
fi

POL_SetupWindow_Close
exit 0

Replies

Wednesday 21 January 2015 at 3:14
Nice cleanup ;)
Friday 23 January 2015 at 20:48
Thanks. It REALLY needed it. lol. No matter how old I get or the games get, the SimCity series will always have a special place with me. haha.
Anonymous
Friday 23 January 2015 at 23:37
Nice cleanup, indeed :)
Friday 23 January 2015 at 23:37
:D
Anonymous
Tuesday 27 January 2015 at 8:35
I have had Simcity 4 for years. Cool game. I like it a lot. To bad they tried to murder the franchise with that incredibly stupid (my opinion) new version that required the player to be online all the time.
Anonymous
Tuesday 27 January 2015 at 8:38
I forgot to mention that I have the Origin version so this script will not work for me. Its great to see old scripts being worked on. Most of my games are on Steam but some are on Origin.
Tuesday 27 January 2015 at 8:43
I will try to add origin support, but I do not own it through Origin, so I don't know how I would test it. I will put a pin in that for the future, though. If we had a POL_Install_origin function, that would for sure make it easier. I may do that, but considering Origin is broken on a lot of Wine versions, that will make it difficult.
Tuesday 27 January 2015 at 9:13
Not only that, but if I remember well Origin had no support for external automation (then equivalent steam:// urls, such things). So basically you may be able to install Origin but not drive installations. Maybe it improved since then
Tuesday 27 January 2015 at 9:35
I didn't think as such, but it does have a set of command-line options, including the ability to launch apps via some ID like Steam can (though this is not exactly what we are looking for):

http://gaming.stackexchange.com/questions/179412/are-there-any-command-line-arguments-for-origin

That is just according to that particular thread. I have not looked further into it.
Anonymous
Thursday 29 January 2015 at 10:15
Wine 1.7.35 works perfectly with Origin. It looks like the wine devs finally figured out how to get Origin to download properly.
Tuesday 3 February 2015 at 18:32
This game is so much better than SimCity 5. :+1:
Tuesday 3 February 2015 at 18:39
I agree. One of my favourites.
Anonymous
Thursday 3 January 2019 at 15:58
When I try the installation script with PoL for Ubuntu Cosmic, and Wine 3.0.3-2 (through Cosmic Universe repo) the script fails soon after the messages from the script concerning the No-CD crack & Steam, with the message saying something like 'Cannot find SimCity 4.exe'. Can I get help debugging?

Edited by RoninDusette

merom Tuesday 13 January 2015 at 23:11
merom Anonymous

Message

Ubuntu 14.04

PLayonLinux 4.2.2

Problème lors de l'installation de SimCity 4 Deluxe : crash de wine avec l'erreur suivante :

[POL_Wine] Message: Wine return: 0
[POL_SetupWindow_detect_exit] Warning: POL_SetupWindow_detect_exit is deprecated

 

Replies

Wednesday 14 January 2015 at 0:16
Upgrade POL to 4.2.5. You can download it from our Download section
Wednesday 14 January 2015 at 7:07
Won't help, it's just that this install script is old and should be updated...
Anonymous
Wednesday 14 January 2015 at 20:02
oh sorry I wrote in french. How can I get updated script ? I guess someone should do it for me..?
Wednesday 14 January 2015 at 20:14
Well, it wouldn't just be for you, but for everyone that tries to use the script. lol. :) But yeah, someone will need to correct the script to work correctly with the new version of POL. I don't think I have this game, so I cannot do it.
Anonymous
Wednesday 14 January 2015 at 22:48
OK, i'll wait then..or I'll reinstall windows to play the game..
Thursday 15 January 2015 at 0:08
Whatever you want to do. You could always dual-boot, run in a virtual machine, or try a manual install (last I checked, this game doesn't need anything special to run. Try creating a virtual drive with the newest 32-bit version of Wine and see if it runs.).
Thursday 15 January 2015 at 0:10
Actually, I just checked my Steam account, and I do have it. I will update the script in the next couple of days. I will report here when I fixed it.
Thursday 15 January 2015 at 22:03
Give it a shot now and see if it works. You will probably need to copy the discs to a folder and install like that, and if that doesn't work then you will need to crack it, which we cannot help with. Rest assured, though, the virtual drive that this script creates WILL run SC4 just fine. Steam is the preferred method, since it works so well.
Anonymous
Wednesday 21 January 2015 at 2:42
Hi there!
Anonymous
Wednesday 21 January 2015 at 3:05
I've managed to install the original version of SimCity 4 Deluxe using POL 4.2.2, patch it and update it to v.638 (using wine directly, not POL), but I cant launch the game. I've applied the nocd patch for my version of the game too, but launching through POL gives me the "can't find the cd" window. If I launch the game using just wine it works.
I've also tried to change wine version in the simcity configuration under POL to system, but keeps crashing.
I have also updated to POL 4.2.5, same problem.
Wednesday 21 January 2015 at 3:15
We do not support cracks. Use it how it is usable, but as far support for cracks, we cannot do anything for you. The Steam version works great, and and as stated in the installer, the CD version needs a crack. Copy the CDs to a folder on your drive with NO CRACKS, and point the installer there when it asks for the discs. If that does not work, we cannot help, as it involves piracy. Sorry.

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