Jesteś tutaj

Theme Park World

Informations

Creator Wiadmości
NSLW

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 11629
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 Wiadmości
MTres19 Saturday 26 December 2015 at 19:25
MTres19 Anonymous

Wiadmości

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

Odpowiedzi

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

Odpowiedzi

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

Wiadmości

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

Odpowiedzi

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

Wiadmości

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

Odpowiedzi

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

Wiadmości

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

Odpowiedzi

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...
wayneTrain Wednesday 16 December 2015 at 14:12
wayneTrain Anonymous

Wiadmości

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?

Odpowiedzi

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.

Edytowane przez Tutul