The Settlers III Gold Edition
Informations
Creator | Message |
---|---|
odziom91
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks1 2 DescriptionThe Settlers III (German: Die Siedler III) is a real-time strategy computer game developed by Blue Byte Software. Source code#!/bin/bash # # Changelog: # (2014-07-06 21:35) - create s3videofix.reg file and run it # with regedit.exe, add OS checker for # taskset -c 0 command # (2014-07-06 23:11) - change echo to cat with EOT syntax, # delete repeated code, create a common # part of code for every type installation # (2014-07-06 23:55) - add screen resolution mode selector # add S3 configuration # (2014-07-10 21:47) - change wine version to 1.5.0 - it helps to: # fix video in campains (no more freezing) # fix xrandr command in 1024x768 resolution # (2014-07-10 22:10) - change taskset -c 0 to taskset -pc 0 $$ # lag fix works correctly # # # ToDo: # - add a multiplayer app - aLobby (java failed in now :( ) # # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum # Date : (2014-07-11 00-48) # Last revision : (2014-07-10 22-10) # Wine version used : 1.5.0 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" WORKING_WINE_VERSION="1.5.0" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" POL_System_TmpCreate "s3tmp" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win2000" POL_Call POL_Install_iv50 POL_Call POL_Install_directplay # Choose installation mode: POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'Version from CD-Action Polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" if [ "$APP_ANSWER" == "0" ]; then # Version from retail CD POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" SETUP_EXE="$CDROM/setup.exe" elif [ "$APP_ANSWER" == "1" ]; then # Version from CD-Action magazine - January 2006 (number 121) POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" SETUP_EXE="$CDROM/Full/Settlers III/setup.exe" elif [ "$APP_ANSWER" == "2" ]; then # Other file localization cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" fi POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then # Lag Fix POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -pc 0 $$" fi POL_Shortcut "SETUPS3.EXE" "$TITLE $(eval_gettext 'Configuration')" cd "$POL_System_TmpDir" # Choose screen resolution: POL_SetupWindow_menu_num "$(eval_gettext 'Select a screen resolution:')" "$TITLE" "$(eval_gettext '1024x768')~$(eval_gettext '800x600')~$(eval_gettext '640x480')" "~" if [ "$APP_ANSWER" == "0" ]; then # 1024x768 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000002 EOF elif [ "$APP_ANSWER" == "1" ]; then # 800x600 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000001 EOF elif [ "$APP_ANSWER" == "2" ]; then # 640x480 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000000 EOF fi POL_Wine regedit.exe resolution.reg POL_Wine_WaitExit "$(eval_gettext 'resolution fix')" # Fix crash video - registry edit with system.reg file cat << EOF > s3videofix.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Intro"=dword:00000000 EOF POL_Wine regedit.exe s3videofix.reg POL_Wine_WaitExit "$(eval_gettext 'video fix')" # Complete message POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" POL_System_TmpDelete POL_SetupWindow_Close exit |
Contributions
Filters:
ContributeMember | Message |
Commander_Keen | Monday 8 March 2021 at 20:26 |
Commander_Keen
|
MessageMinor issue: Script doesn't find setup. (can be redirected manually) Major issue: POL crashes when trying to start installation Replies |
xlours | Friday 7 July 2017 at 16:28 |
xlours
|
Messagehello this is a very old post by i rediscover this game in my drawer ;-) i try to use this script to launch my "The Settlers III" which is not the "Gold edition" but it fails.
i use Mageia 5 with Pentium(R) Dual-Core CPU E5500 @ 2.80GHz with a NVIDIA card G72 [GeForce 7200 GS / 7300 SE]
the DirectX present on the CD-ROM is DX6CORE.EXE i have on the CD-ROM 2 setup. which one should i use ? .../S3_F160_CD1/S3/SETUPS3.EXE ---/S3_F160_CD1/S3/INSTALL/SETUP.EXE and of course an autorun : .../S3_F160_CD1/S3/AUTORUN.EXE
any help is granted
RepliesTuesday 2 January 2018 at 14:38
|
odziom91 | Friday 11 July 2014 at 0:50 |
odziom91
|
InformationThis update has been approved by the team. Differences@@ -7,6 +7,14 @@ # (2014-07-06 23:11) - change echo to cat with EOT syntax, # delete repeated code, create a common # part of code for every type installation +# (2014-07-06 23:55) - add screen resolution mode selector +# add S3 configuration +# (2014-07-10 21:47) - change wine version to 1.5.0 - it helps to: +# fix video in campains (no more freezing) +# fix xrandr command in 1024x768 resolution +# (2014-07-10 22:10) - change taskset -c 0 to taskset -pc 0 $$ +# lag fix works correctly +# # # ToDo: # - add a multiplayer app - aLobby (java failed in now :( ) @@ -14,9 +22,9 @@ # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum -# Date : (2014-07-06 23-55) -# Last revision : (2014-07-06 23-11) -# Wine version used : 1.7.21 +# Date : (2014-07-11 00-48) +# Last revision : (2014-07-10 22-10) +# Wine version used : 1.5.0 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail @@ -26,7 +34,7 @@ TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" -WORKING_WINE_VERSION="1.7.21" +WORKING_WINE_VERSION="1.5.0" POL_SetupWindow_Init POL_Debug_Init @@ -62,16 +70,55 @@ SETUP_EXE="$APP_ANSWER" fi -# Install a game POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then - POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" + # Lag Fix + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -pc 0 $$" fi +POL_Shortcut "SETUPS3.EXE" "$TITLE $(eval_gettext 'Configuration')" -# Fix crash video - registry edit with system.reg file cd "$POL_System_TmpDir" + +# Choose screen resolution: +POL_SetupWindow_menu_num "$(eval_gettext 'Select a screen resolution:')" "$TITLE" "$(eval_gettext '1024x768')~$(eval_gettext '800x600')~$(eval_gettext '640x480')" "~" +if [ "$APP_ANSWER" == "0" ]; then + # 1024x768 + +cat << EOF > resolution.reg +REGEDIT4 + +[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] +"Resolution"=dword:00000002 +EOF + +elif [ "$APP_ANSWER" == "1" ]; then + # 800x600 + +cat << EOF > resolution.reg +REGEDIT4 + +[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] +"Resolution"=dword:00000001 +EOF + +elif [ "$APP_ANSWER" == "2" ]; then + # 640x480 + +cat << EOF > resolution.reg +REGEDIT4 + +[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] +"Resolution"=dword:00000000 +EOF + +fi + +POL_Wine regedit.exe resolution.reg +POL_Wine_WaitExit "$(eval_gettext 'resolution fix')" + +# Fix crash video - registry edit with system.reg file cat << EOF > s3videofix.reg REGEDIT4 New source code#!/bin/bash # # Changelog: # (2014-07-06 21:35) - create s3videofix.reg file and run it # with regedit.exe, add OS checker for # taskset -c 0 command # (2014-07-06 23:11) - change echo to cat with EOT syntax, # delete repeated code, create a common # part of code for every type installation # (2014-07-06 23:55) - add screen resolution mode selector # add S3 configuration # (2014-07-10 21:47) - change wine version to 1.5.0 - it helps to: # fix video in campains (no more freezing) # fix xrandr command in 1024x768 resolution # (2014-07-10 22:10) - change taskset -c 0 to taskset -pc 0 $$ # lag fix works correctly # # # ToDo: # - add a multiplayer app - aLobby (java failed in now :( ) # # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum # Date : (2014-07-11 00-48) # Last revision : (2014-07-10 22-10) # Wine version used : 1.5.0 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" WORKING_WINE_VERSION="1.5.0" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" POL_System_TmpCreate "s3tmp" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win2000" POL_Call POL_Install_iv50 POL_Call POL_Install_directplay # Choose installation mode: POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'Version from CD-Action Polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" if [ "$APP_ANSWER" == "0" ]; then # Version from retail CD POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" SETUP_EXE="$CDROM/setup.exe" elif [ "$APP_ANSWER" == "1" ]; then # Version from CD-Action magazine - January 2006 (number 121) POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" SETUP_EXE="$CDROM/Full/Settlers III/setup.exe" elif [ "$APP_ANSWER" == "2" ]; then # Other file localization cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" fi POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then # Lag Fix POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -pc 0 $$" fi POL_Shortcut "SETUPS3.EXE" "$TITLE $(eval_gettext 'Configuration')" cd "$POL_System_TmpDir" # Choose screen resolution: POL_SetupWindow_menu_num "$(eval_gettext 'Select a screen resolution:')" "$TITLE" "$(eval_gettext '1024x768')~$(eval_gettext '800x600')~$(eval_gettext '640x480')" "~" if [ "$APP_ANSWER" == "0" ]; then # 1024x768 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000002 EOF elif [ "$APP_ANSWER" == "1" ]; then # 800x600 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000001 EOF elif [ "$APP_ANSWER" == "2" ]; then # 640x480 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000000 EOF fi POL_Wine regedit.exe resolution.reg POL_Wine_WaitExit "$(eval_gettext 'resolution fix')" # Fix crash video - registry edit with system.reg file cat << EOF > s3videofix.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Intro"=dword:00000000 EOF POL_Wine regedit.exe s3videofix.reg POL_Wine_WaitExit "$(eval_gettext 'video fix')" # Complete message POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" POL_System_TmpDelete POL_SetupWindow_Close exit RepliesFriday 11 July 2014 at 0:51
Friday 11 July 2014 at 1:03
Friday 11 July 2014 at 1:59
Friday 11 July 2014 at 10:23
Friday 11 July 2014 at 11:25
Friday 11 July 2014 at 12:06
Friday 11 July 2014 at 12:24
Friday 11 July 2014 at 13:27
Friday 11 July 2014 at 15:05
Friday 11 July 2014 at 15:18
Friday 11 July 2014 at 22:39
Friday 11 July 2014 at 23:21
Saturday 12 July 2014 at 22:57
Saturday 8 November 2014 at 16:20
Saturday 8 November 2014 at 17:15
Monday 12 September 2016 at 14:40
Monday 12 September 2016 at 14:56
Wednesday 14 September 2016 at 23:39
|
odziom91 | Thursday 10 July 2014 at 22:11 |
odziom91
|
WarningThis update has not been approved yet by the team. Differences@@ -7,6 +7,13 @@ # (2014-07-06 23:11) - change echo to cat with EOT syntax, # delete repeated code, create a common # part of code for every type installation +# (2014-07-06 23:55) - add screen resolution mode selector +# add S3 configuration +# (2014-07-10 21:47) - change wine version to 1.5.0 - it helps to: +# fix video in campains (no more freezing) +# fix xrandr command in 1024x768 resolution +# +# # # ToDo: # - add a multiplayer app - aLobby (java failed in now :( ) @@ -14,9 +21,9 @@ # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum -# Date : (2014-07-06 23-55) -# Last revision : (2014-07-06 23-11) -# Wine version used : 1.7.21 +# Date : (2014-07-10 22-10) +# Last revision : (2014-07-06 23-55) +# Wine version used : 1.5.0 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail @@ -26,7 +33,7 @@ TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" -WORKING_WINE_VERSION="1.7.21" +WORKING_WINE_VERSION="1.5.0" POL_SetupWindow_Init POL_Debug_Init @@ -62,16 +69,54 @@ SETUP_EXE="$APP_ANSWER" fi -# Install a game POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" fi +POL_Shortcut "SETUPS3.EXE" "$TITLE $(eval_gettext 'Configuration')" -# Fix crash video - registry edit with system.reg file cd "$POL_System_TmpDir" + +# Choose screen resolution: +POL_SetupWindow_menu_num "$(eval_gettext 'Select a screen resolution:')" "$TITLE" "$(eval_gettext '1024x768')~$(eval_gettext '800x600')~$(eval_gettext '640x480')" "~" +if [ "$APP_ANSWER" == "0" ]; then + # 1024x768 + +cat << EOF > resolution.reg +REGEDIT4 + +[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] +"Resolution"=dword:00000002 +EOF + +elif [ "$APP_ANSWER" == "1" ]; then + # 800x600 + +cat << EOF > resolution.reg +REGEDIT4 + +[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] +"Resolution"=dword:00000001 +EOF + +elif [ "$APP_ANSWER" == "2" ]; then + # 640x480 + +cat << EOF > resolution.reg +REGEDIT4 + +[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] +"Resolution"=dword:00000000 +EOF + +fi + +POL_Wine regedit.exe resolution.reg +POL_Wine_WaitExit "$(eval_gettext 'resolution fix')" + +# Fix crash video - registry edit with system.reg file cat << EOF > s3videofix.reg REGEDIT4 New source code#!/bin/bash # # Changelog: # (2014-07-06 21:35) - create s3videofix.reg file and run it # with regedit.exe, add OS checker for # taskset -c 0 command # (2014-07-06 23:11) - change echo to cat with EOT syntax, # delete repeated code, create a common # part of code for every type installation # (2014-07-06 23:55) - add screen resolution mode selector # add S3 configuration # (2014-07-10 21:47) - change wine version to 1.5.0 - it helps to: # fix video in campains (no more freezing) # fix xrandr command in 1024x768 resolution # # # # ToDo: # - add a multiplayer app - aLobby (java failed in now :( ) # # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum # Date : (2014-07-10 22-10) # Last revision : (2014-07-06 23-55) # Wine version used : 1.5.0 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" WORKING_WINE_VERSION="1.5.0" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" POL_System_TmpCreate "s3tmp" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win2000" POL_Call POL_Install_iv50 POL_Call POL_Install_directplay # Choose installation mode: POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'Version from CD-Action Polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" if [ "$APP_ANSWER" == "0" ]; then # Version from retail CD POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" SETUP_EXE="$CDROM/setup.exe" elif [ "$APP_ANSWER" == "1" ]; then # Version from CD-Action magazine - January 2006 (number 121) POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" SETUP_EXE="$CDROM/Full/Settlers III/setup.exe" elif [ "$APP_ANSWER" == "2" ]; then # Other file localization cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" fi POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" fi POL_Shortcut "SETUPS3.EXE" "$TITLE $(eval_gettext 'Configuration')" cd "$POL_System_TmpDir" # Choose screen resolution: POL_SetupWindow_menu_num "$(eval_gettext 'Select a screen resolution:')" "$TITLE" "$(eval_gettext '1024x768')~$(eval_gettext '800x600')~$(eval_gettext '640x480')" "~" if [ "$APP_ANSWER" == "0" ]; then # 1024x768 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000002 EOF elif [ "$APP_ANSWER" == "1" ]; then # 800x600 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000001 EOF elif [ "$APP_ANSWER" == "2" ]; then # 640x480 cat << EOF > resolution.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Resolution"=dword:00000000 EOF fi POL_Wine regedit.exe resolution.reg POL_Wine_WaitExit "$(eval_gettext 'resolution fix')" # Fix crash video - registry edit with system.reg file cat << EOF > s3videofix.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Intro"=dword:00000000 EOF POL_Wine regedit.exe s3videofix.reg POL_Wine_WaitExit "$(eval_gettext 'video fix')" # Complete message POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" POL_System_TmpDelete POL_SetupWindow_Close exit Replies |
Kumo | Thursday 10 July 2014 at 13:20 |
Kumo
|
MessageThis is awesome! I actually wanted to start POL scripting myself just to do this, but now you beat me to it ;). I also like that you offer choosing an arbitrary file. However, I think one still needs an option for the GOG version since that adds another executable that should be used. If used like this, the game always asks for the CD-Key after it started even if it was always entered before. Also, I think these days most people can run 1024x768 and so I would suggest to add that to the registry fix. Now the only thing I'm missing is getting rid of the other movies so that I can play the mission. (That seemed to be less a problem for me with the latest 1.5 version of wine by the way.) I don't have time to test the modifications right now, but I will try to add them later if you don't mind or are faster than I. Replies |
odziom91 | Monday 7 July 2014 at 0:03 |
odziom91
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,89 @@ +#!/bin/bash +# +# Changelog: +# (2014-07-06 21:35) - create s3videofix.reg file and run it +# with regedit.exe, add OS checker for +# taskset -c 0 command +# (2014-07-06 23:11) - change echo to cat with EOT syntax, +# delete repeated code, create a common +# part of code for every type installation +# +# ToDo: +# - add a multiplayer app - aLobby (java failed in now :( ) +# +# App: The Settlers III Gold Edition +# Category: Games +# Wine rating: Platinum +# Date : (2014-07-06 23-55) +# Last revision : (2014-07-06 23-11) +# Wine version used : 1.7.21 +# Distribution used to test : Linux Mint 17 "Qiana" x64 +# Author : OdzioM +# Licence : Retail + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="The Settlers III Gold Edition" +PREFIX="TheSettlers3" +WORKING_WINE_VERSION="1.7.21" + +POL_SetupWindow_Init +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" + +POL_System_TmpCreate "s3tmp" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" +Set_OS "win2000" +POL_Call POL_Install_iv50 +POL_Call POL_Install_directplay + +# Choose installation mode: +POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'Version from CD-Action Polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" + +if [ "$APP_ANSWER" == "0" ]; then + # Version from retail CD + POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "setup.exe" + SETUP_EXE="$CDROM/setup.exe" +elif [ "$APP_ANSWER" == "1" ]; then + # Version from CD-Action magazine - January 2006 (number 121) + POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" + SETUP_EXE="$CDROM/Full/Settlers III/setup.exe" +elif [ "$APP_ANSWER" == "2" ]; then + # Other file localization + cd "$HOME" + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" + SETUP_EXE="$APP_ANSWER" +fi + +# Install a game +POL_Wine "$SETUP_EXE" +POL_Wine_WaitExit "$TITLE" +POL_Shortcut "S3.EXE" "$TITLE" +if [ "$POL_OS" == "Linux" ]; then + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" +fi + +# Fix crash video - registry edit with system.reg file +cd "$POL_System_TmpDir" +cat << EOF > s3videofix.reg +REGEDIT4 + +[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] +"Intro"=dword:00000000 +EOF +POL_Wine regedit.exe s3videofix.reg +POL_Wine_WaitExit "$(eval_gettext 'video fix')" + +# Complete message +POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" + +POL_System_TmpDelete +POL_SetupWindow_Close +exit \ No newline at end of file New source code#!/bin/bash # # Changelog: # (2014-07-06 21:35) - create s3videofix.reg file and run it # with regedit.exe, add OS checker for # taskset -c 0 command # (2014-07-06 23:11) - change echo to cat with EOT syntax, # delete repeated code, create a common # part of code for every type installation # # ToDo: # - add a multiplayer app - aLobby (java failed in now :( ) # # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum # Date : (2014-07-06 23-55) # Last revision : (2014-07-06 23-11) # Wine version used : 1.7.21 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" WORKING_WINE_VERSION="1.7.21" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" POL_System_TmpCreate "s3tmp" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win2000" POL_Call POL_Install_iv50 POL_Call POL_Install_directplay # Choose installation mode: POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'Version from CD-Action Polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" if [ "$APP_ANSWER" == "0" ]; then # Version from retail CD POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" SETUP_EXE="$CDROM/setup.exe" elif [ "$APP_ANSWER" == "1" ]; then # Version from CD-Action magazine - January 2006 (number 121) POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" SETUP_EXE="$CDROM/Full/Settlers III/setup.exe" elif [ "$APP_ANSWER" == "2" ]; then # Other file localization cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" fi # Install a game POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" fi # Fix crash video - registry edit with system.reg file cd "$POL_System_TmpDir" cat << EOF > s3videofix.reg REGEDIT4 [HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General] "Intro"=dword:00000000 EOF POL_Wine regedit.exe s3videofix.reg POL_Wine_WaitExit "$(eval_gettext 'video fix')" # Complete message POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" POL_System_TmpDelete POL_SetupWindow_Close exit RepliesMonday 7 July 2014 at 0:16
Monday 7 July 2014 at 0:19
|
odziom91 | Sunday 6 July 2014 at 23:11 |
odziom91
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,92 @@ +#!/bin/bash +# +# Changelog: +# (2014-07-06 21:35) - create s3videofix.reg file and run it +# with regedit.exe, add OS checker for +# taskset -c 0 command +# +# ToDo: +# - add a multiplayer app - aLobby (java failed in now :( ) +# +# App: The Settlers III Gold Edition +# Category: Games +# Wine rating: Platinum +# Date : (2014-07-06 21-35) +# Last revision : (2014-07-06 21-35) +# Wine version used : 1.7.21 +# Distribution used to test : Linux Mint 17 "Qiana" x64 +# Author : OdzioM +# Licence : Retail + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="The Settlers III Gold Edition" +PREFIX="TheSettlers3" +WORKING_WINE_VERSION="1.7.21" + +POL_SetupWindow_Init +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" + +POL_System_TmpCreate "s3tmp" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" +Set_OS "win2000" +POL_Call POL_Install_iv50 +POL_Call POL_Install_directplay + +# Choose installation mode: +POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'version from CD-Action polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" + +if [ "$APP_ANSWER" == "0" ]; then + # Version from retail CD + POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "setup.exe" + POL_Wine "$CDROM/setup.exe" + POL_Wine_WaitExit "$TITLE" + POL_Shortcut "S3.EXE" "$TITLE" + if [ "$POL_OS" == "Linux" ]; then + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" + fi +elif [ "$APP_ANSWER" == "1" ]; then + # Version from CD-Action magazine - January 2006 (number 121) + POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" + POL_Wine "$CDROM/Full/Settlers III/setup.exe" + POL_Wine_WaitExit "$TITLE" + POL_Shortcut "S3.EXE" "$TITLE" + if [ "$POL_OS" == "Linux" ]; then + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" + fi +elif [ "$APP_ANSWER" == "2" ]; then + # Other file localization + cd "$HOME" + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" + SETUP_EXE="$APP_ANSWER" + POL_Wine "$SETUP_EXE" + POL_Wine_WaitExit "$TITLE" + POL_Shortcut "S3.EXE" "$TITLE" + if [ "$POL_OS" == "Linux" ]; then + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" + fi +fi + +# Fix crash video - registry edit with system.reg file +cd "$POL_System_TmpDir" +echo 'REGEDIT4' > s3videofix.reg +echo '' >> s3videofix.reg +echo '[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General]' >> s3videofix.reg +echo '"Intro"=dword:00000000' >> s3videofix.reg +POL_Wine regedit.exe s3videofix.reg +POL_Wine_WaitExit "$(eval_gettext 'video fix')" + +# Complete message +POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" + +POL_System_TmpDelete +POL_SetupWindow_Close +exit \ No newline at end of file New source code#!/bin/bash # # Changelog: # (2014-07-06 21:35) - create s3videofix.reg file and run it # with regedit.exe, add OS checker for # taskset -c 0 command # # ToDo: # - add a multiplayer app - aLobby (java failed in now :( ) # # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum # Date : (2014-07-06 21-35) # Last revision : (2014-07-06 21-35) # Wine version used : 1.7.21 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" WORKING_WINE_VERSION="1.7.21" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" POL_System_TmpCreate "s3tmp" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win2000" POL_Call POL_Install_iv50 POL_Call POL_Install_directplay # Choose installation mode: POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'version from CD-Action polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" if [ "$APP_ANSWER" == "0" ]; then # Version from retail CD POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" POL_Wine "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" fi elif [ "$APP_ANSWER" == "1" ]; then # Version from CD-Action magazine - January 2006 (number 121) POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" POL_Wine "$CDROM/Full/Settlers III/setup.exe" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" fi elif [ "$APP_ANSWER" == "2" ]; then # Other file localization cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" if [ "$POL_OS" == "Linux" ]; then POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" fi fi # Fix crash video - registry edit with system.reg file cd "$POL_System_TmpDir" echo 'REGEDIT4' > s3videofix.reg echo '' >> s3videofix.reg echo '[HKEY_LOCAL_MACHINE\Software\BlueByte\Siedler3\1.0\General]' >> s3videofix.reg echo '"Intro"=dword:00000000' >> s3videofix.reg POL_Wine regedit.exe s3videofix.reg POL_Wine_WaitExit "$(eval_gettext 'video fix')" # Complete message POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" POL_System_TmpDelete POL_SetupWindow_Close exit RepliesSunday 6 July 2014 at 23:30
|
odziom91 | Sunday 6 July 2014 at 21:51 |
odziom91
|
WarningThis update has not been approved yet by the team. Differences@@ -0,0 +1,76 @@ +#!/bin/bash +# +# ToDo: +# - add a multiplayer app - aLobby (java failed for now :( ) +# +# App: The Settlers III Gold Edition +# Category: Games +# Wine rating: Platinum +# Date : (2014-07-06 21-35) +# Last revision : (2014-07-06 21-35) +# Wine version used : 1.7.21 +# Distribution used to test : Linux Mint 17 "Qiana" x64 +# Author : OdzioM +# Licence : Retail + +[ "$PLAYONLINUX" = "" ] && exit 0 +source "$PLAYONLINUX/lib/sources" + +TITLE="The Settlers III Gold Edition" +PREFIX="TheSettlers3" +WORKING_WINE_VERSION="1.7.21" + +POL_SetupWindow_Init +POL_Debug_Init + +POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" + +POL_System_TmpCreate "s3tmp" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" +Set_OS "win2000" +POL_Call POL_Install_iv50 +POL_Call POL_Install_directplay + +# Choose installation mode: +POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'version from CD-Action polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" + + if [ "$APP_ANSWER" == "0" ]; then + # Version from retail CD + POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "setup.exe" + POL_Wine "$CDROM/setup.exe" + POL_Wine_WaitExit "$TITLE" + POL_Shortcut "S3.EXE" "$TITLE" + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" + elif [ "$APP_ANSWER" == "1" ]; then + # Version from CD-Action magazine - January 2006 (number 121) + POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" + POL_SetupWindow_cdrom + POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" + POL_Wine "$CDROM/Full/Settlers III/setup.exe" + POL_Wine_WaitExit "$TITLE" + POL_Shortcut "S3.EXE" "$TITLE" + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" + elif [ "$APP_ANSWER" == "2" ]; then + # Other file localization + cd "$HOME" + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" + SETUP_EXE="$APP_ANSWER" + POL_Wine "$SETUP_EXE" + POL_Wine_WaitExit "$TITLE" + POL_Shortcut "S3.EXE" "$TITLE" + POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" + fi + +# Fix crash video - registry edit with system.reg file +sed -i 's\"Intro"=dword:00000001\"Intro"=dword:00000000\g' $WINEPREFIX/system.reg +POL_Wine_WaitExit "$(eval_gettext 'video fix')" + +# Complete message +POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" + +POL_System_TmpDelete +POL_SetupWindow_Close +exit \ No newline at end of file New source code#!/bin/bash # # ToDo: # - add a multiplayer app - aLobby (java failed for now :( ) # # App: The Settlers III Gold Edition # Category: Games # Wine rating: Platinum # Date : (2014-07-06 21-35) # Last revision : (2014-07-06 21-35) # Wine version used : 1.7.21 # Distribution used to test : Linux Mint 17 "Qiana" x64 # Author : OdzioM # Licence : Retail [ "$PLAYONLINUX" = "" ] && exit 0 source "$PLAYONLINUX/lib/sources" TITLE="The Settlers III Gold Edition" PREFIX="TheSettlers3" WORKING_WINE_VERSION="1.7.21" POL_SetupWindow_Init POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Blue Byte Software" "" "OdzioM" "$PREFIX" POL_System_TmpCreate "s3tmp" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" Set_OS "win2000" POL_Call POL_Install_iv50 POL_Call POL_Install_directplay # Choose installation mode: POL_SetupWindow_menu_num "$(eval_gettext 'Select a version of installation disc:')" "$TITLE" "$(eval_gettext 'Retail CD')~$(eval_gettext 'version from CD-Action polish magazine - 01.2006 - number 121')~$(eval_gettext 'Other destination or other CD/DVD')" "~" if [ "$APP_ANSWER" == "0" ]; then # Version from retail CD POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" POL_Wine "$CDROM/setup.exe" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" elif [ "$APP_ANSWER" == "1" ]; then # Version from CD-Action magazine - January 2006 (number 121) POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disc drive.')" "$TITLE" POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "Full/Settlers III/setup.exe" POL_Wine "$CDROM/Full/Settlers III/setup.exe" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" elif [ "$APP_ANSWER" == "2" ]; then # Other file localization cd "$HOME" POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE" SETUP_EXE="$APP_ANSWER" POL_Wine "$SETUP_EXE" POL_Wine_WaitExit "$TITLE" POL_Shortcut "S3.EXE" "$TITLE" POL_Shortcut_InsertBeforeWine "$TITLE" "taskset -c 0" fi # Fix crash video - registry edit with system.reg file sed -i 's\"Intro"=dword:00000001\"Intro"=dword:00000000\g' $WINEPREFIX/system.reg POL_Wine_WaitExit "$(eval_gettext 'video fix')" # Complete message POL_SetupWindow_message "$(eval_gettext 'Installation complete!\nTo run $TITLE please select $TITLE icon from your desktop.\n\nThank you for using this installation script! :)')" "$TITLE" POL_System_TmpDelete POL_SetupWindow_Close exit RepliesSunday 6 July 2014 at 22:13
Sunday 6 July 2014 at 22:46
Sunday 6 July 2014 at 22:59
|
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