You are here    Supported software    Anno 1602 nl sv ru pl es de fr

Anno 1602

Informations

Creator Message
marco_g Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 21084
Wine: 1.2.3

Feedbacks

Source code

#!/bin/bash
# Date : (2010-05-29 ??-??)
# Last revision : (2013-12-10 09-03)
# Distribution used to test : Ubuntu 10.04
# Author : Marco Gerards

# CHANGELOG
# [Quentin PARIS] (2011-10-29 19-09)
#   Updated translations,
#   Updated for POL 4
#   Wine changed to 1.2.3
# [SuperPlumus] (2013-12-10 09-03)
#   Update gettext messages
#   Update $TITLE
#   Clean code

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

TITLE="Anno 1602"
PREFIX="Anno1602"
WORKING_WINE_VERSION="1.2.3"
AUTHOR="Marco Gerards"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Sunflowers" "http://anno.uk.ubi.com/pc/history1602.php" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "Anno1602/1602.exe"

    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    # Installation using Setup.exe does not work, manual installation does
    # work.  See http://www.capsu.org/1602/7.html for details
    mkdir -p "$WINEPREFIX/drive_c/Anno1602"
    cd "$WINEPREFIX/drive_c/Anno1602" || POL_Debug_Fatal "Unable to go to $WINEPREFIX/drive_c/Anno1602"
    cp -r "$CDROM/Anno1602/"* .
    chmod -R a+rw *
    rm -r "MUSIC8"
    rm -r "VideoSmk"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
fi

cd "$POL_System_TmpDir"
cat <<EOF >> "$POL_System_TmpDir/anno.reg"
[HKEY_CURRENT_USER\Software\Anno1602]
"INSTALL_DIR"="C:\\"
"CDROM_DIR"="D:\\"
"INSTALL_SIZE"="MAX"
"VIDEO_QUALITAET"="H"
"MAUS_TYP"="S"
"MUSIK_FLAG"="E"
"SOUND_FLAG"="E"
"SCREENMODE"=dword:00000320
"VERSION"="EDIT"
EOF
POL_Wine regedit "$POL_System_TmpDir/anno.reg"

POL_System_TmpDelete

POL_Shortcut "1602.exe" "$TITLE"

POL_SetupWindow_message "$(eval_gettext 'Installation finished.')" "$TITLE"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
alexnanni16 Friday 17 March 2017 at 13:41
alexnanni16 Anonymous

Message

HI, I can't download the file...can u help me please?

Replies

LinuxScripter Wednesday 6 January 2016 at 19:22
LinuxScripter Anonymous

Warning

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

Message

Updated the script. If you got the "insert game disc" error use START.exe

Differences

@@ -1,8 +1,8 @@
 #!/bin/bash
 # Date : (2010-05-29 ??-??)
-# Last revision : (2013-12-10 09-03)
-# Distribution used to test : Ubuntu 10.04
-# Author : Marco Gerards
+# Last revision : (2016-01-16 19-12)
+# Distribution used to test : Ubuntu 15.10
+# Author : Marco Gerards, LinuxScripter
 
 # CHANGELOG
 # [Quentin PARIS] (2011-10-29 19-09)
@@ -13,13 +13,16 @@
 #   Update gettext messages
 #   Update $TITLE
 #   Clean code
+#[LinuxScripter] (2016-01-16 19-12)
+#   Wine changed to 1.9.0
+#   Added d3dx9 to fix music not being played
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="Anno 1602"
 PREFIX="Anno1602"
-WORKING_WINE_VERSION="1.2.3"
+WORKING_WINE_VERSION="1.9.0"
 AUTHOR="Marco Gerards"
 
 POL_SetupWindow_Init
@@ -30,6 +33,9 @@
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
+POL_Call POL_Install_d3dx9
+POL_Call POL_Install_directmusic
+
 POL_System_TmpCreate "$PREFIX"
 
 POL_SetupWindow_InstallMethod "CD,LOCAL"
@@ -74,6 +80,7 @@
 POL_System_TmpDelete
 
 POL_Shortcut "1602.exe" "$TITLE"
+POL_Shortcut "START.exe" "$TITLE"
 
 POL_SetupWindow_message "$(eval_gettext 'Installation finished.')" "$TITLE"
 

New source code

#!/bin/bash
# Date : (2010-05-29 ??-??)
# Last revision : (2016-01-16 19-12)
# Distribution used to test : Ubuntu 15.10
# Author : Marco Gerards, LinuxScripter

# CHANGELOG
# [Quentin PARIS] (2011-10-29 19-09)
#   Updated translations,
#   Updated for POL 4
#   Wine changed to 1.2.3
# [SuperPlumus] (2013-12-10 09-03)
#   Update gettext messages
#   Update $TITLE
#   Clean code
#[LinuxScripter] (2016-01-16 19-12)
#   Wine changed to 1.9.0
#   Added d3dx9 to fix music not being played

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

TITLE="Anno 1602"
PREFIX="Anno1602"
WORKING_WINE_VERSION="1.9.0"
AUTHOR="Marco Gerards"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Sunflowers" "http://anno.uk.ubi.com/pc/history1602.php" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_d3dx9
POL_Call POL_Install_directmusic

POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "CD,LOCAL"

if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "Anno1602/1602.exe"

    POL_SetupWindow_wait "$(eval_gettext 'Please wait...')" "$TITLE"

    # Installation using Setup.exe does not work, manual installation does
    # work.  See http://www.capsu.org/1602/7.html for details
    mkdir -p "$WINEPREFIX/drive_c/Anno1602"
    cd "$WINEPREFIX/drive_c/Anno1602" || POL_Debug_Fatal "Unable to go to $WINEPREFIX/drive_c/Anno1602"
    cp -r "$CDROM/Anno1602/"* .
    chmod -R a+rw *
    rm -r "MUSIC8"
    rm -r "VideoSmk"
elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine "$APP_ANSWER"
    POL_Wine_WaitExit "$TITLE"
fi

cd "$POL_System_TmpDir"
cat <<EOF >> "$POL_System_TmpDir/anno.reg"
[HKEY_CURRENT_USER\Software\Anno1602]
"INSTALL_DIR"="C:\\"
"CDROM_DIR"="D:\\"
"INSTALL_SIZE"="MAX"
"VIDEO_QUALITAET"="H"
"MAUS_TYP"="S"
"MUSIK_FLAG"="E"
"SOUND_FLAG"="E"
"SCREENMODE"=dword:00000320
"VERSION"="EDIT"
EOF
POL_Wine regedit "$POL_System_TmpDir/anno.reg"

POL_System_TmpDelete

POL_Shortcut "1602.exe" "$TITLE"
POL_Shortcut "START.exe" "$TITLE"

POL_SetupWindow_message "$(eval_gettext 'Installation finished.')" "$TITLE"

POL_SetupWindow_Close
exit

Replies

Wednesday 6 January 2016 at 21:44 -
There's no version 1.9, only 1.9.0
Did you test those changes?
Anonymous
Thursday 7 January 2016 at 14:40 -
Of course.
Thursday 7 January 2016 at 18:50 -
 POL_Shortcut "1602.exe""$TITLE"

+POL_Shortcut "START.exe" "$TITLE"

This will overwrite the first shortcut it creates with the second, shouldn't the first line just be replaced by the second one? That, or use a different name if you want to keep the two shortcuts

Edited by petch