GOG.com - Rayman Forever

Informations

Créateur Messages
med_freeman

Information

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

Informations

Plate-formes :
Téléchargements : 7880
Wine: 1.6.2-dos_support_0.6

Retours d'expérience

Description

English:
In Rayman world's, nature and people live together in peace. The Great Protoon provides and maintains the harmony and balance in the world. Sorry Folks, this apparently can't last. (Do you want to play or what?)... one fateful day, the Great Protoon is stolen by Mr. Dark, an evil being! The Electoons who used to gravitate around it lose their natural stability and scatter all over the world! Troublesome, isn't it? (and untidy, too!)

Français :
Dans le monde de Rayman, la nature et ses habitants vivent en paix . . . Le Grand Protoon maintient l'équilibre et l'harmonie de ce monde. Désolé, les amis, apparemment ça ne va pas durer! . . Car un funeste jour l'horrible Mister Dark dérobe le Grand Protoon, et neutralise les pouvoirs de Betilla la fée qui cherchait
à le protéger! Les Electoons, qui gravitaient autour du Protoon, perdent soudain leur stabilité naturelle, et s'éparpillent dans tout le pays! Préoccupant, non? Et en plus, ça fait désordre.

Code source

#!/bin/bash
# Date : (2014-10-05 19:57)
# Date : (2014-10-07 16:28)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="GOG.com - Rayman Forever"
PREFIX="RaymanForever_gog"
GOGID="rayman_forever"
EDITOR="Ubisoft"
GAME_URL="http://rayman.ubi.com/legends/"
AUTHOR="med_freeman"
WINE_VERSION="1.6.2-dos_support_0.6"
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" "96e71ea03261646f7f5ce4cb27d6a222"

POL_System_SetArch "$WINE_ARCH"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Install GOG setup
POL_Call POL_GoG_install

cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=16
cpu_core=simple
cpu_cputype=pentium_slow
cpu_cycles=15000
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=80
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=true
sblaster_oplmode=auto
sblaster_oplrate=22050
_EOFCFG_

# cd to game folder
cd "$GOGROOT/Rayman Forever"
# we need this to have the in-game music
# symlink ogg files down one folder, or mscdex doesn't recognize it
ln -s Music/*.ogg .
# edit game.inst to remove ogg paths, save to cue extension or mscdex doesn't recognize it
sed -e 's/Music\\//g' game.inst > game.cue

# use dos long dir aliases, fix for mscdex path too long, we need this to have the in-game music
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount E "C:\GOGGAM~1\RAYMAN~1\game.cue" -t cdrom
_EOFAE_

# Different games in the installer
RAYMAN="Rayman"
RAYMAN_DE="Rayman Designer"
RAYMAN_DE_MAPPER="Rayman Designer Mapper"
RAYMAN_FANS="Rayman by His Fans"

# Rayman
POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN.png" "" "Game;PlatformGame;"
# Rayman Designer
POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE.png" "ver=usa" "Game;PlatformGame;"
# Rayman Designer Mapper
POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
# Rayman by His Fans
POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS.png" "ver=usa" "Game;PlatformGame;"
# Manual
POL_Shortcut_Document "$RAYMAN" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/Rayman Forever/Manual.pdf"

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
petch Mardi 7 Octobre 2014 à 21:14
petch

Information

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

Messages

- put POL_Call POL_GoG_setup before POL_Wine_SelectPrefix/POL_Wine_PrefixCreate

Rationale: if the user realizes that (s)he doesn't have the game, or download fails for some reason, etc, the install script would not have created an empty virtual drive (that the user may not even notice until (s)he opens the configuration window)

Differences

@@ -27,12 +27,14 @@
 
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
+# Download / Select GOG setup
+POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
+
 POL_System_SetArch "$WINE_ARCH"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WINE_VERSION"
 
-# Download / Select and install GOG setup
-POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
+# Install GOG setup
 POL_Call POL_GoG_install
 
 cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"

Nouveau code source

#!/bin/bash
# Date : (2014-10-05 19:57)
# Date : (2014-10-07 16:28)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="GOG.com - Rayman Forever"
PREFIX="RaymanForever_gog"
GOGID="rayman_forever"
EDITOR="Ubisoft"
GAME_URL="http://rayman.ubi.com/legends/"
AUTHOR="med_freeman"
WINE_VERSION="1.6.2-dos_support_0.6"
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" "96e71ea03261646f7f5ce4cb27d6a222"

POL_System_SetArch "$WINE_ARCH"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Install GOG setup
POL_Call POL_GoG_install

cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=16
cpu_core=simple
cpu_cputype=pentium_slow
cpu_cycles=15000
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=80
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=true
sblaster_oplmode=auto
sblaster_oplrate=22050
_EOFCFG_

# cd to game folder
cd "$GOGROOT/Rayman Forever"
# we need this to have the in-game music
# symlink ogg files down one folder, or mscdex doesn't recognize it
ln -s Music/*.ogg .
# edit game.inst to remove ogg paths, save to cue extension or mscdex doesn't recognize it
sed -e 's/Music\\//g' game.inst > game.cue

# use dos long dir aliases, fix for mscdex path too long, we need this to have the in-game music
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount E "C:\GOGGAM~1\RAYMAN~1\game.cue" -t cdrom
_EOFAE_

# Different games in the installer
RAYMAN="Rayman"
RAYMAN_DE="Rayman Designer"
RAYMAN_DE_MAPPER="Rayman Designer Mapper"
RAYMAN_FANS="Rayman by His Fans"

# Rayman
POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN.png" "" "Game;PlatformGame;"
# Rayman Designer
POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE.png" "ver=usa" "Game;PlatformGame;"
# Rayman Designer Mapper
POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
# Rayman by His Fans
POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS.png" "ver=usa" "Game;PlatformGame;"
# Manual
POL_Shortcut_Document "$RAYMAN" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/Rayman Forever/Manual.pdf"

POL_SetupWindow_Close
exit 0

Réponses

Mercredi 8 Octobre 2014 à 0:44
Thank you for all your comments, i'll be sure to apply this to my next scripts.
petch Mardi 7 Octobre 2014 à 20:52
petch

Warning

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

Messages

- 3rd parameter of POL_Shortcut is the name of the shortcut icon on the web server, if any

- temp directory not used

- gdiplus already installed by POL_GoG_install script

Differences

@@ -28,14 +28,9 @@
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
 POL_System_SetArch "$WINE_ARCH"
-POL_System_TmpCreate "$PREFIX"
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WINE_VERSION"
 
-# Install gdiplus, needed for GOG installer
-POL_Call POL_Install_gdiplus
-POL_Wine_OverrideDLL "native" "gdiplus"
-
 # Download / Select and install GOG setup
 POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
 POL_Call POL_GoG_install
@@ -81,19 +76,18 @@
 RAYMAN_FANS="Rayman by His Fans"
 
 # Rayman
-POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN" "" "Game;PlatformGame;"
+POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN.png" "" "Game;PlatformGame;"
 # Rayman Designer
-POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE" "ver=usa" "Game;PlatformGame;"
+POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE.png" "ver=usa" "Game;PlatformGame;"
 # Rayman Designer Mapper
 POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
 # Rayman by His Fans
-POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS" "ver=usa" "Game;PlatformGame;"
+POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS.png" "ver=usa" "Game;PlatformGame;"
 # Manual
 POL_Shortcut_Document "$RAYMAN" "$GOGROOT/Rayman Forever/Manual.pdf"
 POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/Rayman Forever/Manual.pdf"
 POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/Rayman Forever/Manual.pdf"
 POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/Rayman Forever/Manual.pdf"
 
-POL_System_TmpDelete
 POL_SetupWindow_Close
 exit 0

Nouveau code source

#!/bin/bash
# Date : (2014-10-05 19:57)
# Date : (2014-10-07 16:28)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="GOG.com - Rayman Forever"
PREFIX="RaymanForever_gog"
GOGID="rayman_forever"
EDITOR="Ubisoft"
GAME_URL="http://rayman.ubi.com/legends/"
AUTHOR="med_freeman"
WINE_VERSION="1.6.2-dos_support_0.6"
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"

POL_System_SetArch "$WINE_ARCH"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Download / Select and install GOG setup
POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
POL_Call POL_GoG_install

cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=16
cpu_core=simple
cpu_cputype=pentium_slow
cpu_cycles=15000
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=80
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=true
sblaster_oplmode=auto
sblaster_oplrate=22050
_EOFCFG_

# cd to game folder
cd "$GOGROOT/Rayman Forever"
# we need this to have the in-game music
# symlink ogg files down one folder, or mscdex doesn't recognize it
ln -s Music/*.ogg .
# edit game.inst to remove ogg paths, save to cue extension or mscdex doesn't recognize it
sed -e 's/Music\\//g' game.inst > game.cue

# use dos long dir aliases, fix for mscdex path too long, we need this to have the in-game music
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount E "C:\GOGGAM~1\RAYMAN~1\game.cue" -t cdrom
_EOFAE_

# Different games in the installer
RAYMAN="Rayman"
RAYMAN_DE="Rayman Designer"
RAYMAN_DE_MAPPER="Rayman Designer Mapper"
RAYMAN_FANS="Rayman by His Fans"

# Rayman
POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN.png" "" "Game;PlatformGame;"
# Rayman Designer
POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE.png" "ver=usa" "Game;PlatformGame;"
# Rayman Designer Mapper
POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
# Rayman by His Fans
POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS.png" "ver=usa" "Game;PlatformGame;"
# Manual
POL_Shortcut_Document "$RAYMAN" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/Rayman Forever/Manual.pdf"

POL_SetupWindow_Close
exit 0

Réponses

petch Mardi 7 Octobre 2014 à 20:45
petch

Warning

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

Messages

- For debugger support to work, $TITLE has to match script name in the repository

Differences

@@ -10,7 +10,7 @@
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
-TITLE="Rayman Forever"
+TITLE="GOG.com - Rayman Forever"
 PREFIX="RaymanForever_gog"
 GOGID="rayman_forever"
 EDITOR="Ubisoft"
@@ -62,7 +62,7 @@
 _EOFCFG_
 
 # cd to game folder
-cd "$GOGROOT/$TITLE"
+cd "$GOGROOT/Rayman Forever"
 # we need this to have the in-game music
 # symlink ogg files down one folder, or mscdex doesn't recognize it
 ln -s Music/*.ogg .
@@ -89,10 +89,10 @@
 # Rayman by His Fans
 POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS" "ver=usa" "Game;PlatformGame;"
 # Manual
-POL_Shortcut_Document "$RAYMAN" "$GOGROOT/$TITLE/Manual.pdf"
-POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/$TITLE/Manual.pdf"
-POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/$TITLE/Manual.pdf"
-POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/$TITLE/Manual.pdf"
+POL_Shortcut_Document "$RAYMAN" "$GOGROOT/Rayman Forever/Manual.pdf"
+POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/Rayman Forever/Manual.pdf"
+POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/Rayman Forever/Manual.pdf"
+POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/Rayman Forever/Manual.pdf"
 
 POL_System_TmpDelete
 POL_SetupWindow_Close

Nouveau code source

#!/bin/bash
# Date : (2014-10-05 19:57)
# Date : (2014-10-07 16:28)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="GOG.com - Rayman Forever"
PREFIX="RaymanForever_gog"
GOGID="rayman_forever"
EDITOR="Ubisoft"
GAME_URL="http://rayman.ubi.com/legends/"
AUTHOR="med_freeman"
WINE_VERSION="1.6.2-dos_support_0.6"
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"

POL_System_SetArch "$WINE_ARCH"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Install gdiplus, needed for GOG installer
POL_Call POL_Install_gdiplus
POL_Wine_OverrideDLL "native" "gdiplus"

# Download / Select and install GOG setup
POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
POL_Call POL_GoG_install

cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=16
cpu_core=simple
cpu_cputype=pentium_slow
cpu_cycles=15000
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=80
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=true
sblaster_oplmode=auto
sblaster_oplrate=22050
_EOFCFG_

# cd to game folder
cd "$GOGROOT/Rayman Forever"
# we need this to have the in-game music
# symlink ogg files down one folder, or mscdex doesn't recognize it
ln -s Music/*.ogg .
# edit game.inst to remove ogg paths, save to cue extension or mscdex doesn't recognize it
sed -e 's/Music\\//g' game.inst > game.cue

# use dos long dir aliases, fix for mscdex path too long, we need this to have the in-game music
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount E "C:\GOGGAM~1\RAYMAN~1\game.cue" -t cdrom
_EOFAE_

# Different games in the installer
RAYMAN="Rayman"
RAYMAN_DE="Rayman Designer"
RAYMAN_DE_MAPPER="Rayman Designer Mapper"
RAYMAN_FANS="Rayman by His Fans"

# Rayman
POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN" "" "Game;PlatformGame;"
# Rayman Designer
POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE" "ver=usa" "Game;PlatformGame;"
# Rayman Designer Mapper
POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
# Rayman by His Fans
POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS" "ver=usa" "Game;PlatformGame;"
# Manual
POL_Shortcut_Document "$RAYMAN" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/Rayman Forever/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/Rayman Forever/Manual.pdf"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

petch Mardi 7 Octobre 2014 à 20:31
petch

Warning

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

Messages

- Adding POL_SetupWindow_SetID

- Successful completion message are depreciated, as they test nothing so will show up even if the script totally screwed up. Let just PlayOnLinux display an error dialog box if some problem has been detected during the installation.

Differences

@@ -21,6 +21,7 @@
 
 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
 
@@ -93,8 +94,6 @@
 POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/$TITLE/Manual.pdf"
 POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/$TITLE/Manual.pdf"
 
-POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
-
 POL_System_TmpDelete
 POL_SetupWindow_Close
 exit 0

Nouveau code source

#!/bin/bash
# Date : (2014-10-05 19:57)
# Date : (2014-10-07 16:28)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="Rayman Forever"
PREFIX="RaymanForever_gog"
GOGID="rayman_forever"
EDITOR="Ubisoft"
GAME_URL="http://rayman.ubi.com/legends/"
AUTHOR="med_freeman"
WINE_VERSION="1.6.2-dos_support_0.6"
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"

POL_System_SetArch "$WINE_ARCH"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Install gdiplus, needed for GOG installer
POL_Call POL_Install_gdiplus
POL_Wine_OverrideDLL "native" "gdiplus"

# Download / Select and install GOG setup
POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
POL_Call POL_GoG_install

cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=16
cpu_core=simple
cpu_cputype=pentium_slow
cpu_cycles=15000
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=80
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=true
sblaster_oplmode=auto
sblaster_oplrate=22050
_EOFCFG_

# cd to game folder
cd "$GOGROOT/$TITLE"
# we need this to have the in-game music
# symlink ogg files down one folder, or mscdex doesn't recognize it
ln -s Music/*.ogg .
# edit game.inst to remove ogg paths, save to cue extension or mscdex doesn't recognize it
sed -e 's/Music\\//g' game.inst > game.cue

# use dos long dir aliases, fix for mscdex path too long, we need this to have the in-game music
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount E "C:\GOGGAM~1\RAYMAN~1\game.cue" -t cdrom
_EOFAE_

# Different games in the installer
RAYMAN="Rayman"
RAYMAN_DE="Rayman Designer"
RAYMAN_DE_MAPPER="Rayman Designer Mapper"
RAYMAN_FANS="Rayman by His Fans"

# Rayman
POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN" "" "Game;PlatformGame;"
# Rayman Designer
POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE" "ver=usa" "Game;PlatformGame;"
# Rayman Designer Mapper
POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
# Rayman by His Fans
POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS" "ver=usa" "Game;PlatformGame;"
# Manual
POL_Shortcut_Document "$RAYMAN" "$GOGROOT/$TITLE/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/$TITLE/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/$TITLE/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/$TITLE/Manual.pdf"

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

med_freeman Mardi 7 Octobre 2014 à 16:54
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,100 @@
+#!/bin/bash
+# Date : (2014-10-05 19:57)
+# Date : (2014-10-07 16:28)
+# Wine version used : 1.6.2-dos_support_0.6
+# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
+# Author : med_freeman
+# Licence : Retail
+# Only For : http://www.playonlinux.com
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Rayman Forever"
+PREFIX="RaymanForever_gog"
+GOGID="rayman_forever"
+EDITOR="Ubisoft"
+GAME_URL="http://rayman.ubi.com/legends/"
+AUTHOR="med_freeman"
+WINE_VERSION="1.6.2-dos_support_0.6"
+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_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
+POL_System_SetArch "$WINE_ARCH"
+POL_System_TmpCreate "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+
+# Install gdiplus, needed for GOG installer
+POL_Call POL_Install_gdiplus
+POL_Wine_OverrideDLL "native" "gdiplus"
+
+# Download / Select and install GOG setup
+POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
+POL_Call POL_GoG_install
+
+cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
+manual_mount=true
+dosbox_machine=svga_s3
+dosbox_captures=capture
+dosbox_memsize=16
+cpu_core=simple
+cpu_cputype=pentium_slow
+cpu_cycles=15000
+mixer_rate=22050
+mixer_blocksize=2048
+mixer_prebuffer=80
+sblaster_sbtype=sb16
+sblaster_sbbase=220
+sblaster_irq=7
+sblaster_dma=1
+sblaster_hdma=5
+sblaster_mixer=true
+sblaster_oplmode=auto
+sblaster_oplrate=22050
+_EOFCFG_
+
+# cd to game folder
+cd "$GOGROOT/$TITLE"
+# we need this to have the in-game music
+# symlink ogg files down one folder, or mscdex doesn't recognize it
+ln -s Music/*.ogg .
+# edit game.inst to remove ogg paths, save to cue extension or mscdex doesn't recognize it
+sed -e 's/Music\\//g' game.inst > game.cue
+
+# use dos long dir aliases, fix for mscdex path too long, we need this to have the in-game music
+cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
+imgmount E "C:\GOGGAM~1\RAYMAN~1\game.cue" -t cdrom
+_EOFAE_
+
+# Different games in the installer
+RAYMAN="Rayman"
+RAYMAN_DE="Rayman Designer"
+RAYMAN_DE_MAPPER="Rayman Designer Mapper"
+RAYMAN_FANS="Rayman by His Fans"
+
+# Rayman
+POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN" "" "Game;PlatformGame;"
+# Rayman Designer
+POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE" "ver=usa" "Game;PlatformGame;"
+# Rayman Designer Mapper
+POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
+# Rayman by His Fans
+POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS" "ver=usa" "Game;PlatformGame;"
+# Manual
+POL_Shortcut_Document "$RAYMAN" "$GOGROOT/$TITLE/Manual.pdf"
+POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/$TITLE/Manual.pdf"
+POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/$TITLE/Manual.pdf"
+POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/$TITLE/Manual.pdf"
+
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
+
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0

Nouveau code source

#!/bin/bash
# Date : (2014-10-05 19:57)
# Date : (2014-10-07 16:28)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : Ubuntu 14.04 Trusty x64 + Debian 7.0 Wheezy x64
# Author : med_freeman
# Licence : Retail
# Only For : http://www.playonlinux.com

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

TITLE="Rayman Forever"
PREFIX="RaymanForever_gog"
GOGID="rayman_forever"
EDITOR="Ubisoft"
GAME_URL="http://rayman.ubi.com/legends/"
AUTHOR="med_freeman"
WINE_VERSION="1.6.2-dos_support_0.6"
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_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_System_SetArch "$WINE_ARCH"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Install gdiplus, needed for GOG installer
POL_Call POL_Install_gdiplus
POL_Wine_OverrideDLL "native" "gdiplus"

# Download / Select and install GOG setup
POL_Call POL_GoG_setup "$GOGID" "96e71ea03261646f7f5ce4cb27d6a222"
POL_Call POL_GoG_install

cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
manual_mount=true
dosbox_machine=svga_s3
dosbox_captures=capture
dosbox_memsize=16
cpu_core=simple
cpu_cputype=pentium_slow
cpu_cycles=15000
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=80
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=true
sblaster_oplmode=auto
sblaster_oplrate=22050
_EOFCFG_

# cd to game folder
cd "$GOGROOT/$TITLE"
# we need this to have the in-game music
# symlink ogg files down one folder, or mscdex doesn't recognize it
ln -s Music/*.ogg .
# edit game.inst to remove ogg paths, save to cue extension or mscdex doesn't recognize it
sed -e 's/Music\\//g' game.inst > game.cue

# use dos long dir aliases, fix for mscdex path too long, we need this to have the in-game music
cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount E "C:\GOGGAM~1\RAYMAN~1\game.cue" -t cdrom
_EOFAE_

# Different games in the installer
RAYMAN="Rayman"
RAYMAN_DE="Rayman Designer"
RAYMAN_DE_MAPPER="Rayman Designer Mapper"
RAYMAN_FANS="Rayman by His Fans"

# Rayman
POL_Shortcut "RAYMAN.EXE" "$RAYMAN" "$RAYMAN" "" "Game;PlatformGame;"
# Rayman Designer
POL_Shortcut "RAYKIT.EXE" "$RAYMAN_DE" "$RAYMAN_DE" "ver=usa" "Game;PlatformGame;"
# Rayman Designer Mapper
POL_Shortcut "MAPPER.EXE" "$RAYMAN_DE_MAPPER" "" "ver=usa" "Game;PlatformGame;"
# Rayman by His Fans
POL_Shortcut "RAYFAN.EXE" "$RAYMAN_FANS" "$RAYMAN_FANS" "ver=usa" "Game;PlatformGame;"
# Manual
POL_Shortcut_Document "$RAYMAN" "$GOGROOT/$TITLE/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE" "$GOGROOT/$TITLE/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_DE_MAPPER" "$GOGROOT/$TITLE/Manual.pdf"
POL_Shortcut_Document "$RAYMAN_FANS" "$GOGROOT/$TITLE/Manual.pdf"

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

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Réponses

Mardi 7 Octobre 2014 à 17:03
If you can add them, the assets are here : https://github.com/medfreeman/playonlinux/tree/master/RaymanForever_gog/gfx
Mardi 7 Octobre 2014 à 17:03
Thanks !