Anno 1602

Informatie

Creator Bericht
marco_g Anonymous

Information

This installer has been approved by the team.

Informatie

Platforms:
Downloads: 35635
Wine: 3.0

Feedbacks

Broncode

#!/bin/bash
# Date : 2017-11-21 17:34
# Latest revision: 2018-02-10 11:25
# Wine version used : 3.0
# Distribution used to test : Ubuntu 17.04, Ubuntu 18.04 x64
# Author : LinuxScripter
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Anno 1602"
PREFIX="Anno1602"
WORKING_WINE_VERSION="3.0"
EDITOR="SunFlowers"
GAME_URL="http://anno.uk.ubi.com/pc/history1602.php"
AUTHOR="LinuxScripter"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "CD" ];then
    POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "autorun.cdd"
        POL_Wine start /unix "$CDROM/Anno1602.EXE"
        POL_Wine_WaitExit "Anno1602.EXE"
else
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
        POL_Wine start /unix "$APP_ANSWER"
        POL_Wine_WaitExit "$TITLE"
fi
 
POL_Shortcut "START.exe" "$TITLE" "1602.ico"
 
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Bericht
LinuxScripter Zaterdag 10 Februari 2018 om 11:29
LinuxScripter Anonymous

Information

This update has been approved by the team.

Bericht

I tested this game with latest stable wine as of writing this. Downloading smackw32.dll is no longer needed - the intro and credits are playing just fine.

Differences

@@ -1,81 +1,41 @@
 #!/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
-
+# Date : 2017-11-21 17:34
+# Latest revision: 2018-02-10 11:25
+# Wine version used : 3.0
+# Distribution used to test : Ubuntu 17.04, Ubuntu 18.04 x64
+# Author : LinuxScripter
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Anno 1602"
 PREFIX="Anno1602"
-WORKING_WINE_VERSION="1.2.3"
-AUTHOR="Marco Gerards"
-
+WORKING_WINE_VERSION="3.0"
+EDITOR="SunFlowers"
+GAME_URL="http://anno.uk.ubi.com/pc/history1602.php"
+AUTHOR="LinuxScripter"
+ 
 POL_SetupWindow_Init
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "Sunflowers" "http://anno.uk.ubi.com/pc/history1602.php" "$AUTHOR" "$PREFIX"
-
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$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_InstallMethod "LOCAL,CD"
+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"
+	POL_SetupWindow_check_cdrom "autorun.cdd"
+	POL_Wine start /unix "$CDROM/Anno1602.EXE"
+	POL_Wine_WaitExit "Anno1602.EXE"
+else
+	POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
+	POL_Wine start /unix "$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_Shortcut "START.exe" "$TITLE" "1602.ico"
+ 
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : 2017-11-21 17:34
# Latest revision: 2018-02-10 11:25
# Wine version used : 3.0
# Distribution used to test : Ubuntu 17.04, Ubuntu 18.04 x64
# Author : LinuxScripter
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Anno 1602"
PREFIX="Anno1602"
WORKING_WINE_VERSION="3.0"
EDITOR="SunFlowers"
GAME_URL="http://anno.uk.ubi.com/pc/history1602.php"
AUTHOR="LinuxScripter"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "CD" ];then
    POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "autorun.cdd"
        POL_Wine start /unix "$CDROM/Anno1602.EXE"
        POL_Wine_WaitExit "Anno1602.EXE"
else
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
        POL_Wine start /unix "$APP_ANSWER"
        POL_Wine_WaitExit "$TITLE"
fi
 
POL_Shortcut "START.exe" "$TITLE" "1602.ico"
 
POL_SetupWindow_Close
exit

Antwoorden

Maandag 3 Juni\ 2019 om 13:15
Approved.
LinuxScripter Woensdag 22 November 2017 om 13:35
LinuxScripter Anonymous

Warning

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

Bericht

I rewrote this script. There are two .exe files. You need to use the START.exe or else you will get a "insert disc" error when selecting missions. The Smackw32.dll file that comes with the game does not work and makes the cutscenes unplayable. So I found a diffirent one.

Differences

@@ -1,81 +1,47 @@
 #!/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
-
+# Date : 2017-11-21 17:34
+# Wine version used : 2.0.3
+# Distribution used to test : Ubuntu 17.04
+# Author : LinuxScripter
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Anno 1602"
 PREFIX="Anno1602"
-WORKING_WINE_VERSION="1.2.3"
-AUTHOR="Marco Gerards"
-
+WORKING_WINE_VERSION="2.0.3"
+EDITOR="SunFlowers"
+GAME_URL="http://anno.uk.ubi.com/pc/history1602.php"
+AUTHOR="LinuxScripter"
+ 
 POL_SetupWindow_Init
 POL_Debug_Init
-
-POL_SetupWindow_presentation "$TITLE" "Sunflowers" "http://anno.uk.ubi.com/pc/history1602.php" "$AUTHOR" "$PREFIX"
-
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$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"
+ 
+POL_SetupWindow_InstallMethod "LOCAL,CD"
+if [ "$INSTALL_METHOD" == "CD" ];then
+	POL_SetupWindow_cdrom
+	POL_SetupWindow_check_cdrom "autorun.cdd"
+	POL_Wine start /unix "$CDROM/Anno1602.EXE"
+	POL_Wine_WaitExit "Anno1602.EXE"
+else
+	POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
+	POL_Wine start /unix "$APP_ANSWER"
+	POL_Wine_WaitExit "$TITLE"
 fi
 
+POL_System_TmpCreate "$PREFIX"
 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_Download http://s2.pliki.info/28088/smackw32.dll
+cp "$POL_System_TmpDir/smackw32.dll" "$WINEPREFIX/drive_c/Program Files/Anno 1602"
+rm "$WINEPREFIX/drive_c/Program Files/Anno 1602/Smackw32.dll"
 POL_System_TmpDelete
-
-POL_Shortcut "1602.exe" "$TITLE"
-
-POL_SetupWindow_message "$(eval_gettext 'Installation finished.')" "$TITLE"
-
+ 
+POL_Shortcut "START.exe" "$TITLE" "1602.ico"
+ 
 POL_SetupWindow_Close
 exit
\ No newline at end of file

New source code

#!/bin/bash
# Date : 2017-11-21 17:34
# Wine version used : 2.0.3
# Distribution used to test : Ubuntu 17.04
# Author : LinuxScripter
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Anno 1602"
PREFIX="Anno1602"
WORKING_WINE_VERSION="2.0.3"
EDITOR="SunFlowers"
GAME_URL="http://anno.uk.ubi.com/pc/history1602.php"
AUTHOR="LinuxScripter"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_SetupWindow_InstallMethod "LOCAL,CD"
if [ "$INSTALL_METHOD" == "CD" ];then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "autorun.cdd"
        POL_Wine start /unix "$CDROM/Anno1602.EXE"
        POL_Wine_WaitExit "Anno1602.EXE"
else
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
        POL_Wine start /unix "$APP_ANSWER"
        POL_Wine_WaitExit "$TITLE"
fi

POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download http://s2.pliki.info/28088/smackw32.dll
cp "$POL_System_TmpDir/smackw32.dll" "$WINEPREFIX/drive_c/Program Files/Anno 1602"
rm "$WINEPREFIX/drive_c/Program Files/Anno 1602/Smackw32.dll"
POL_System_TmpDelete
 
POL_Shortcut "START.exe" "$TITLE" "1602.ico"
 
POL_SetupWindow_Close
exit

Antwoorden

alexnanni16 Vrijdag 17 Maart 2017 om 13:41
alexnanni16 Anonymous

Bericht

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

Antwoorden

LinuxScripter Woensdag 6 Januari 2016 om 19:22
LinuxScripter Anonymous

Warning

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

Bericht

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

Antwoorden

Woensdag 6 Januari 2016 om 21:44
There's no version 1.9, only 1.9.0
Did you test those changes?
Anonymous
Donderdag 7 Januari 2016 om 14:40
Of course.
Donderdag 7 Januari 2016 om 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

Aangepast door petch