GOG.com - POD Gold

Informations

Créateur Messages
med_freeman

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 4570
Wine: 1.7.43

Retours d'expérience

Description

English:
Customize your own turbo-charged machine and prepare to rip through futuristic environments, subterranean tunnels, abandoned canyons, and surreal post-nuclear landscapes. Link up to eight simultaneous players, just to make things more intense. But be warned: miss a hairpin turn, spin out at 180 miles an hour – make one small mistake – and you’re vapor. And there’s no going back. You’ve got to win the race or die.

Français :
Personnalisez votre propre bolide et préparez-vous à traverser à toute allure des environnements futuristes, des tunnels souterrains, des canyons abandonnés et des paysages post-nucléaires surréalistes. Associez-vous à sept autres joueurs pour corser encore un peu les choses. Mais attention : si vous manquez un virage en épingle, que vous perdez le contrôle à 300 km/h ou que vous faites la moindre erreur, c'en sera fini de vous.

Code source

#!/bin/bash
# Date created: (2014-10-08 23:39)
# Date updated: (2015-05-20 17:48)
# Wine version used : 1.7.43
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Requires : Lame
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="GOG.com - POD Gold"
PREFIX="PodGold_gog"
GOGID="pod_gold"
EDITOR="Ubisoft"
GAME_URL="http://www.gog.com/game/pod_gold"
AUTHOR="med_freeman"
WINE_VERSION="1.7.43"
WINE_ARCH="x86"
 
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 2296

which lame || POL_Debug_Fatal "$(eval_gettext 'This install script requires lame')"
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Download / Select GOG setup
POL_Call POL_GoG_setup "$GOGID" "3e1467e236870cb9ab5994dbaaa29b7d"
 
POL_System_SetArch "$WINE_ARCH"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"
 
# Install GOG setup
POL_Call POL_GoG_install

GAMEDIR="$GOGROOT/POD GOLD"

# Needed for video
sed -i '/[drivers32]/a vidc.IV41=ir41_32.dll' $WINEPREFIX/drive_c/windows/system.ini
# Needed for music
lame --decode "$GAMEDIR/Track02.mp3"

# Install nGlide wrapper
cd "$POL_System_TmpDir"
NGLIDE_EXE="nGlide104_setup.exe"
POL_Download "http://www.zeus-software.com/files/nglide/$NGLIDE_EXE" "4bcc72be562ad034e5a3690e153ca065"
POL_Wine start /unix "$NGLIDE_EXE"
POL_Wine_WaitExit "$TITLE"

# Install PodHacks
cd "$GAMEDIR"
PODHACKS_EXE="PodHacks.exe"
POL_Download "http://svn.nicode.net/podhacks/bin/$PODHACKS_EXE?revision=75" "e7b0e67b2540b69082be015b012d55ed"
mv "$PODHACKS_EXE?revision=75" $PODHACKS_EXE
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$PODHACKS_EXE" "--install"

# Move gog glide 2x so the game can work with nglide
mv glide2x.dll glide2x_gog.dll

# Shortcuts
SHORTCUT="POD Gold"
POL_Shortcut "PODX3Dfx.exe" "$SHORTCUT" "" "" "Game;RacingGame;"
POL_Shortcut "nglide_config.exe" "$SHORTCUT - Graphic settings"
POL_Shortcut_Document "$SHORTCUT" "$GAMEDIR/manual.pdf"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
med_freeman Mercredi 20 Mai 2015 à 18:12
med_freeman

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -0,0 +1,76 @@
+#!/bin/bash
+# Date created: (2014-10-08 23:39)
+# Date updated: (2015-05-20 17:48)
+# Wine version used : 1.7.43
+# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
+# Author : med_freeman
+# Licence : Retail
+# Requires : Lame
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="GOG.com - POD Gold"
+PREFIX="PodGold_gog"
+GOGID="pod_gold"
+EDITOR="Ubisoft"
+GAME_URL="http://www.gog.com/game/pod_gold"
+AUTHOR="med_freeman"
+WINE_VERSION="1.7.43"
+WINE_ARCH="x86"
+ 
+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 2296
+
+which lame || POL_Debug_Fatal "$(eval_gettext 'This install script requires lame')"
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Download / Select GOG setup
+POL_Call POL_GoG_setup "$GOGID" "3e1467e236870cb9ab5994dbaaa29b7d"
+ 
+POL_System_SetArch "$WINE_ARCH"
+POL_System_TmpCreate "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+ 
+# Install GOG setup
+POL_Call POL_GoG_install
+
+GAMEDIR="$GOGROOT/POD GOLD"
+
+# Needed for video
+sed -i '/[drivers32]/a vidc.IV41=ir41_32.dll' $WINEPREFIX/drive_c/windows/system.ini
+# Needed for music
+lame --decode "$GAMEDIR/Track02.mp3"
+
+# Install nGlide wrapper
+cd "$POL_System_TmpDir"
+NGLIDE_EXE="nGlide104_setup.exe"
+POL_Download "http://www.zeus-software.com/files/nglide/$NGLIDE_EXE" "4bcc72be562ad034e5a3690e153ca065"
+POL_Wine start /unix "$NGLIDE_EXE"
+POL_Wine_WaitExit "$TITLE"
+
+# Install PodHacks
+cd "$GAMEDIR"
+PODHACKS_EXE="PodHacks.exe"
+POL_Download "http://svn.nicode.net/podhacks/bin/$PODHACKS_EXE?revision=75" "e7b0e67b2540b69082be015b012d55ed"
+mv "$PODHACKS_EXE?revision=75" $PODHACKS_EXE
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine "$PODHACKS_EXE" "--install"
+
+# Move gog glide 2x so the game can work with nglide
+mv glide2x.dll glide2x_gog.dll
+
+# Shortcuts
+SHORTCUT="POD Gold"
+POL_Shortcut "PODX3Dfx.exe" "$SHORTCUT" "" "" "Game;RacingGame;"
+POL_Shortcut "nglide_config.exe" "$SHORTCUT - Graphic settings"
+POL_Shortcut_Document "$SHORTCUT" "$GAMEDIR/manual.pdf"
+
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0

Nouveau code source

#!/bin/bash
# Date created: (2014-10-08 23:39)
# Date updated: (2015-05-20 17:48)
# Wine version used : 1.7.43
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Requires : Lame
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="GOG.com - POD Gold"
PREFIX="PodGold_gog"
GOGID="pod_gold"
EDITOR="Ubisoft"
GAME_URL="http://www.gog.com/game/pod_gold"
AUTHOR="med_freeman"
WINE_VERSION="1.7.43"
WINE_ARCH="x86"
 
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 2296

which lame || POL_Debug_Fatal "$(eval_gettext 'This install script requires lame')"
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Download / Select GOG setup
POL_Call POL_GoG_setup "$GOGID" "3e1467e236870cb9ab5994dbaaa29b7d"
 
POL_System_SetArch "$WINE_ARCH"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"
 
# Install GOG setup
POL_Call POL_GoG_install

GAMEDIR="$GOGROOT/POD GOLD"

# Needed for video
sed -i '/[drivers32]/a vidc.IV41=ir41_32.dll' $WINEPREFIX/drive_c/windows/system.ini
# Needed for music
lame --decode "$GAMEDIR/Track02.mp3"

# Install nGlide wrapper
cd "$POL_System_TmpDir"
NGLIDE_EXE="nGlide104_setup.exe"
POL_Download "http://www.zeus-software.com/files/nglide/$NGLIDE_EXE" "4bcc72be562ad034e5a3690e153ca065"
POL_Wine start /unix "$NGLIDE_EXE"
POL_Wine_WaitExit "$TITLE"

# Install PodHacks
cd "$GAMEDIR"
PODHACKS_EXE="PodHacks.exe"
POL_Download "http://svn.nicode.net/podhacks/bin/$PODHACKS_EXE?revision=75" "e7b0e67b2540b69082be015b012d55ed"
mv "$PODHACKS_EXE?revision=75" $PODHACKS_EXE
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$PODHACKS_EXE" "--install"

# Move gog glide 2x so the game can work with nglide
mv glide2x.dll glide2x_gog.dll

# Shortcuts
SHORTCUT="POD Gold"
POL_Shortcut "PODX3Dfx.exe" "$SHORTCUT" "" "" "Game;RacingGame;"
POL_Shortcut "nglide_config.exe" "$SHORTCUT - Graphic settings"
POL_Shortcut_Document "$SHORTCUT" "$GAMEDIR/manual.pdf"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

Mercredi 20 Mai 2015 à 18:13
Changelog : updated wine version, game url, added message if lame is not installed, updated nglide, removed message before patch install, removed optional start flag on POL_Wine command for podhacks
Mercredi 20 Mai 2015 à 20:05
Hi, thanks for the update ! Woul you be so kind as to add graphics and update the description ? Thanks again
Mercredi 20 Mai 2015 à 20:05
https://github.com/medfreeman/playonlinux/tree/master/PodGold_gog/gfx
Mercredi 20 Mai 2015 à 20:05
English:
Customize your own turbo-charged machine and prepare to rip through futuristic environments, subterranean tunnels, abandoned canyons, and surreal post-nuclear landscapes. Link up to eight simultaneous players, just to make things more intense. But be warned: miss a hairpin turn, spin out at 180 miles an hour – make one small mistake – and you’re vapor. And there’s no going back. You’ve got to win the race or die.

Français :
Personnalisez votre propre bolide et préparez-vous à traverser à toute allure des environnements futuristes, des tunnels souterrains, des canyons abandonnés et des paysages post-nucléaires surréalistes. Associez-vous à sept autres joueurs pour corser encore un peu les choses. Mais attention : si vous manquez un virage en épingle, que vous perdez le contrôle à 300 km/h ou que vous faites la moindre erreur, c'en sera fini de vous.
Mercredi 20 Mai 2015 à 20:28
Done
Mercredi 20 Mai 2015 à 23:01
Big thanks !
Samedi 2 Janvier 2016 à 12:49
Hi ! happy new year !
Samedi 2 Janvier 2016 à 12:51
Could you tick the 'PlayOnMac' checkbox ? I just tested on MacOSX Mavericks (10.9.5) and it works perfect ! Thx
Samedi 2 Janvier 2016 à 14:42
Changed
med_freeman Samedi 22 Novembre 2014 à 19:41
med_freeman

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,77 @@
+#!/bin/bash
+# Date created: (2014-10-08 23:39)
+# Date updated: (2014-11-22 19:39)
+# Wine version used : 1.7.31
+# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
+# Author : med_freeman
+# Licence : Retail
+# Requires : Lame
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="GOG.com - POD Gold"
+PREFIX="PodGold_gog"
+GOGID="pod_gold"
+EDITOR="Ubisoft"
+GAME_URL="http://www.ubi.com"
+AUTHOR="med_freeman"
+WINE_VERSION="1.7.31"
+WINE_ARCH="x86"
+ 
+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 2296
+ 
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Download / Select GOG setup
+POL_Call POL_GoG_setup "$GOGID" "3e1467e236870cb9ab5994dbaaa29b7d"
+ 
+POL_System_SetArch "$WINE_ARCH"
+POL_System_TmpCreate "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+ 
+# Install GOG setup
+POL_Call POL_GoG_install
+
+GAMEDIR="$GOGROOT/POD GOLD"
+
+# Needed for video
+sed -i '/[drivers32]/a vidc.IV41=ir41_32.dll' $WINEPREFIX/drive_c/windows/system.ini
+# Needed for music
+lame --decode "$GAMEDIR/Track02.mp3"
+
+POL_SetupWindow_message "$(eval_gettext 'Setup will now install nGlide and Podhacks, allowing the game to exit properly, providing graphics improvements and compatibility fixes.')" "$TITLE"
+
+# Install nGlide wrapper
+cd "$POL_System_TmpDir"
+NGLIDE_EXE="nGlide103_setup.exe"
+POL_Download "http://www.zeus-software.com/files/nglide/$NGLIDE_EXE" "938182d383c08e5caaf9a83de13b1f2a"
+POL_Wine start /unix "$NGLIDE_EXE"
+POL_Wine_WaitExit "$TITLE"
+
+# Install PodHacks
+cd "$GAMEDIR"
+PODHACKS_EXE="PodHacks.exe"
+POL_Download "http://svn.nicode.net/podhacks/bin/$PODHACKS_EXE?revision=75" "e7b0e67b2540b69082be015b012d55ed"
+mv "$PODHACKS_EXE?revision=75" $PODHACKS_EXE
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start "$PODHACKS_EXE --install"
+
+# Move gog glide 2x so the game can work with nglide
+mv glide2x.dll glide2x_gog.dll
+
+# Shortcuts
+SHORTCUT="POD Gold"
+POL_Shortcut "PODX3Dfx.exe" "$SHORTCUT" "" "" "Game;RacingGame;"
+POL_Shortcut "nglide_config.exe" "$SHORTCUT - Graphic settings"
+POL_Shortcut_Document "$SHORTCUT" "$GAMEDIR/manual.pdf"
+
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0

Nouveau code source

#!/bin/bash
# Date created: (2014-10-08 23:39)
# Date updated: (2014-11-22 19:39)
# Wine version used : 1.7.31
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Requires : Lame
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="GOG.com - POD Gold"
PREFIX="PodGold_gog"
GOGID="pod_gold"
EDITOR="Ubisoft"
GAME_URL="http://www.ubi.com"
AUTHOR="med_freeman"
WINE_VERSION="1.7.31"
WINE_ARCH="x86"
 
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 2296
 
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Download / Select GOG setup
POL_Call POL_GoG_setup "$GOGID" "3e1467e236870cb9ab5994dbaaa29b7d"
 
POL_System_SetArch "$WINE_ARCH"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"
 
# Install GOG setup
POL_Call POL_GoG_install

GAMEDIR="$GOGROOT/POD GOLD"

# Needed for video
sed -i '/[drivers32]/a vidc.IV41=ir41_32.dll' $WINEPREFIX/drive_c/windows/system.ini
# Needed for music
lame --decode "$GAMEDIR/Track02.mp3"

POL_SetupWindow_message "$(eval_gettext 'Setup will now install nGlide and Podhacks, allowing the game to exit properly, providing graphics improvements and compatibility fixes.')" "$TITLE"

# Install nGlide wrapper
cd "$POL_System_TmpDir"
NGLIDE_EXE="nGlide103_setup.exe"
POL_Download "http://www.zeus-software.com/files/nglide/$NGLIDE_EXE" "938182d383c08e5caaf9a83de13b1f2a"
POL_Wine start /unix "$NGLIDE_EXE"
POL_Wine_WaitExit "$TITLE"

# Install PodHacks
cd "$GAMEDIR"
PODHACKS_EXE="PodHacks.exe"
POL_Download "http://svn.nicode.net/podhacks/bin/$PODHACKS_EXE?revision=75" "e7b0e67b2540b69082be015b012d55ed"
mv "$PODHACKS_EXE?revision=75" $PODHACKS_EXE
POL_Wine_WaitBefore "$TITLE"
POL_Wine start "$PODHACKS_EXE --install"

# Move gog glide 2x so the game can work with nglide
mv glide2x.dll glide2x_gog.dll

# Shortcuts
SHORTCUT="POD Gold"
POL_Shortcut "PODX3Dfx.exe" "$SHORTCUT" "" "" "Game;RacingGame;"
POL_Shortcut "nglide_config.exe" "$SHORTCUT - Graphic settings"
POL_Shortcut_Document "$SHORTCUT" "$GAMEDIR/manual.pdf"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

Samedi 22 Novembre 2014 à 19:41
Hi,
Samedi 22 Novembre 2014 à 19:46
Changelog : removed /unix flag from podhacks install, removed WaitAfter, / kept it on nGlide, because it doesn't work without, the setup doesn't wait the end of the installer before continuing when it's done synchronously. Removed WaitAfter on nGlide installation / updated wine version to 1.7.31 / added a message to explain installation of nGlide and podhacks
Samedi 22 Novembre 2014 à 19:47
sorry, removed WaitBefore on nGlide, removed WaitExit on podhacks
Samedi 22 Novembre 2014 à 19:48
The installation of these tools is strictly necessary, or the game hangs on exiting, so i added a message to explain this, but didn't make it optional. i just had forgot when you asked the question. also updated the game id because it was from another game. Thanks. Can you validate it ?
Samedi 22 Novembre 2014 à 19:49
And btw here's the new summary :
Samedi 22 Novembre 2014 à 19:49
English:
Customize your own turbo-charged machine and prepare to rip through futuristic environments, subterranean tunnels, abandoned canyons, and surreal post-nuclear landscapes. Link up to eight simultaneous players, just to make things more intense. But be warned: miss a hairpin turn, spin out at 180 miles an hour – make one small mistake – and you’re vapor. And there’s no going back. You’ve got to win the race or die.

Français :
Personnalisez votre propre bolide et préparez-vous à traverser à toute allure des environnements futuristes, des tunnels souterrains, des canyons abandonnés et des paysages post-nucléaires surréalistes. Associez-vous à sept autres joueurs pour corser encore un peu les choses. Mais attention : si vous manquez un virage en épingle, que vous perdez le contrôle à 300 km/h ou que vous faites la moindre erreur, c'en sera fini de vous.
Samedi 22 Novembre 2014 à 19:49
And i'll be happy if you can add the assets : https://github.com/medfreeman/playonlinux/tree/master/PodGold_gog/gfx
Lundi 24 Novembre 2014 à 19:13
Let's go for a second review:
- (minor) I don't think that using ubi.com URL is better than using GoG gamecard URL; First ubi.com has no page that I could find about POD, so it's a dead end; On the other hand, GOG download support has been broken for many months now, so providing the gamecard link is somewhat useful;
- I think it would be good to test for lame availability; Like
which lame || POL_Debug_Fatal "$(eval_gettext 'This install script requires lame')"
just before POL_Debug_Init; See Commandos Ammo Pack script http://www.playonlinux.com/en/app-1594-GOGcom__Commandos_Ammo_Pack.html
- I'm not sure this message before installing patches really adds value to the user, and it interrupts the installation. If you're really eager to explain what's going on you could use POL_SetupWindow_wait "$MESSAGE" "$TITLE", as some function scripts do, but it's not really required IMO;
- when I wrote that start /unix is seldom useful, I really meant both, not just /unix flag. I think that "start" alone is also asynchronous, so all what I said about "start /unix" in fact applies to "start" alone.
Lundi 24 Novembre 2014 à 19:16
(I wonder if there's a better code to check the availability of a command, because with this one, each different command will require a new translation from translation team... :(
med_freeman Jeudi 9 Octobre 2014 à 1:29
med_freeman

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Differences

@@ -0,0 +1,77 @@
+#!/bin/bash
+# Date : (2014-10-08 23:39)
+# Date : (2014-10-08 00:36)
+# Wine version used : 1.7.28
+# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
+# Author : med_freeman
+# Licence : Retail
+# Requires : Lame
+# Only For : http://www.playonlinux.com
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="GOG.com - POD Gold"
+PREFIX="PodGold_gog"
+GOGID="pod_gold"
+EDITOR="Ubisoft"
+GAME_URL="http://www.ubi.com"
+AUTHOR="med_freeman"
+WINE_VERSION="1.7.28"
+WINE_ARCH="x86"
+ 
+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 2293
+ 
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Download / Select GOG setup
+POL_Call POL_GoG_setup "$GOGID" "3e1467e236870cb9ab5994dbaaa29b7d"
+ 
+POL_System_SetArch "$WINE_ARCH"
+POL_System_TmpCreate "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+ 
+# Install GOG setup
+POL_Call POL_GoG_install
+
+GAMEDIR="$GOGROOT/POD GOLD"
+
+# Needed for video
+sed -i '/[drivers32]/a vidc.IV41=ir41_32.dll' $WINEPREFIX/drive_c/windows/system.ini
+# Needed for music
+lame --decode "$GAMEDIR/Track02.mp3"
+
+# Install nGlide wrapper
+cd "$POL_System_TmpDir"
+NGLIDE_EXE="nGlide103_setup.exe"
+POL_Download "http://www.zeus-software.com/files/nglide/$NGLIDE_EXE" "938182d383c08e5caaf9a83de13b1f2a"
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$NGLIDE_EXE"
+POL_Wine_WaitExit "$TITLE"
+
+# Install PodHacks
+cd "$GAMEDIR"
+PODHACKS_EXE="PodHacks.exe"
+POL_Download "http://svn.nicode.net/podhacks/bin/$PODHACKS_EXE?revision=75" "e7b0e67b2540b69082be015b012d55ed"
+mv "$PODHACKS_EXE?revision=75" $PODHACKS_EXE
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$PODHACKS_EXE --install"
+POL_Wine_WaitExit "$TITLE"
+
+# Move gog glide 2x so the game can work with nglide
+mv glide2x.dll glide2x_gog.dll
+
+# Shortcuts
+SHORTCUT="POD Gold"
+POL_Shortcut "PODX3Dfx.exe" "$SHORTCUT" "" "" "Game;RacingGame;"
+POL_Shortcut "nglide_config.exe" "$SHORTCUT - Graphic settings"
+POL_Shortcut_Document "$SHORTCUT" "$GAMEDIR/manual.pdf"
+
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0

Nouveau code source

#!/bin/bash
# Date : (2014-10-08 23:39)
# Date : (2014-10-08 00:36)
# Wine version used : 1.7.28
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Requires : Lame
# Only For : http://www.playonlinux.com
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="GOG.com - POD Gold"
PREFIX="PodGold_gog"
GOGID="pod_gold"
EDITOR="Ubisoft"
GAME_URL="http://www.ubi.com"
AUTHOR="med_freeman"
WINE_VERSION="1.7.28"
WINE_ARCH="x86"
 
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 2293
 
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Download / Select GOG setup
POL_Call POL_GoG_setup "$GOGID" "3e1467e236870cb9ab5994dbaaa29b7d"
 
POL_System_SetArch "$WINE_ARCH"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"
 
# Install GOG setup
POL_Call POL_GoG_install

GAMEDIR="$GOGROOT/POD GOLD"

# Needed for video
sed -i '/[drivers32]/a vidc.IV41=ir41_32.dll' $WINEPREFIX/drive_c/windows/system.ini
# Needed for music
lame --decode "$GAMEDIR/Track02.mp3"

# Install nGlide wrapper
cd "$POL_System_TmpDir"
NGLIDE_EXE="nGlide103_setup.exe"
POL_Download "http://www.zeus-software.com/files/nglide/$NGLIDE_EXE" "938182d383c08e5caaf9a83de13b1f2a"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$NGLIDE_EXE"
POL_Wine_WaitExit "$TITLE"

# Install PodHacks
cd "$GAMEDIR"
PODHACKS_EXE="PodHacks.exe"
POL_Download "http://svn.nicode.net/podhacks/bin/$PODHACKS_EXE?revision=75" "e7b0e67b2540b69082be015b012d55ed"
mv "$PODHACKS_EXE?revision=75" $PODHACKS_EXE
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$PODHACKS_EXE --install"
POL_Wine_WaitExit "$TITLE"

# Move gog glide 2x so the game can work with nglide
mv glide2x.dll glide2x_gog.dll

# Shortcuts
SHORTCUT="POD Gold"
POL_Shortcut "PODX3Dfx.exe" "$SHORTCUT" "" "" "Game;RacingGame;"
POL_Shortcut "nglide_config.exe" "$SHORTCUT - Graphic settings"
POL_Shortcut_Document "$SHORTCUT" "$GAMEDIR/manual.pdf"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

Jeudi 9 Octobre 2014 à 1:30
If you can add them, the assets are here : https://github.com/medfreeman/playonlinux/tree/master/PodGold_gog/gfx
Jeudi 9 Octobre 2014 à 1:30
Thanks !
Samedi 8 Novembre 2014 à 18:55
Hi, can you tell me if something is wrong with this script ? Best, Thanks
Samedi 8 Novembre 2014 à 20:24
- sed -i is not supported by BSD sed (OS X compatibility); However I think PlayOnMac provides some version of GNU sed since version 4.0.18, so it may work (to be checked);
- start /unix is rarely needed, and has the drawback to make POL_Wine asynchronous, which in turn mean launched program won't be killed automatically if the installation script is aborted. To keep it short, don't use it if it's not strictly required;
- one shouldn't need both POL_Wine_WaitBefore and POL_Wine_WaitExit around the same POL_Wine call, since one is only useful if the POL_Wine call is synchronous, and the other if it's asynchronous. If you get rid of start /unix, POL_Wine_WaitBefore is probably sufficient;
- is installing nglide and podhacks strictly necessary to get the game working, or just an improvement? In the latter case, that should be available as a separate "patch" script, or at the very least an installation option (in case it doesn't work for somebody)
Samedi 8 Novembre 2014 à 21:11
PlayOnMac indeed includes GNU sed, so does PlayOnBSD. You can safely use it.
Mardi 11 Novembre 2014 à 17:39
Noted ! Thanks, i'll be on it tonight. I think i'll made it an installation option, cause it improves the game too much to be passed on.