The Sims 3 Ambitions

Informations

Creator Message
NSLW

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 30494
Wine: System

Feedbacks

Description

Type : Live simulation
Lan : -
Online : -
Company : Maxis
Compatibility : 5/5

Warning :

  • game won't run with original TS3EP02.exe (and TSLHost.dll if it's patched)
  • shop mode doesn't work
  • to start game run The Sims 3 Ambitions instead of The Sims 3 Launcher

 

Appdb.winehq.org

Source code

#!/bin/bash
# Date : (2010-05-11 21-00)
# Last revision : see changelog
# Wine version used : 3.0.3
# Distribution used to test : Debian Squeeze (Testing)
# Author : NSWL & GNU_Raziel
# Licence : Retail
#
# CHANGELOG
# [Dadu042] (2020-01-15 22:50)
#   Initial script.
# [Dadu042] (2020-01-16 20:50)
#   Wine 1.3.4 -> 3.0.3.
#   Cleanup script.


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

TITLE="The Sims 3 Ambitions"
PREFIX="TheSims3"
WORKING_WINE_VERSION="3.0.3"

if [ "$POL_LANG" == "fr" ]; then
LNG_CHOOSE_MEDIA="Quelle version possédez-vous?"
LNG_DVD="Version DVD"
LNG_DDV="Version Digital Download"
LNG_CHOOSE_DDV="Veuillez selectionner votre executable Digital Download de $TITLE"
LNG_INSERT_MEDIA="Veuillez insérer le disque $TITLE dans votre lecteur\nsi ce n'est pas déja fait."
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du\njeu sera terminée sous peine de devoir recommencer l'installation."
LNG_INSTALL_ON="Installation en cours..."
LNG_SUCCES="$TITLE a été installé avec succès."
else
LNG_CHOOSE_MEDIA="What version do you have?"
LNG_DVD="DVD Version"
LNG_DDV="Digital Download Version"
LNG_CHOOSE_DDV="Please select your $TITLE Digital Download executable"
LNG_INSERT_MEDIA="Please insert $TITLE media into your disk drive\nif not already done."
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation is finished\nor you will have to redo the installation."
LNG_INSTALL_ON="Installation in progress..."
LNG_SUCCES="$TITLE has been installed successfully."
fi
 
# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/sims3/top.jpg" "http://files.playonlinux.com/resources/setups/sims3/left.jpg" "$TITLE"
POL_SetupWindow_Init
 
POL_SetupWindow_presentation "$TITLE" "Electronic Arts Inc." "thesims3.ea.com" "NSWL & GNU_Raziel" "$PREFIX"

POL_SetupWindow_checkexist()
{        
        if [ ! -e "$REPERTOIRE/wineprefix/$1" ]; then
                if [ "$POL_LANG" == "fr" ]; then
                        LNG_PREFIX_NOT_EXIST="Le jeu n'est pas installé."
                else
                        LNG_PREFIX_NOT_EXIST="Game is not installed."
                fi
                POL_SetupWindow_message "$LNG_PREFIX_NOT_EXIST" "Game Checker"
                POL_SetupWindow_Close
                exit
        fi
}

POL_SetupWindow_checkexist "$PREFIX" 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

# Downloading specific Wine
Use_WineVersion "$WORKING_WINE_VERSION"

# Fetching PROGRAMFILES environmental variable 
POL_LoadVar_PROGRAMFILES
 
# Choose between DVD and Digital Download version
POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_DVD~$LNG_DDV" "~"
 
if [ "$APP_ANSWER" == "$LNG_DVD" ]; then
        GAME_MEDIAVERSION="DVD"        
else
        GAME_MEDIAVERSION="DD"
fi
 
if [ "$GAME_MEDIAVERSION" == "DVD" ]; then
        #asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$LNG_INSERT_MEDIA"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Sims3EP02Setup.exe"
        wine start /unix "$CDROM/Sims3EP02Setup.exe"
        POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
else
        #Asking then installing DDV of the game
        cd $HOME
        POL_SetupWindow_browse "$LNG_CHOOSE_DDV" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
        wine start /unix "$SETUP_EXE"
        INSTALL_ON="1"
        until [ "$INSTALL_ON" == "" ]; do
        sleep 5
        INSTALL_ON=`ps aux | grep "wineserver" | grep -v "grep"`
        done
        POL_SetupWindow_detect_exit
fi
 
# Cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
        rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
        chmod -R 777 "$REPERTOIRE/tmp/"
        rm -rf "$REPERTOIRE/tmp/*"
fi
 
# Making shortcut
POL_SetupWindow_auto_shortcut "$PREFIX" "TS3EP02.exe" "$TITLE" "" "Game;"

POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Dadu042 Thursday 16 January 2020 at 20:21
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,17 +1,25 @@
 #!/bin/bash
 # Date : (2010-05-11 21-00)
-# Last revision : (2010-05-11 21-00)
-# Wine version used : 1.3.4
+# Last revision : see changelog
+# Wine version used : 3.0.3
 # Distribution used to test : Debian Squeeze (Testing)
 # Author : NSWL & GNU_Raziel
 # Licence : Retail
+#
+# CHANGELOG
+# [Dadu042] (2020-01-15 22:50)
+#   Initial script.
+# [Dadu042] (2020-01-16 20:50)
+#   Wine 1.3.4 -> 3.0.3.
+#   Cleanup script.
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="The Sims 3 Ambitions"
 PREFIX="TheSims3"
-WORKING_WINE_VERSION="1.3.4"
+WORKING_WINE_VERSION="3.0.3"
 
 if [ "$POL_LANG" == "fr" ]; then
 LNG_CHOOSE_MEDIA="Quelle version possédez-vous?"
@@ -58,13 +66,13 @@
  
 select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
 
-#downloading specific Wine
+# Downloading specific Wine
 Use_WineVersion "$WORKING_WINE_VERSION"
 
-#fetching PROGRAMFILES environmental variable 
+# Fetching PROGRAMFILES environmental variable 
 POL_LoadVar_PROGRAMFILES
  
-#Choose between DVD and Digital Download version
+# Choose between DVD and Digital Download version
 POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_DVD~$LNG_DDV" "~"
  
 if [ "$APP_ANSWER" == "$LNG_DVD" ]; then
@@ -95,16 +103,15 @@
 	POL_SetupWindow_detect_exit
 fi
  
-#cleaning temp
+# Cleaning temp
 if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
 	rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
 	chmod -R 777 "$REPERTOIRE/tmp/"
 	rm -rf "$REPERTOIRE/tmp/*"
 fi
  
-#making shortcut
-POL_SetupWindow_auto_shortcut "$PREFIX" "TS3EP02.exe" "$TITLE" "" ""
-Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
+# Making shortcut
+POL_SetupWindow_auto_shortcut "$PREFIX" "TS3EP02.exe" "$TITLE" "" "Game;"
 
 POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
 POL_SetupWindow_Close

New source code

#!/bin/bash
# Date : (2010-05-11 21-00)
# Last revision : see changelog
# Wine version used : 3.0.3
# Distribution used to test : Debian Squeeze (Testing)
# Author : NSWL & GNU_Raziel
# Licence : Retail
#
# CHANGELOG
# [Dadu042] (2020-01-15 22:50)
#   Initial script.
# [Dadu042] (2020-01-16 20:50)
#   Wine 1.3.4 -> 3.0.3.
#   Cleanup script.


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

TITLE="The Sims 3 Ambitions"
PREFIX="TheSims3"
WORKING_WINE_VERSION="3.0.3"

if [ "$POL_LANG" == "fr" ]; then
LNG_CHOOSE_MEDIA="Quelle version possédez-vous?"
LNG_DVD="Version DVD"
LNG_DDV="Version Digital Download"
LNG_CHOOSE_DDV="Veuillez selectionner votre executable Digital Download de $TITLE"
LNG_INSERT_MEDIA="Veuillez insérer le disque $TITLE dans votre lecteur\nsi ce n'est pas déja fait."
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du\njeu sera terminée sous peine de devoir recommencer l'installation."
LNG_INSTALL_ON="Installation en cours..."
LNG_SUCCES="$TITLE a été installé avec succès."
else
LNG_CHOOSE_MEDIA="What version do you have?"
LNG_DVD="DVD Version"
LNG_DDV="Digital Download Version"
LNG_CHOOSE_DDV="Please select your $TITLE Digital Download executable"
LNG_INSERT_MEDIA="Please insert $TITLE media into your disk drive\nif not already done."
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation is finished\nor you will have to redo the installation."
LNG_INSTALL_ON="Installation in progress..."
LNG_SUCCES="$TITLE has been installed successfully."
fi
 
# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/sims3/top.jpg" "http://files.playonlinux.com/resources/setups/sims3/left.jpg" "$TITLE"
POL_SetupWindow_Init
 
POL_SetupWindow_presentation "$TITLE" "Electronic Arts Inc." "thesims3.ea.com" "NSWL & GNU_Raziel" "$PREFIX"

POL_SetupWindow_checkexist()
{        
        if [ ! -e "$REPERTOIRE/wineprefix/$1" ]; then
                if [ "$POL_LANG" == "fr" ]; then
                        LNG_PREFIX_NOT_EXIST="Le jeu n'est pas installé."
                else
                        LNG_PREFIX_NOT_EXIST="Game is not installed."
                fi
                POL_SetupWindow_message "$LNG_PREFIX_NOT_EXIST" "Game Checker"
                POL_SetupWindow_Close
                exit
        fi
}

POL_SetupWindow_checkexist "$PREFIX" 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

# Downloading specific Wine
Use_WineVersion "$WORKING_WINE_VERSION"

# Fetching PROGRAMFILES environmental variable 
POL_LoadVar_PROGRAMFILES
 
# Choose between DVD and Digital Download version
POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_DVD~$LNG_DDV" "~"
 
if [ "$APP_ANSWER" == "$LNG_DVD" ]; then
        GAME_MEDIAVERSION="DVD"        
else
        GAME_MEDIAVERSION="DD"
fi
 
if [ "$GAME_MEDIAVERSION" == "DVD" ]; then
        #asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$LNG_INSERT_MEDIA"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Sims3EP02Setup.exe"
        wine start /unix "$CDROM/Sims3EP02Setup.exe"
        POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
else
        #Asking then installing DDV of the game
        cd $HOME
        POL_SetupWindow_browse "$LNG_CHOOSE_DDV" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
        wine start /unix "$SETUP_EXE"
        INSTALL_ON="1"
        until [ "$INSTALL_ON" == "" ]; do
        sleep 5
        INSTALL_ON=`ps aux | grep "wineserver" | grep -v "grep"`
        done
        POL_SetupWindow_detect_exit
fi
 
# Cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
        rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
        chmod -R 777 "$REPERTOIRE/tmp/"
        rm -rf "$REPERTOIRE/tmp/*"
fi
 
# Making shortcut
POL_SetupWindow_auto_shortcut "$PREFIX" "TS3EP02.exe" "$TITLE" "" "Game;"

POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
POL_SetupWindow_Close
exit

Replies

T4b Friday 10 April 2015 at 19:29
T4b Anonymous

Warning

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

Message

This game is set to use version 1.3.4. Maybe that version works with just this add on and the basegame installed, but it doesn't work with at least one of the other add ons I installed. I set it to 1.4.1 in my TS3 drive configuration and this works fine. So should probably use 1.4.1 by default.

Oh and I didn't test this modified installer in any way, I just saw that I could modify the version there and thought I'd do that too instead of just notifying you that it should use the newer version. But I assume it works like that.

Differences

@@ -11,7 +11,7 @@
 
 TITLE="The Sims 3 Ambitions"
 PREFIX="TheSims3"
-WORKING_WINE_VERSION="1.3.4"
+WORKING_WINE_VERSION="1.4.1"
 
 if [ "$POL_LANG" == "fr" ]; then
 LNG_CHOOSE_MEDIA="Quelle version possédez-vous?"

New source code

#!/bin/bash
# Date : (2010-05-11 21-00)
# Last revision : (2010-05-11 21-00)
# Wine version used : 1.3.4
# Distribution used to test : Debian Squeeze (Testing)
# Author : NSWL & GNU_Raziel
# Licence : Retail

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

TITLE="The Sims 3 Ambitions"
PREFIX="TheSims3"
WORKING_WINE_VERSION="1.4.1"

if [ "$POL_LANG" == "fr" ]; then
LNG_CHOOSE_MEDIA="Quelle version possédez-vous?"
LNG_DVD="Version DVD"
LNG_DDV="Version Digital Download"
LNG_CHOOSE_DDV="Veuillez selectionner votre executable Digital Download de $TITLE"
LNG_INSERT_MEDIA="Veuillez insérer le disque $TITLE dans votre lecteur\nsi ce n'est pas déja fait."
LNG_WAIT_END="Appuyez sur \"Suivant\" UNIQUEMENT quand l'installation du\njeu sera terminée sous peine de devoir recommencer l'installation."
LNG_INSTALL_ON="Installation en cours..."
LNG_SUCCES="$TITLE a été installé avec succès."
else
LNG_CHOOSE_MEDIA="What version do you have?"
LNG_DVD="DVD Version"
LNG_DDV="Digital Download Version"
LNG_CHOOSE_DDV="Please select your $TITLE Digital Download executable"
LNG_INSERT_MEDIA="Please insert $TITLE media into your disk drive\nif not already done."
LNG_WAIT_END="Click on \"Next\" ONLY when the game installation is finished\nor you will have to redo the installation."
LNG_INSTALL_ON="Installation in progress..."
LNG_SUCCES="$TITLE has been installed successfully."
fi
 
# Starting the script
rm "$POL_USER_ROOT/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/sims3/top.jpg" "http://files.playonlinux.com/resources/setups/sims3/left.jpg" "$TITLE"
POL_SetupWindow_Init
 
POL_SetupWindow_presentation "$TITLE" "Electronic Arts Inc." "thesims3.ea.com" "NSWL & GNU_Raziel" "$PREFIX"

POL_SetupWindow_checkexist()
{        
        if [ ! -e "$REPERTOIRE/wineprefix/$1" ]; then
                if [ "$POL_LANG" == "fr" ]; then
                        LNG_PREFIX_NOT_EXIST="Le jeu n'est pas installé."
                else
                        LNG_PREFIX_NOT_EXIST="Game is not installed."
                fi
                POL_SetupWindow_message "$LNG_PREFIX_NOT_EXIST" "Game Checker"
                POL_SetupWindow_Close
                exit
        fi
}

POL_SetupWindow_checkexist "$PREFIX" 
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"

#downloading specific Wine
Use_WineVersion "$WORKING_WINE_VERSION"

#fetching PROGRAMFILES environmental variable 
POL_LoadVar_PROGRAMFILES
 
#Choose between DVD and Digital Download version
POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_DVD~$LNG_DDV" "~"
 
if [ "$APP_ANSWER" == "$LNG_DVD" ]; then
        GAME_MEDIAVERSION="DVD"        
else
        GAME_MEDIAVERSION="DD"
fi
 
if [ "$GAME_MEDIAVERSION" == "DVD" ]; then
        #asking for CDROM and checking if it's correct one
        POL_SetupWindow_message "$LNG_INSERT_MEDIA"
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "Sims3EP02Setup.exe"
        wine start /unix "$CDROM/Sims3EP02Setup.exe"
        POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
else
        #Asking then installing DDV of the game
        cd $HOME
        POL_SetupWindow_browse "$LNG_CHOOSE_DDV" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_SetupWindow_wait_next_signal "$LNG_INSTALL_ON" "$TITLE"
        wine start /unix "$SETUP_EXE"
        INSTALL_ON="1"
        until [ "$INSTALL_ON" == "" ]; do
        sleep 5
        INSTALL_ON=`ps aux | grep "wineserver" | grep -v "grep"`
        done
        POL_SetupWindow_detect_exit
fi
 
#cleaning temp
if [ -e "$WINEPREFIX/drive_c/windows/temp/" ]; then
        rm -rf "$WINEPREFIX/drive_c/windows/temp/*"
        chmod -R 777 "$REPERTOIRE/tmp/"
        rm -rf "$REPERTOIRE/tmp/*"
fi
 
#making shortcut
POL_SetupWindow_auto_shortcut "$PREFIX" "TS3EP02.exe" "$TITLE" "" ""
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"

POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"
POL_SetupWindow_Close
exit

Replies

Friday 10 April 2015 at 19:43
Can you test it, please? Never assume in programming. :) It needs to be tested before you post it up:

http://wiki.playonlinux.com/index.php/How_to_Contribute_a_Script
Anonymous
Saturday 11 April 2015 at 10:07
I hoped someone else who would install The Sims anyway would maybe test it... those installations take quite some time and I first need a blank TS3 basegame to test it. But maybe I'll do it later. Promising nothing. It's a one line difference with no syntactical change, I wouldn''t even call that programming, that configuration. And it's tested in the sense that I tested that it does work with the version I specified in the script.
Saturday 11 April 2015 at 18:58
The script needs to be tested before it is officially updated in the repo. Your change is not just a syntax change. It completely changes the version of Wine used, and since you did not test the script, you cannot be certain that it works. We don't accept un-tested updates to scripts like this. If you are not willing or do not have the software to test the update, then it might be better if you posted in the forums with the update suggestion, instead of hoping that it works once people use it if it is accepted in the repo. :)