Theme Park World

Informations

Creator Message
NSLW

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 15570
Wine: 1.8-rc4

Feedbacks

Source code

#!/bin/bash
# Date : (2009-09-17 18-00)
# Last revision : (2015-12-16)
# Wine version used : 1.8-rc4
# Distribution used to test : (Not tested)
# Author : NSLW
# Modified by MTres19
# Licence : Retail

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

TITLE="Theme Park World"
PREFIX="ThemeParkWorld"
WINEVERSION="1.8-rc4"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_cdrom
POL_Wine_InstallCDROM "d"

Set_OS "win2k"

POL_Wine start /unix "$CDROM/Autorun.exe"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_VMS "32"

POL_Shortcut "TP.EXE" "$TITLE"

POL_Call POL_Function_NoCDWarning

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
MTres19 Saturday 26 December 2015 at 19:25
MTres19 Anonymous

Message

Could my fix for POL_Wine_WaitExit be approved? As petch pointed out, it could be confusing without it.

Replies

MTres19 Tuesday 22 December 2015 at 21:08
MTres19 Anonymous

Information

This update has been approved by the team.

Differences

@@ -26,8 +26,8 @@
 
 Set_OS "win2k"
 
-POL_Wine_WaitBefore "$TITLE"
 POL_Wine start /unix "$CDROM/Autorun.exe"
+POL_Wine_WaitExit "$TITLE"
 
 POL_SetupWindow_VMS "32"
 

New source code

#!/bin/bash
# Date : (2009-09-17 18-00)
# Last revision : (2015-12-16)
# Wine version used : 1.8-rc4
# Distribution used to test : (Not tested)
# Author : NSLW
# Modified by MTres19
# Licence : Retail

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

TITLE="Theme Park World"
PREFIX="ThemeParkWorld"
WINEVERSION="1.8-rc4"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_cdrom
POL_Wine_InstallCDROM "d"

Set_OS "win2k"

POL_Wine start /unix "$CDROM/Autorun.exe"
POL_Wine_WaitExit "$TITLE"

POL_SetupWindow_VMS "32"

POL_Shortcut "TP.EXE" "$TITLE"

POL_Call POL_Function_NoCDWarning

POL_SetupWindow_Close
exit 0

Replies

MTres19 Saturday 19 December 2015 at 16:28
MTres19 Anonymous

Warning

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

Message

Same as before, but no POL_SetupWindow_messages. (They aren't really necessary.)

Differences

@@ -1,116 +1,39 @@
 #!/bin/bash
 # Date : (2009-09-17 18-00)
-# Last revision : (2009-12-07 18-00)
-# Wine version used : 1.1.38
-# Distribution used to test : Fedora 11
+# Last revision : (2015-12-16)
+# Wine version used : 1.8-rc4
+# Distribution used to test : (Not tested)
 # Author : NSLW
+# Modified by MTres19
 # Licence : Retail
-# Depend : -
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-TYTUL="Theme Park World"
-PREFIX="TPW"
-WORKINGWINEVERSION="1.1.38"
+TITLE="Theme Park World"
+PREFIX="ThemeParkWorld"
+WINEVERSION="1.8-rc4"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"
 
-POL_SetupWindow_make_icon_for_shortcut()
-{
-convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
-}
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
 
-wget http://upload.wikimedia.org/wikipedia/en/a/a5/SimThemeParkWorld.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
-
-POL_SetupWindow_presentation "$TYTUL" "Bullfrog Productions" "N/A" "NSLW" "$PREFIX" 
-
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
-
-POL_SetupWindow_message "Please insert $TYTUL media into your disk drive."
 POL_SetupWindow_cdrom
-POL_SetupWindow_check_cdrom "Autorun.exe"
+POL_Wine_InstallCDROM "d"
 
-POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
-Use_WineVersion "$WORKINGWINEVERSION"
-POL_SetupWindow_prefixcreate
-
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%" |tr -d '\015' | tr -d '\010'`
-PROGRAMFILES=${PROGRAMFILES:3}
-
-#adding CD-ROM as drive e: to winecfg
-cd "$WINEPREFIX/dosdevices"
-ln -s "$CDROM" e:
-
-cd "$WINEPREFIX/drive_c/windows/temp/"
-echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
-echo "\"e:\"=\"cdrom\"" >> cdrom.reg
-regedit cdrom.reg
-sleep 5
-
-#SafeDisk will work only on MS Windows 2000
 Set_OS "win2k"
 
-#starting installation
-wine start /unix "$CDROM/Autorun.exe"
-POL_SetupWindow_message "Click \"Next\" when installation will finish." "$TYTUL"
-
-POL_SetupWindow_menu "What is your language version?" "Languages" "european and american~traditional chinese~simplified chinese~korean~japanese" "~"
-	LANGUAGEVERSION=$APP_ANSWER
-	if [ "$APP_ANSWER" == "european and american" ]; then
-	LANGUAGEVERSIONSHRT="EUROAMER"
-	elif [ "$APP_ANSWER" == "traditional chinese" ]
-	then
-	LANGUAGEVERSIONSHRT="TCHINESE"
-	elif [ "$APP_ANSWER" == "simplified chinese" ]
-	then
-	LANGUAGEVERSIONSHRT="SCHINESE"
-	elif [ "$APP_ANSWER" == "korean" ]
-	then
-	LANGUAGEVERSIONSHRT="KOREAN"
-	elif [ "$APP_ANSWER" == "japanese" ]
-	then
-	LANGUAGEVERSIONSHRT="JAPANESE"
-	fi
-
-	cd "$REPERTOIRE/ressources"
-	if [ ! -e "TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe" ]; then
-	POL_SetupWindow_wait_next_signal "PlayOnLinux is downloading TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe (ca. 6 MB)" "$TYTUL"
-	wget "ftp://159.153.229.114/Pub/TPW/PATCH/TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe"
-	POL_SetupWindow_detect_exit
-	fi
-	POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
-	wine "TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe"
-	POL_SetupWindow_detect_exit
-	POL_SetupWindow_message "Patch for $TYTUL has been installed successfully" "$TYTUL"	
-
-cd "$WINEPREFIX/drive_c/windows/temp/"
-#setting MouseWarpOverride to disable to get mouse working
-echo "[HKEY_CURRENT_USER\\Software\\Wine\\DirectInput]" > mwo.reg
-echo "\"MouseWarpOverride\"=\"disable\"" >> mwo.reg
-regedit mwo.reg
-
-#asking about memory size
-POL_SetupWindow_menu_list "How much memory do your graphic card have got?" "$TYTUL" "32-64-128-256-384-512-768-890-1024-2048" "-" "256"
-VMS="$APP_ANSWER"
- 
-echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg
-echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg
-regedit vms.reg
-
-#cleaning temp
-cd "$WINEPREFIX/drive_c/windows/temp/"
-rm -rf *
-
-#making shortcut
-POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Bullfrog/Theme Park World" "TP.EXE" "" "$TYTUL" "" ""
-Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TYTUL"
-POL_SetupWindow_make_icon_for_shortcut "$TYTUL" "*_tp.0.png"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$CDROM/Autorun.exe"
+
+POL_SetupWindow_VMS "32"
 
-POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
+POL_Shortcut "TP.EXE" "$TITLE"
 
-POL_SetupWindow_message_image "Please note that this game has a copy protection system\nand sadly, it can cause you a problem starting this game.\n\nThere are two solutions to this:\n1) be patient at starting the game\n2) find unoriginal executable file for\nTheme Park World version 2.0" "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"
+POL_Call POL_Function_NoCDWarning
 
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2009-09-17 18-00)
# Last revision : (2015-12-16)
# Wine version used : 1.8-rc4
# Distribution used to test : (Not tested)
# Author : NSLW
# Modified by MTres19
# Licence : Retail

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

TITLE="Theme Park World"
PREFIX="ThemeParkWorld"
WINEVERSION="1.8-rc4"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_cdrom
POL_Wine_InstallCDROM "d"

Set_OS "win2k"

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$CDROM/Autorun.exe"

POL_SetupWindow_VMS "32"

POL_Shortcut "TP.EXE" "$TITLE"

POL_Call POL_Function_NoCDWarning

POL_SetupWindow_Close
exit 0

Replies

Saturday 19 December 2015 at 20:00
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$CDROM/Autorun.exe"
I'm a bit surprized that you don't experience issues with this combinaison, start /unix makes the program start synchronously, so the script should continue before the installation is completed (the solutions being either remove start /unix, or use POL_Wine_WaitExit instead of WaitBefore)... Does it really work as-is?
Anonymous
Tuesday 22 December 2015 at 21:03
I was hoping someone could test this, since I don't have the game, as I noted before. I'll fix the POL_Wine_WaitBefore, though.
MTres19 Friday 18 December 2015 at 21:01
MTres19 Anonymous

Warning

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

Message

Okay, try this then....

Differences

@@ -1,116 +1,42 @@
 #!/bin/bash
 # Date : (2009-09-17 18-00)
-# Last revision : (2009-12-07 18-00)
-# Wine version used : 1.1.38
-# Distribution used to test : Fedora 11
+# Last revision : (2015-12-16)
+# Wine version used : 1.8-rc4
+# Distribution used to test : (Not tested)
 # Author : NSLW
+# Modified by MTres19
 # Licence : Retail
-# Depend : -
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-TYTUL="Theme Park World"
-PREFIX="TPW"
-WORKINGWINEVERSION="1.1.38"
+TITLE="Theme Park World"
+PREFIX="ThemeParkWorld"
+WINEVERSION="1.8-rc4"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"
 
-POL_SetupWindow_make_icon_for_shortcut()
-{
-convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
-}
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
 
-wget http://upload.wikimedia.org/wikipedia/en/a/a5/SimThemeParkWorld.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
-
-POL_SetupWindow_presentation "$TYTUL" "Bullfrog Productions" "N/A" "NSLW" "$PREFIX" 
-
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
-
-POL_SetupWindow_message "Please insert $TYTUL media into your disk drive."
+POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
 POL_SetupWindow_cdrom
-POL_SetupWindow_check_cdrom "Autorun.exe"
+POL_Wine_InstallCDROM "d"
 
-POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
-Use_WineVersion "$WORKINGWINEVERSION"
-POL_SetupWindow_prefixcreate
-
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%" |tr -d '\015' | tr -d '\010'`
-PROGRAMFILES=${PROGRAMFILES:3}
-
-#adding CD-ROM as drive e: to winecfg
-cd "$WINEPREFIX/dosdevices"
-ln -s "$CDROM" e:
-
-cd "$WINEPREFIX/drive_c/windows/temp/"
-echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
-echo "\"e:\"=\"cdrom\"" >> cdrom.reg
-regedit cdrom.reg
-sleep 5
-
-#SafeDisk will work only on MS Windows 2000
 Set_OS "win2k"
 
-#starting installation
-wine start /unix "$CDROM/Autorun.exe"
-POL_SetupWindow_message "Click \"Next\" when installation will finish." "$TYTUL"
-
-POL_SetupWindow_menu "What is your language version?" "Languages" "european and american~traditional chinese~simplified chinese~korean~japanese" "~"
-	LANGUAGEVERSION=$APP_ANSWER
-	if [ "$APP_ANSWER" == "european and american" ]; then
-	LANGUAGEVERSIONSHRT="EUROAMER"
-	elif [ "$APP_ANSWER" == "traditional chinese" ]
-	then
-	LANGUAGEVERSIONSHRT="TCHINESE"
-	elif [ "$APP_ANSWER" == "simplified chinese" ]
-	then
-	LANGUAGEVERSIONSHRT="SCHINESE"
-	elif [ "$APP_ANSWER" == "korean" ]
-	then
-	LANGUAGEVERSIONSHRT="KOREAN"
-	elif [ "$APP_ANSWER" == "japanese" ]
-	then
-	LANGUAGEVERSIONSHRT="JAPANESE"
-	fi
-
-	cd "$REPERTOIRE/ressources"
-	if [ ! -e "TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe" ]; then
-	POL_SetupWindow_wait_next_signal "PlayOnLinux is downloading TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe (ca. 6 MB)" "$TYTUL"
-	wget "ftp://159.153.229.114/Pub/TPW/PATCH/TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe"
-	POL_SetupWindow_detect_exit
-	fi
-	POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
-	wine "TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe"
-	POL_SetupWindow_detect_exit
-	POL_SetupWindow_message "Patch for $TYTUL has been installed successfully" "$TYTUL"	
-
-cd "$WINEPREFIX/drive_c/windows/temp/"
-#setting MouseWarpOverride to disable to get mouse working
-echo "[HKEY_CURRENT_USER\\Software\\Wine\\DirectInput]" > mwo.reg
-echo "\"MouseWarpOverride\"=\"disable\"" >> mwo.reg
-regedit mwo.reg
-
-#asking about memory size
-POL_SetupWindow_menu_list "How much memory do your graphic card have got?" "$TYTUL" "32-64-128-256-384-512-768-890-1024-2048" "-" "256"
-VMS="$APP_ANSWER"
- 
-echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg
-echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg
-regedit vms.reg
-
-#cleaning temp
-cd "$WINEPREFIX/drive_c/windows/temp/"
-rm -rf *
-
-#making shortcut
-POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Bullfrog/Theme Park World" "TP.EXE" "" "$TYTUL" "" ""
-Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TYTUL"
-POL_SetupWindow_make_icon_for_shortcut "$TYTUL" "*_tp.0.png"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$CDROM/Autorun.exe"
+
+POL_SetupWindow_VMS "32"
+
+POL_Shortcut "TP.EXE" "$TITLE"
 
-POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
+POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"
 
-POL_SetupWindow_message_image "Please note that this game has a copy protection system\nand sadly, it can cause you a problem starting this game.\n\nThere are two solutions to this:\n1) be patient at starting the game\n2) find unoriginal executable file for\nTheme Park World version 2.0" "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"
+POL_Call POL_Function_NoCDWarning
 
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2009-09-17 18-00)
# Last revision : (2015-12-16)
# Wine version used : 1.8-rc4
# Distribution used to test : (Not tested)
# Author : NSLW
# Modified by MTres19
# Licence : Retail

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

TITLE="Theme Park World"
PREFIX="ThemeParkWorld"
WINEVERSION="1.8-rc4"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
POL_Wine_InstallCDROM "d"

Set_OS "win2k"

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$CDROM/Autorun.exe"

POL_SetupWindow_VMS "32"

POL_Shortcut "TP.EXE" "$TITLE"

POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"

POL_Call POL_Function_NoCDWarning

POL_SetupWindow_Close
exit 0

Replies

Friday 18 December 2015 at 23:35
Don't forget translation support for all user-oriented messages
MTres19 Thursday 17 December 2015 at 4:11
MTres19 Anonymous

Warning

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

Message

I cleaned up the script and updated the Wine version, but I don't have the game to test it. However, the game came out in 1999, so it probably will work.

Differences

@@ -1,116 +1,42 @@
 #!/bin/bash
 # Date : (2009-09-17 18-00)
-# Last revision : (2009-12-07 18-00)
-# Wine version used : 1.1.38
-# Distribution used to test : Fedora 11
+# Last revision : (2015-12-16)
+# Wine version used : 1.8-rc4
+# Distribution used to test : (Not tested)
 # Author : NSLW
+# Modified by MTres19
 # Licence : Retail
-# Depend : -
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-TYTUL="Theme Park World"
-PREFIX="TPW"
-WORKINGWINEVERSION="1.1.38"
+TITLE="Theme Park World"
+PREFIX="ThemeParkWorld"
+WINEVERSION="1.8-rc4"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"
 
-POL_SetupWindow_make_icon_for_shortcut()
-{
-convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
-}
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
 
-wget http://upload.wikimedia.org/wikipedia/en/a/a5/SimThemeParkWorld.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
+POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
+POL_SetupWindow_cdrom
+POL_Wine_InstallCDROM "d"
 
-POL_SetupWindow_presentation "$TYTUL" "Bullfrog Productions" "N/A" "NSLW" "$PREFIX" 
+Set_OS "win98"
 
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$CDROM/Autorun.exe"
 
-POL_SetupWindow_message "Please insert $TYTUL media into your disk drive."
-POL_SetupWindow_cdrom
-POL_SetupWindow_check_cdrom "Autorun.exe"
+POL_SetupWindow_VMS "32"
 
-POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
-Use_WineVersion "$WORKINGWINEVERSION"
-POL_SetupWindow_prefixcreate
-
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%" |tr -d '\015' | tr -d '\010'`
-PROGRAMFILES=${PROGRAMFILES:3}
-
-#adding CD-ROM as drive e: to winecfg
-cd "$WINEPREFIX/dosdevices"
-ln -s "$CDROM" e:
-
-cd "$WINEPREFIX/drive_c/windows/temp/"
-echo "[HKEY_LOCAL_MACHINE\\Software\\Wine\\Drives]" > cdrom.reg
-echo "\"e:\"=\"cdrom\"" >> cdrom.reg
-regedit cdrom.reg
-sleep 5
-
-#SafeDisk will work only on MS Windows 2000
-Set_OS "win2k"
-
-#starting installation
-wine start /unix "$CDROM/Autorun.exe"
-POL_SetupWindow_message "Click \"Next\" when installation will finish." "$TYTUL"
-
-POL_SetupWindow_menu "What is your language version?" "Languages" "european and american~traditional chinese~simplified chinese~korean~japanese" "~"
-	LANGUAGEVERSION=$APP_ANSWER
-	if [ "$APP_ANSWER" == "european and american" ]; then
-	LANGUAGEVERSIONSHRT="EUROAMER"
-	elif [ "$APP_ANSWER" == "traditional chinese" ]
-	then
-	LANGUAGEVERSIONSHRT="TCHINESE"
-	elif [ "$APP_ANSWER" == "simplified chinese" ]
-	then
-	LANGUAGEVERSIONSHRT="SCHINESE"
-	elif [ "$APP_ANSWER" == "korean" ]
-	then
-	LANGUAGEVERSIONSHRT="KOREAN"
-	elif [ "$APP_ANSWER" == "japanese" ]
-	then
-	LANGUAGEVERSIONSHRT="JAPANESE"
-	fi
-
-	cd "$REPERTOIRE/ressources"
-	if [ ! -e "TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe" ]; then
-	POL_SetupWindow_wait_next_signal "PlayOnLinux is downloading TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe (ca. 6 MB)" "$TYTUL"
-	wget "ftp://159.153.229.114/Pub/TPW/PATCH/TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe"
-	POL_SetupWindow_detect_exit
-	fi
-	POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
-	wine "TPPatchTwo${LANGUAGEVERSIONSHRT}20000324a.exe"
-	POL_SetupWindow_detect_exit
-	POL_SetupWindow_message "Patch for $TYTUL has been installed successfully" "$TYTUL"	
-
-cd "$WINEPREFIX/drive_c/windows/temp/"
-#setting MouseWarpOverride to disable to get mouse working
-echo "[HKEY_CURRENT_USER\\Software\\Wine\\DirectInput]" > mwo.reg
-echo "\"MouseWarpOverride\"=\"disable\"" >> mwo.reg
-regedit mwo.reg
-
-#asking about memory size
-POL_SetupWindow_menu_list "How much memory do your graphic card have got?" "$TYTUL" "32-64-128-256-384-512-768-890-1024-2048" "-" "256"
-VMS="$APP_ANSWER"
- 
-echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg
-echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg
-regedit vms.reg
-
-#cleaning temp
-cd "$WINEPREFIX/drive_c/windows/temp/"
-rm -rf *
-
-#making shortcut
-POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Bullfrog/Theme Park World" "TP.EXE" "" "$TYTUL" "" ""
-Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TYTUL"
-POL_SetupWindow_make_icon_for_shortcut "$TYTUL" "*_tp.0.png"
+POL_Shortcut "TP.EXE" "$TITLE"
 
-POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
+POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"
 
-POL_SetupWindow_message_image "Please note that this game has a copy protection system\nand sadly, it can cause you a problem starting this game.\n\nThere are two solutions to this:\n1) be patient at starting the game\n2) find unoriginal executable file for\nTheme Park World version 2.0" "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"
+POL_Call POL_Function_NoCDWarning
 
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2009-09-17 18-00)
# Last revision : (2015-12-16)
# Wine version used : 1.8-rc4
# Distribution used to test : (Not tested)
# Author : NSLW
# Modified by MTres19
# Licence : Retail

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

TITLE="Theme Park World"
PREFIX="ThemeParkWorld"
WINEVERSION="1.8-rc4"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Bullfrog Productions" "" "NSLW" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
POL_Wine_InstallCDROM "d"

Set_OS "win98"

POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$CDROM/Autorun.exe"

POL_SetupWindow_VMS "32"

POL_Shortcut "TP.EXE" "$TITLE"

POL_SetupWindow_message "$TITLE has been installed successfully" "$TITLE"

POL_Call POL_Function_NoCDWarning

POL_SetupWindow_Close
exit 0

Replies

Anonymous
Thursday 17 December 2015 at 13:03
Won't work..crash before loading installer after accessing to CD. According to https://appdb.winehq.org/objectManager.php?sClass=version&iId=6469 is it necessary to use win2k instead of win98...
Deleted account Wednesday 16 December 2015 at 14:12
Deleted account Anonymous

Message

Hi,

ThemeParkWorld is not running out of the box, after Installing and Starting I got:

[12/16/15 14:07:36] - Running wine-1.1.38 TP.EXE (Working directory : ~/.PlayOnLinux/wineprefix/TPW/drive_c/Programme/Bullfrog/Theme Park World)
wine: Modul nicht gefunden
err:winedevice:ServiceMain driver L"Secdrv" failed to load
wine: Unhandled illegal instruction at address 0x409870 (thread 0009), starting debugger...
Can't attach process 0008: error 5

After renaming SECDRV.SYS (folder windows/system32/drivers) into secdrv.sys i got:

[12/16/15 14:09:48] - Running wine-1.1.38 TP.EXE (Working directory : ~/.PlayOnLinux/wineprefix/TPW/drive_c/Programme/Bullfrog/Theme Park World)
wine: Unhandled illegal instruction at address 0x409870 (thread 0024), starting debugger...
Can't attach process 0023: error 5

which still resilt in non working... Where is the problem?

Replies

Wednesday 16 December 2015 at 23:52
Looks like SafeDisk DRM, we do not give help about DRMs
https://www.playonlinux.com/en/terms.html
Anonymous
Thursday 17 December 2015 at 3:45
According to the Wine wiki, SafeDisk is working.... Perhaps I can rewrite the script and someone could test to see if it works.
Anonymous
Monday 21 August 2023 at 12:19
I don't think it's linked to the DRM.
Anonymous
Monday 21 August 2023 at 12:19
I don't think it's linked to the DRM. I have the same issue, this complains about an invalid assembly instruction:

Unhandled exception: illegal instruction in 32-bit code (0x00409870).                                                                                                                                                           

Backtrace:                                                                                                                                                                                                                      
=>0 0x00409870 in tp (+0x9870) (0x0054fea4)                                                                                                                                                                                     
  1 0x004169b2 in tp (+0x169b2) (0x0054ff30)                                                                                                                                                                                    
  2 0x7b6293e0 in kernel32 (+0x293e0) (0x0054ff48)                                                                                                                                                                              
  3 0x7bc5ca07 in ntdll (+0x5ca07) (0x0054ff5c)                                                                                                                                                                                 
  4 0x7bc5d228 in ntdll (+0x5d228) (0x0054ffec)                                                                                                                                                                                 
0x00409870 tp+0x9870: ldsl      %ebx,%ecx     

 
Anonymous
Monday 21 August 2023 at 12:37
Installing "Theme Park World Windows 10 Fix" or "Theme Park World Windows 7 Fix" fixes the issue of the invalid instruction but the game will still not run for me.
Anonymous
Monday 21 August 2023 at 13:19
I actually managed to make it work. I'm not fluent enough with PlayOnLinux to update the script but maybe someone will know how to do that. Here is what I did:
Anonymous
Monday 21 August 2023 at 13:19
I actually managed to make it work outside of PlayOnLinux. I'm not fluent enough with PlayOnLinux to update the script but maybe someone will know how to do that. Here is what I did:

 

# Creating a dedicated prefix makes it easier to cleanup everything in case of issue
export WINEPREFIX=/home/lifo2/.wine_tpw 
# Make it match the install directory if that's not where the game is installed when you run the installer.
INSTALLDIR=$WINEPREFIX/drive_c/Program\ Files\ \(x86\)/Bullfrog/Theme\ Park\ World/

# I don't have a CD-ROM drive on my laptop so I had to dump an ISO from my old computer. You can skip this step if you can read the CD-ROM directly.
sudo mount -o loop theme_park_world.iso /mnt/cdrom/

# Install, do not run (IMPORTANT: uncheck launch game at the very end)!
wine /mnt/cdrom/Autorun.exe

# Patch to v2.0
wine TPPatchTwoEUROAMER20000324a.exe

# Fix for windows 10
# Remove TP.EXE because in the fix it's tp.exe and linux makes the difference so you'd end-up with 2 files, one of which would break things!
rm $INSTALLDIR/TP.EXE
cd Theme\ Park\ World\ Windows\ 10\ Fix/
cp -r data tp.exe usp11.dll $INSTALLDIR/
regedit tp.reg

# Finally run the game. This MUST be done from the game directory.
cd $INSTALLDIR
wine tp.exe

 

The very confusing thing is that if you run the game before doing the fix for windows 10, you break the game! You then need to do a deep cleanup (uninstall, remove remaining files on the filesystem, remove references in the register) to fix it.

Edited by Tutul

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