GOG.com - RollerCoaster Tycoon: Deluxe

Informations

Creator Message
Yepoleb Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 15406
Wine: 3.0.3

Feedbacks

Description

First part of the RollerCoaster Tycoon series, created by Chris Sawyer.

Appdb.winehq.org

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-12-07 06-36)
# Last revision : (2015-12-23 04-52)
# Wine version used : 1.6.2
# Distribution used to test : Debian Sid (Unstable)
# Author : Gabriel Huber huberg18@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="rollercoaster_tycoon_deluxe"
PREFIX="RollerCoasterTycoon_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"

# Manually set the install location because we're not using the installer
# Has to match with the one in the registry patch for the DRM to work
INSTALL_LOCATION="drive_c/GOG Games/RollerCoaster Tycoon Deluxe/"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2683
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Chris Sawyer Productions / Atari" \
    "http://www.gog.com/game/$GOGID" "Gabriel Huber" "$PREFIX"

# Get setup path
POL_Call POL_GoG_setup "$GOGID" "c6516a80d361a70fd5866fdd18004c46"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"

# Extract the game files
POL_Call POL_innoextract "$POL_GoG_location" "$POL_System_TmpDir" "$INSTALL_PATH"

# Apply the registry patch
cat > "$POL_System_TmpDir/rct1.reg" << EOF
REGEDIT4

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Title"="Roll"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Path"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"SetupPath"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Executable"="RCT.EXE"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontPointSize"=dword:0000000c

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Language"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CDKey"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CharSet"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontFaceName"="MS Sans Serif"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"OKPrompt"="OK"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CancelPrompt"="Cancel"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"AddOn"=dword:00000001

EOF

POL_Wine regedit "$POL_System_TmpDir/rct1.reg"

POL_System_TmpDelete

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"

POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"

POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Monday 27 September 2021 at 15:33
Dadu042

Information

This update has been approved by the team.

Message

Wine 1.6.2 -> 3.0.3

Differences

@@ -13,7 +13,7 @@
 
 GOGID="rollercoaster_tycoon_deluxe"
 PREFIX="RollerCoasterTycoon_gog"
-WORKING_WINE_VERSION="1.6.2"
+WORKING_WINE_VERSION="3.0.3"
 
 TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
 SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-12-07 06-36)
# Last revision : (2015-12-23 04-52)
# Wine version used : 1.6.2
# Distribution used to test : Debian Sid (Unstable)
# Author : Gabriel Huber huberg18@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="rollercoaster_tycoon_deluxe"
PREFIX="RollerCoasterTycoon_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"

# Manually set the install location because we're not using the installer
# Has to match with the one in the registry patch for the DRM to work
INSTALL_LOCATION="drive_c/GOG Games/RollerCoaster Tycoon Deluxe/"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2683
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Chris Sawyer Productions / Atari" \
    "http://www.gog.com/game/$GOGID" "Gabriel Huber" "$PREFIX"

# Get setup path
POL_Call POL_GoG_setup "$GOGID" "c6516a80d361a70fd5866fdd18004c46"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"

# Extract the game files
POL_Call POL_innoextract "$POL_GoG_location" "$POL_System_TmpDir" "$INSTALL_PATH"

# Apply the registry patch
cat > "$POL_System_TmpDir/rct1.reg" << EOF
REGEDIT4

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Title"="Roll"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Path"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"SetupPath"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Executable"="RCT.EXE"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontPointSize"=dword:0000000c

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Language"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CDKey"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CharSet"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontFaceName"="MS Sans Serif"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"OKPrompt"="OK"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CancelPrompt"="Cancel"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"AddOn"=dword:00000001

EOF

POL_Wine regedit "$POL_System_TmpDir/rct1.reg"

POL_System_TmpDelete

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"

POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"

POL_SetupWindow_Close

exit 0

Replies

floleg Sunday 26 September 2021 at 21:24
floleg Anonymous

Message

Hi guys!

First of all, thanks for the great work on the installer. Overall, the game runs pretty well on my Arch Linux installation and seems pretty stable.

I'm, however, facing as well an issue with the save / load saved game functionnality. Whether in full screen or windowed mode, the program keeps crashing when entering the load / save game screen from the start menu or in game. Here's what I get from the debug log file, not much though:

[09/26/21 21:08:28] - Running wine-1.6.2 RCT.EXE (Working directory : ~/.PlayOnLinux/wineprefix/RollerCoasterTycoon_gog/drive_c/GOG Games/RollerCoaster Tycoon Deluxe)
fixme:win:EnumDisplayDevicesW ((null),0,0x32f628,0x00000000), stub!
../mesa-21.2.2/src/intel/isl/isl.c:2095: FINISHME: ../mesa-21.2.2/src/intel/isl/isl.c:isl_surf_supports_ccs: CCS for 3D textures is disabled, but a workaround is available.
wine: Unhandled page fault on read access to 0x00000004 at address 0x7e88fc64 (thread 0009), starting debugger...
winedbg: Internal crash at 0x7e628c64

Hope it helps to find a workaround, let me know what you think and if you need more information about my setup.

Replies

biga Sunday 29 May 2016 at 22:13
biga Anonymous

Message

Game runs perfect except saving and loading. When you save or load a game colours become wrong.

It requires a trick. You need to set wine to run game in a window. Then you can change resolution in game options menu. When colours become messed up after save or load, you have to change resolution in game menu. Then colours are normal again. You have to change ingame resolution after every save or load but it is very quick.

Next good hint for this game is to set up your linux desktop resolution to 1024x768 and wine window also to 1024x768. If you do that and then set your ingame resolution also to 1024x768 you play fullscreen which is fine for mouse scrolling.

 

 

Replies

Anonymous
Wednesday 1 June 2016 at 16:19
Thanks for posting a solution! Changing the resolution could also be automated with xrandr like this:
xrandr --output DVI-I-0 --mode 1024x768
feli-srael Saturday 6 February 2016 at 4:56
feli-srael Anonymous

Message

Hello,
Thank you for the installation script of the game. And thanks to the site "GOG.com" which provided the installation file for a fair price (-:

I want to report a bug, installation went smoothly, and the game works great, just like I remember from childhood. But the option to save a game or load game keeps malfunctioning, any attempt to save a game or load a saved game, causes disruption of the graphics of the game, so that in fact is not possible to save or load saved game.

Attaching a link to a screenshot of the problem.
Save Game:
link 1, link 2, link 3

Loading game
link 1, link 2, link 3

Sorry in advance that I would not join any technical details, I'm not a technical one, just a simple end user. I use Ubuntu 14.04 and playnolinux version 4.2.10, Hope it useful detail. And I will be happy to provide additional information if requested.

Thank you for reading and joyful day.

Feli ^^

Replies

Anonymous
Sunday 29 May 2016 at 22:14
It has solution look at my post.
Anonymous
Wednesday 1 June 2016 at 16:07
Sorry for the late response, I somehow missed the notification. The broken colors seem to be a well known problem with the only fix being the one biga described. :(
petch Sunday 27 December 2015 at 12:29
petch

Warning

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

Message

Add localization support to final message

Differences

@@ -102,7 +102,7 @@
 POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
 POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"
 
-POL_SetupWindow_message "$TITLE has been successfully installed." "$TITLE"
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"
 
 POL_SetupWindow_Close
 

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-12-07 06-36)
# Last revision : (2015-12-23 04-52)
# Wine version used : 1.6.2
# Distribution used to test : Debian Sid (Unstable)
# Author : Gabriel Huber huberg18@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="rollercoaster_tycoon_deluxe"
PREFIX="RollerCoasterTycoon_gog"
WORKING_WINE_VERSION="1.6.2"

TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"

# Manually set the install location because we're not using the installer
# Has to match with the one in the registry patch for the DRM to work
INSTALL_LOCATION="drive_c/GOG Games/RollerCoaster Tycoon Deluxe/"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2683
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Chris Sawyer Productions / Atari" \
    "http://www.gog.com/game/$GOGID" "Gabriel Huber" "$PREFIX"

# Get setup path
POL_Call POL_GoG_setup "$GOGID" "c6516a80d361a70fd5866fdd18004c46"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"

# Extract the game files
POL_Call POL_innoextract "$POL_GoG_location" "$POL_System_TmpDir" "$INSTALL_PATH"

# Apply the registry patch
cat > "$POL_System_TmpDir/rct1.reg" << EOF
REGEDIT4

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Title"="Roll"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Path"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"SetupPath"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Executable"="RCT.EXE"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontPointSize"=dword:0000000c

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Language"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CDKey"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CharSet"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontFaceName"="MS Sans Serif"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"OKPrompt"="OK"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CancelPrompt"="Cancel"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"AddOn"=dword:00000001

EOF

POL_Wine regedit "$POL_System_TmpDir/rct1.reg"

POL_System_TmpDelete

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"

POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"

POL_SetupWindow_Close

exit 0

Replies

Sunday 27 December 2015 at 12:34
By the way there's still some oddity:
POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"
$INSTALL_PATH doesn't seem to be defined, maybe it works because PoL 4.2.7+ POL_Shortcut_Document will search for the document on their own?
One other trick, by using
cat > "$POL_System_TmpDir/rct1.reg" << 'EOF'
you can remove the need to double all \s (but it disables variables expansion)
Anonymous
Sunday 27 December 2015 at 19:53
$INSTALL_PATH gets defined as a local variable inside POL_innoextract as well, maybe that's the reason it gets cleared. Thanks for the cat trick!
Anonymous
Sunday 3 January 2016 at 1:21
I could not reproduce the INSTALL_PATH issue, it's defined and correct for me. Can you test it again and maybe figure out what the problem is?
Sunday 3 January 2016 at 4:11
My bad, I missed that it's defined explicitly here:
INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"
Yepoleb Wednesday 23 December 2015 at 4:54
Yepoleb Anonymous

Warning

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

Message

Changed the finished message to the recommended one.

Differences

@@ -0,0 +1,109 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2015-12-07 06-36)
+# Last revision : (2015-12-23 04-52)
+# Wine version used : 1.6.2
+# Distribution used to test : Debian Sid (Unstable)
+# Author : Gabriel Huber huberg18@gmail.com
+# Script licence : GPL v.2
+# Program licence : Retail
+# Depend :
+
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+GOGID="rollercoaster_tycoon_deluxe"
+PREFIX="RollerCoasterTycoon_gog"
+WORKING_WINE_VERSION="1.6.2"
+
+TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
+SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"
+
+# Manually set the install location because we're not using the installer
+# Has to match with the one in the registry patch for the DRM to work
+INSTALL_LOCATION="drive_c/GOG Games/RollerCoaster Tycoon Deluxe/"
+
+#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2683
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "Chris Sawyer Productions / Atari" \
+    "http://www.gog.com/game/$GOGID" "Gabriel Huber" "$PREFIX"
+
+# Get setup path
+POL_Call POL_GoG_setup "$GOGID" "c6516a80d361a70fd5866fdd18004c46"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_System_TmpCreate "$PREFIX"
+
+INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"
+
+# Extract the game files
+POL_Call POL_innoextract "$POL_GoG_location" "$POL_System_TmpDir" "$INSTALL_PATH"
+
+# Apply the registry patch
+cat > "$POL_System_TmpDir/rct1.reg" << EOF
+REGEDIT4
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group]
+
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Title"="Roll"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Path"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"SetupPath"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Executable"="RCT.EXE"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"FontPointSize"=dword:0000000c
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Language"=dword:00000000
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"CDKey"=dword:00000000
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"CharSet"=dword:00000000
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"FontFaceName"="MS Sans Serif"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"OKPrompt"="OK"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"CancelPrompt"="Cancel"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"AddOn"=dword:00000001
+
+EOF
+
+POL_Wine regedit "$POL_System_TmpDir/rct1.reg"
+
+POL_System_TmpDelete
+
+# Doesn't hurt ;)
+POL_Wine_reboot
+
+POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
+POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"
+
+POL_SetupWindow_message "$TITLE has been successfully installed." "$TITLE"
+
+POL_SetupWindow_Close
+
+exit 0

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-12-07 06-36)
# Last revision : (2015-12-23 04-52)
# Wine version used : 1.6.2
# Distribution used to test : Debian Sid (Unstable)
# Author : Gabriel Huber huberg18@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="rollercoaster_tycoon_deluxe"
PREFIX="RollerCoasterTycoon_gog"
WORKING_WINE_VERSION="1.6.2"

TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"

# Manually set the install location because we're not using the installer
# Has to match with the one in the registry patch for the DRM to work
INSTALL_LOCATION="drive_c/GOG Games/RollerCoaster Tycoon Deluxe/"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2683
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Chris Sawyer Productions / Atari" \
    "http://www.gog.com/game/$GOGID" "Gabriel Huber" "$PREFIX"

# Get setup path
POL_Call POL_GoG_setup "$GOGID" "c6516a80d361a70fd5866fdd18004c46"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"

# Extract the game files
POL_Call POL_innoextract "$POL_GoG_location" "$POL_System_TmpDir" "$INSTALL_PATH"

# Apply the registry patch
cat > "$POL_System_TmpDir/rct1.reg" << EOF
REGEDIT4

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Title"="Roll"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Path"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"SetupPath"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Executable"="RCT.EXE"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontPointSize"=dword:0000000c

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Language"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CDKey"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CharSet"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontFaceName"="MS Sans Serif"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"OKPrompt"="OK"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CancelPrompt"="Cancel"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"AddOn"=dword:00000001

EOF

POL_Wine regedit "$POL_System_TmpDir/rct1.reg"

POL_System_TmpDelete

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"

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

POL_SetupWindow_Close

exit 0

Replies

Saturday 26 December 2015 at 16:51
Current policy is no finishing message, PoL will (or at least, should) display an error dialog box if some step went wrong, suggesting to submit a bug report. The two are not compatible, as successively displaying a success and a failure message will surely confuse users ;)
Anonymous
Saturday 26 December 2015 at 23:37
I didn't have a finish message at first, but added it later after some testing. It's very confusing when you minimize the window and suddenly it's gone. I was wondering if the script finished, crashed or maybe I even forgot to run it. In normal scripts the finish message is provided by the native installer, but that's not the case here, because we work around it.
Yepoleb Monday 21 December 2015 at 5:53
Yepoleb Anonymous

Warning

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

Message

Depends on POL_innoextract, has to be approved first.

Differences

@@ -0,0 +1,109 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2015-12-07 06-36)
+# Last revision : (2015-12-21 03-50)
+# Wine version used : 1.6.2
+# Distribution used to test : Debian Sid (Unstable)
+# Author : Gabriel Huber huberg18@gmail.com
+# Script licence : GPL v.2
+# Program licence : Retail
+# Depend :
+
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+GOGID="rollercoaster_tycoon_deluxe"
+PREFIX="RollerCoasterTycoon_gog"
+WORKING_WINE_VERSION="1.6.2"
+
+TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
+SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"
+
+# Manually set the install location because we're not using the installer
+# Has to match with the one in the registry patch for the DRM to work
+INSTALL_LOCATION="drive_c/GOG Games/RollerCoaster Tycoon Deluxe/"
+
+#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 2683
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "Chris Sawyer Productions / Atari" \
+    "http://www.gog.com/game/$GOGID" "Gabriel Huber" "$PREFIX"
+
+# Get setup path
+POL_Call POL_GoG_setup "$GOGID" "c6516a80d361a70fd5866fdd18004c46"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_System_TmpCreate "$PREFIX"
+
+INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"
+
+# Extract the game files
+POL_Call POL_innoextract "$POL_GoG_location" "$POL_System_TmpDir" "$INSTALL_PATH"
+
+# Apply the registry patch
+cat > "$POL_System_TmpDir/rct1.reg" << EOF
+REGEDIT4
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group]
+
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Title"="Roll"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Path"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"SetupPath"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Executable"="RCT.EXE"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"FontPointSize"=dword:0000000c
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"Language"=dword:00000000
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"CDKey"=dword:00000000
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"CharSet"=dword:00000000
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"FontFaceName"="MS Sans Serif"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"OKPrompt"="OK"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"CancelPrompt"="Cancel"
+
+[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
+"AddOn"=dword:00000001
+
+EOF
+
+POL_Wine regedit "$POL_System_TmpDir/rct1.reg"
+
+POL_System_TmpDelete
+
+# Doesn't hurt ;)
+POL_Wine_reboot
+
+POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
+POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"
+
+POL_SetupWindow_message "Installation complete." "$TITLE"
+
+POL_SetupWindow_Close
+
+exit 0

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2015-12-07 06-36)
# Last revision : (2015-12-21 03-50)
# Wine version used : 1.6.2
# Distribution used to test : Debian Sid (Unstable)
# Author : Gabriel Huber huberg18@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="rollercoaster_tycoon_deluxe"
PREFIX="RollerCoasterTycoon_gog"
WORKING_WINE_VERSION="1.6.2"

TITLE="GOG.com - RollerCoaster Tycoon: Deluxe"
SHORTCUT_NAME="RollerCoaster Tycoon: Deluxe"

# Manually set the install location because we're not using the installer
# Has to match with the one in the registry patch for the DRM to work
INSTALL_LOCATION="drive_c/GOG Games/RollerCoaster Tycoon Deluxe/"

#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 2683
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Chris Sawyer Productions / Atari" \
    "http://www.gog.com/game/$GOGID" "Gabriel Huber" "$PREFIX"

# Get setup path
POL_Call POL_GoG_setup "$GOGID" "c6516a80d361a70fd5866fdd18004c46"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_System_TmpCreate "$PREFIX"

INSTALL_PATH="${WINEPREFIX}/${INSTALL_LOCATION}"

# Extract the game files
POL_Call POL_innoextract "$POL_GoG_location" "$POL_System_TmpDir" "$INSTALL_PATH"

# Apply the registry patch
cat > "$POL_System_TmpDir/rct1.reg" << EOF
REGEDIT4

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]


[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Title"="Roll"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Path"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"SetupPath"="C:\\\\GOG Games\\\\RollerCoaster Tycoon Deluxe"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Executable"="RCT.EXE"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontPointSize"=dword:0000000c

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"Language"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CDKey"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CharSet"=dword:00000000

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"FontFaceName"="MS Sans Serif"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"OKPrompt"="OK"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"CancelPrompt"="Cancel"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Fish Technology Group\\RollerCoaster Tycoon Setup]
"AddOn"=dword:00000001

EOF

POL_Wine regedit "$POL_System_TmpDir/rct1.reg"

POL_System_TmpDelete

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "RCT.EXE" "$SHORTCUT_NAME" "" "" "Game;Simulation;"
POL_Shortcut_Document "$SHORTCUT_NAME" "${INSTALL_PATH}manual.pdf"

POL_SetupWindow_message "Installation complete." "$TITLE"

POL_SetupWindow_Close

exit 0

Replies

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