Trackmania Nations Forever

Informations

Créateur Messages
Quentin PÂRIS
Admin

Information

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

Informations

Plate-formes :
Téléchargements : 188252
Wine: 3.0.3

Retours d'expérience

Description

Racing game, 2007. Wikipedia.

Appdb.winehq.org . PCGamingWiki.

Captures d'écran

Miniature

Code source

#!/bin/bash
# Last revision : see changelog
# Tested : Debian 6.0, Mac OSX , Kubuntu 18.04 amd64
# Author : Tinou
# Script licence : GPLv3
# 
# This script is designed for PlayOnLinux and PlayOnMac. 
#
# CHANGELOG
# [Quentin P] (2011)
#   Initial writting.
# [Quentin P] (2011-08-20 13-00) 
#   Update for POL/POM 4 
# [Dadu042] (2019-11-15 12-55)
#   Cleanup.
# [Dadu042] (2019-11-30 22-15)
#   Fix audio.
#   Try to understand the 'no keyboard' issue (set sound before the installer ? one of the two .EXE ?).
# [Dadu042] (2019-12-01 14-00)
#   Wine 4.0.2 -> 3.0.3 (to let more POL users to play the game because Wine 4.0.2 requires POL 4.3.4).
#   Game version used: v2.11.26 (it's displayed on the launcher window, top bar).

# KNOWN ISSUES:
#  - Wine amd64 4.0.2: No sound nor music. Fix: force Alsa.
#  - Wine amd64 2.22, 3.0.3, 3.21, 4.0.2 english/french, 4.0.3: keyboard does not work (so the game is not keyboard playable). https://bugs.winehq.org/show_bug.cgi?id=13705
#  - Wine amd64 4.0.2: the debug log shows errors about missing POL_Install_riched30, once installed it crash until POL_Install_msls31 is installed. But then, the game crash to load...
#  - Wine amd64 3.0.3, 4.0.2, 4.0.3: Game installer does end, but POL (v4.3.4) does not notice it.. Workaround: create the shortcuts manually. Tried: 'POL_Wine start /unix'.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Trackmania Nations Forever"
WORKING_WINE_VERSION="3.0.3"

POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Focus Home Interactive" "http://www.trackmaniaunited.com/" "Tinou" "TMNations"
 
POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"


POL_Wine_SelectPrefix "TMNations"

# Determine Architecture
# POL_System_SetArch "amd64"
POL_System_SetArch "x86"


if [ "$POL_SELECTED_FILE" = "" ]
then
    cd "$HOME"
    # POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
    POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
    CHEMIN="$APP_ANSWER"
else
    CHEMIN="$POL_SELECTED_FILE"
fi


POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
Set_OS "vista"

# POL_Call POL_Install_riched30
# POL_Call POL_Install_msls31


if [ "$PLAYONMAC" = "" ]
then
    # PlayonLinux

# Was useful before 2019:
# Setting default path for installers
#POL_LoadVar_PROGRAMFILES
#    Set_SoundDriver "oss"
#    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
#    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
    
    # Sound problem fix - pulseaudio related.
    [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
    [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
    # End Fix
fi

cd "$REPERTOIRE/tmp"
 
POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
 
Set_Managed Off

# /silent makes the installation a bit faster (no questions).
POL_Wine "$CHEMIN" "/silent"


if [ "$PLAYONMAC" = "" ]
then
    # It's PlayonLinux.
    
    # If the content of this 'if' is empty, this seems to block POL 4.3.4.
    POL_SetupWindow_message "$(eval_gettext 'Debug: PlayonLinux is running this script.')" "$TITLE"

else
    # It's PlayonMac.

    # Setting default path for installers
    POL_LoadVar_PROGRAMFILES
    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
    POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
    unzip tmnf.zip
    POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
fi

POL_Shortcut "TmForever.exe" "$TITLE" "" "" "Game;SportsGame;" 
POL_Shortcut "TmForeverLauncher.exe" "$TITLE - Launcher" "" "" "Game;SportsGame;" 

# POL_SetupWindow_message "$TITLE has been successfully installed." "Track Mania Nation For Ever"

POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have huge log file, you should type \ninto Debug flags : fixme-all')" "$TITLE"

POL_SetupWindow_Close
exit

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Dimanche 1 Décembre 2019 à 21:20
Dadu042
Modérateur

Information

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

Differences

@@ -15,17 +15,22 @@
 #   Cleanup.
 # [Dadu042] (2019-11-30 22-15)
 #   Fix audio.
-#   Try to understand the 'no keyboard' issue (sound before the installer ? one of the two .EXE ?).
+#   Try to understand the 'no keyboard' issue (set sound before the installer ? one of the two .EXE ?).
+# [Dadu042] (2019-12-01 14-00)
+#   Wine 4.0.2 -> 3.0.3 (to let more POL users to play the game because Wine 4.0.2 requires POL 4.3.4).
+#   Game version used: v2.11.26 (it's displayed on the launcher window, top bar).
 
 # KNOWN ISSUES:
 #  - Wine amd64 4.0.2: No sound nor music. Fix: force Alsa.
 #  - Wine amd64 2.22, 3.0.3, 3.21, 4.0.2 english/french, 4.0.3: keyboard does not work (so the game is not keyboard playable). https://bugs.winehq.org/show_bug.cgi?id=13705
+#  - Wine amd64 4.0.2: the debug log shows errors about missing POL_Install_riched30, once installed it crash until POL_Install_msls31 is installed. But then, the game crash to load...
+#  - Wine amd64 3.0.3, 4.0.2, 4.0.3: Game installer does end, but POL (v4.3.4) does not notice it.. Workaround: create the shortcuts manually. Tried: 'POL_Wine start /unix'.
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
 TITLE="Trackmania Nations Forever"
-WORKING_WINE_VERSION="4.0.2"
+WORKING_WINE_VERSION="3.0.3"
 
 POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
 POL_Debug_Init
@@ -42,14 +47,10 @@
 POL_System_SetArch "x86"
 
 
-POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-Set_OS "win7"
-
- 
 if [ "$POL_SELECTED_FILE" = "" ]
 then
     cd "$HOME"
-    POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
+    # POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
     POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
     CHEMIN="$APP_ANSWER"
 else
@@ -57,16 +58,25 @@
 fi
 
 
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+Set_OS "vista"
+
+# POL_Call POL_Install_riched30
+# POL_Call POL_Install_msls31
+
+
 if [ "$PLAYONMAC" = "" ]
 then
     # PlayonLinux
 
 # Was useful before 2019:
+# Setting default path for installers
+#POL_LoadVar_PROGRAMFILES
 #    Set_SoundDriver "oss"
 #    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
 #    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
     
-    # Sound problem fix - pulseaudio related
+    # Sound problem fix - pulseaudio related.
     [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
     [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
     # End Fix
@@ -74,31 +84,25 @@
 
 cd "$REPERTOIRE/tmp"
  
-# POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
+POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
  
 Set_Managed Off
-POL_Wine "$CHEMIN" 
- 
-# Setting default path for installers
-POL_LoadVar_PROGRAMFILES
+
+# /silent makes the installation a bit faster (no questions).
+POL_Wine "$CHEMIN" "/silent"
+
 
 if [ "$PLAYONMAC" = "" ]
 then
-    # PlayonLinux
-
-# Was useful before 2019:
-#    Set_SoundDriver "oss"
-#    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
-#    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
+    # It's PlayonLinux.
     
-    # Sound problem fix - pulseaudio related
-#    [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
-#    [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
-    # End Fix
+    # If the content of this 'if' is empty, this seems to block POL 4.3.4.
+    POL_SetupWindow_message "$(eval_gettext 'Debug: PlayonLinux is running this script.')" "$TITLE"
 
 else
-    # PlayonMac
+    # It's PlayonMac.
 
+    # Setting default path for installers
     POL_LoadVar_PROGRAMFILES
     cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
     POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
@@ -106,9 +110,12 @@
     POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
 fi
 
-POL_Shortcut "TmForeverLauncher.exe" "$TITLE" "" "" "Game;SportsGame;" 
+POL_Shortcut "TmForever.exe" "$TITLE" "" "" "Game;SportsGame;" 
 POL_Shortcut "TmForeverLauncher.exe" "$TITLE - Launcher" "" "" "Game;SportsGame;" 
- 
-POL_SetupWindow_message "$TITLE has been successfully installed." "Track Mania Nation For Ever"
+
+# POL_SetupWindow_message "$TITLE has been successfully installed." "Track Mania Nation For Ever"
+
+POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have huge log file, you should type \ninto Debug flags : fixme-all')" "$TITLE"
+
 POL_SetupWindow_Close
-exit
+exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Last revision : see changelog
# Tested : Debian 6.0, Mac OSX , Kubuntu 18.04 amd64
# Author : Tinou
# Script licence : GPLv3
# 
# This script is designed for PlayOnLinux and PlayOnMac. 
#
# CHANGELOG
# [Quentin P] (2011)
#   Initial writting.
# [Quentin P] (2011-08-20 13-00) 
#   Update for POL/POM 4 
# [Dadu042] (2019-11-15 12-55)
#   Cleanup.
# [Dadu042] (2019-11-30 22-15)
#   Fix audio.
#   Try to understand the 'no keyboard' issue (set sound before the installer ? one of the two .EXE ?).
# [Dadu042] (2019-12-01 14-00)
#   Wine 4.0.2 -> 3.0.3 (to let more POL users to play the game because Wine 4.0.2 requires POL 4.3.4).
#   Game version used: v2.11.26 (it's displayed on the launcher window, top bar).

# KNOWN ISSUES:
#  - Wine amd64 4.0.2: No sound nor music. Fix: force Alsa.
#  - Wine amd64 2.22, 3.0.3, 3.21, 4.0.2 english/french, 4.0.3: keyboard does not work (so the game is not keyboard playable). https://bugs.winehq.org/show_bug.cgi?id=13705
#  - Wine amd64 4.0.2: the debug log shows errors about missing POL_Install_riched30, once installed it crash until POL_Install_msls31 is installed. But then, the game crash to load...
#  - Wine amd64 3.0.3, 4.0.2, 4.0.3: Game installer does end, but POL (v4.3.4) does not notice it.. Workaround: create the shortcuts manually. Tried: 'POL_Wine start /unix'.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Trackmania Nations Forever"
WORKING_WINE_VERSION="3.0.3"

POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Focus Home Interactive" "http://www.trackmaniaunited.com/" "Tinou" "TMNations"
 
POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"


POL_Wine_SelectPrefix "TMNations"

# Determine Architecture
# POL_System_SetArch "amd64"
POL_System_SetArch "x86"


if [ "$POL_SELECTED_FILE" = "" ]
then
    cd "$HOME"
    # POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
    POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
    CHEMIN="$APP_ANSWER"
else
    CHEMIN="$POL_SELECTED_FILE"
fi


POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
Set_OS "vista"

# POL_Call POL_Install_riched30
# POL_Call POL_Install_msls31


if [ "$PLAYONMAC" = "" ]
then
    # PlayonLinux

# Was useful before 2019:
# Setting default path for installers
#POL_LoadVar_PROGRAMFILES
#    Set_SoundDriver "oss"
#    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
#    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
    
    # Sound problem fix - pulseaudio related.
    [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
    [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
    # End Fix
fi

cd "$REPERTOIRE/tmp"
 
POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
 
Set_Managed Off

# /silent makes the installation a bit faster (no questions).
POL_Wine "$CHEMIN" "/silent"


if [ "$PLAYONMAC" = "" ]
then
    # It's PlayonLinux.
    
    # If the content of this 'if' is empty, this seems to block POL 4.3.4.
    POL_SetupWindow_message "$(eval_gettext 'Debug: PlayonLinux is running this script.')" "$TITLE"

else
    # It's PlayonMac.

    # Setting default path for installers
    POL_LoadVar_PROGRAMFILES
    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
    POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
    unzip tmnf.zip
    POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
fi

POL_Shortcut "TmForever.exe" "$TITLE" "" "" "Game;SportsGame;" 
POL_Shortcut "TmForeverLauncher.exe" "$TITLE - Launcher" "" "" "Game;SportsGame;" 

# POL_SetupWindow_message "$TITLE has been successfully installed." "Track Mania Nation For Ever"

POL_SetupWindow_message "$(eval_gettext 'WARNING: to avoid to have huge log file, you should type \ninto Debug flags : fixme-all')" "$TITLE"

POL_SetupWindow_Close
exit

Réponses

Dadu042 Dimanche 1 Décembre 2019 à 1:10
Dadu042
Modérateur

Warning

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

Differences

@@ -13,24 +13,38 @@
 #   Update for POL/POM 4 
 # [Dadu042] (2019-11-15 12-55)
 #   Cleanup.
+# [Dadu042] (2019-11-30 22-15)
+#   Fix audio.
+#   Try to understand the 'no keyboard' issue (sound before the installer ? one of the two .EXE ?).
 
+# KNOWN ISSUES:
+#  - Wine amd64 4.0.2: No sound nor music. Fix: force Alsa.
+#  - Wine amd64 2.22, 3.0.3, 3.21, 4.0.2 english/french, 4.0.3: keyboard does not work (so the game is not keyboard playable). https://bugs.winehq.org/show_bug.cgi?id=13705
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
 TITLE="Trackmania Nations Forever"
- 
+WORKING_WINE_VERSION="4.0.2"
+
 POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
 POL_Debug_Init
 POL_SetupWindow_Init
 POL_SetupWindow_presentation "$TITLE" "Focus Home Interactive" "http://www.trackmaniaunited.com/" "Tinou" "TMNations"
  
-POL_RequiredVersion "4.0.3" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
 
-#Préparation de Wine
 POL_Wine_SelectPrefix "TMNations"
-POL_Wine_PrefixCreate
- 
+
+# Determine Architecture
+# POL_System_SetArch "amd64"
+POL_System_SetArch "x86"
+
+
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+Set_OS "win7"
+
  
 if [ "$POL_SELECTED_FILE" = "" ]
 then
@@ -41,22 +55,50 @@
 else
     CHEMIN="$POL_SELECTED_FILE"
 fi
- 
+
+
+if [ "$PLAYONMAC" = "" ]
+then
+    # PlayonLinux
+
+# Was useful before 2019:
+#    Set_SoundDriver "oss"
+#    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
+#    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
+    
+    # Sound problem fix - pulseaudio related
+    [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
+    [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
+    # End Fix
+fi
+
 cd "$REPERTOIRE/tmp"
  
-POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
+# POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
  
 Set_Managed Off
-POL_Wine "$CHEMIN"
+POL_Wine "$CHEMIN" 
  
+# Setting default path for installers
 POL_LoadVar_PROGRAMFILES
- 
+
 if [ "$PLAYONMAC" = "" ]
 then
-    Set_SoundDriver "oss"
-    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
-    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
+    # PlayonLinux
+
+# Was useful before 2019:
+#    Set_SoundDriver "oss"
+#    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
+#    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
+    
+    # Sound problem fix - pulseaudio related
+#    [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
+#    [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
+    # End Fix
+
 else
+    # PlayonMac
+
     POL_LoadVar_PROGRAMFILES
     cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
     POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
@@ -64,8 +106,9 @@
     POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
 fi
 
-POL_Shortcut "TmForeverLauncher.exe" "$TITLE" "" "" "Game;" 
+POL_Shortcut "TmForeverLauncher.exe" "$TITLE" "" "" "Game;SportsGame;" 
+POL_Shortcut "TmForeverLauncher.exe" "$TITLE - Launcher" "" "" "Game;SportsGame;" 
  
-POL_SetupWindow_message "$TITLE has been successfully installed" "Track Mania Nation For Ever"
+POL_SetupWindow_message "$TITLE has been successfully installed." "Track Mania Nation For Ever"
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+exit

Nouveau code source

#!/bin/bash
# Last revision : see changelog
# Tested : Debian 6.0, Mac OSX , Kubuntu 18.04 amd64
# Author : Tinou
# Script licence : GPLv3
# 
# This script is designed for PlayOnLinux and PlayOnMac. 
#
# CHANGELOG
# [Quentin P] (2011)
#   Initial writting.
# [Quentin P] (2011-08-20 13-00) 
#   Update for POL/POM 4 
# [Dadu042] (2019-11-15 12-55)
#   Cleanup.
# [Dadu042] (2019-11-30 22-15)
#   Fix audio.
#   Try to understand the 'no keyboard' issue (sound before the installer ? one of the two .EXE ?).

# KNOWN ISSUES:
#  - Wine amd64 4.0.2: No sound nor music. Fix: force Alsa.
#  - Wine amd64 2.22, 3.0.3, 3.21, 4.0.2 english/french, 4.0.3: keyboard does not work (so the game is not keyboard playable). https://bugs.winehq.org/show_bug.cgi?id=13705

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Trackmania Nations Forever"
WORKING_WINE_VERSION="4.0.2"

POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Focus Home Interactive" "http://www.trackmaniaunited.com/" "Tinou" "TMNations"
 
POL_RequiredVersion "4.2.12" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"


POL_Wine_SelectPrefix "TMNations"

# Determine Architecture
# POL_System_SetArch "amd64"
POL_System_SetArch "x86"


POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
Set_OS "win7"

 
if [ "$POL_SELECTED_FILE" = "" ]
then
    cd "$HOME"
    POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
    POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
    CHEMIN="$APP_ANSWER"
else
    CHEMIN="$POL_SELECTED_FILE"
fi


if [ "$PLAYONMAC" = "" ]
then
    # PlayonLinux

# Was useful before 2019:
#    Set_SoundDriver "oss"
#    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
#    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
    
    # Sound problem fix - pulseaudio related
    [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
    [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
    # End Fix
fi

cd "$REPERTOIRE/tmp"
 
# POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
 
Set_Managed Off
POL_Wine "$CHEMIN" 
 
# Setting default path for installers
POL_LoadVar_PROGRAMFILES

if [ "$PLAYONMAC" = "" ]
then
    # PlayonLinux

# Was useful before 2019:
#    Set_SoundDriver "oss"
#    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
#    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
    
    # Sound problem fix - pulseaudio related
#    [ "$POL_OS" = "Linux" ] && Set_SoundDriver "alsa"
#    [ "$POL_OS" = "Linux" ] && Set_SoundEmulDriver "Y"
    # End Fix

else
    # PlayonMac

    POL_LoadVar_PROGRAMFILES
    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
    POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
    unzip tmnf.zip
    POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
fi

POL_Shortcut "TmForeverLauncher.exe" "$TITLE" "" "" "Game;SportsGame;" 
POL_Shortcut "TmForeverLauncher.exe" "$TITLE - Launcher" "" "" "Game;SportsGame;" 
 
POL_SetupWindow_message "$TITLE has been successfully installed." "Track Mania Nation For Ever"
POL_SetupWindow_Close
exit

Réponses

Dadu042 Jeudi 28 Novembre 2019 à 15:36
Dadu042
Modérateur

Warning

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

Differences

@@ -1,71 +1,71 @@
 #!/bin/bash
-# Last revision : (2011-08-20 13-00)
-# Tested : Debian 6.0, Mac OSX 
+# Last revision : see changelog
+# Tested : Debian 6.0, Mac OSX , Kubuntu 18.04 amd64
 # Author : Tinou
 # Script licence : GPLv3
 # 
 # This script is designed for PlayOnLinux and PlayOnMac. 
 #
-# * Revision (2011-08-20 13-00) 
-#  - Update for POL/POM 4 
+# CHANGELOG
+# [Quentin P] (2011)
+#   Initial writting.
+# [Quentin P] (2011-08-20 13-00) 
+#   Update for POL/POM 4 
+# [Dadu042] (2019-11-15 12-55)
+#   Cleanup.
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Trackmania Nations Forever"
-
+ 
 POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
 POL_Debug_Init
-POL_SetupWindow_Init 
+POL_SetupWindow_Init
 POL_SetupWindow_presentation "$TITLE" "Focus Home Interactive" "http://www.trackmaniaunited.com/" "Tinou" "TMNations"
-
-
-
-
-# FIXME 
-[ ! "$VERSION" = "4.0.3" ] && POL_Browser "http://www.trackmaniaunited.com"
+ 
+POL_RequiredVersion "4.0.3" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
 
 #Préparation de Wine
 POL_Wine_SelectPrefix "TMNations"
 POL_Wine_PrefixCreate
-
-
+ 
+ 
 if [ "$POL_SELECTED_FILE" = "" ]
 then
-cd "$HOME"
-POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
-POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
-CHEMIN="$APP_ANSWER"
+    cd "$HOME"
+    POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
+    POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
+    CHEMIN="$APP_ANSWER"
 else
-CHEMIN="$POL_SELECTED_FILE"
+    CHEMIN="$POL_SELECTED_FILE"
 fi
-
+ 
 cd "$REPERTOIRE/tmp"
-
+ 
 POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
-
+ 
 Set_Managed Off
 POL_Wine "$CHEMIN"
-
+ 
 POL_LoadVar_PROGRAMFILES
-
+ 
 if [ "$PLAYONMAC" = "" ]
 then
-Set_SoundDriver "oss"
-cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
-POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
+    Set_SoundDriver "oss"
+    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
+    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
 else
-POL_LoadVar_PROGRAMFILES
-cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
-POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
-unzip tmnf.zip
-POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
+    POL_LoadVar_PROGRAMFILES
+    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
+    POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
+    unzip tmnf.zip
+    POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
 fi
 
-#CREATION LANCEUR
-POL_Shortcut "TmForeverLauncher.exe" "$TITLE"
-
-
+POL_Shortcut "TmForeverLauncher.exe" "$TITLE" "" "" "Game;" 
+ 
 POL_SetupWindow_message "$TITLE has been successfully installed" "Track Mania Nation For Ever"
 POL_SetupWindow_Close
 exit
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Last revision : see changelog
# Tested : Debian 6.0, Mac OSX , Kubuntu 18.04 amd64
# Author : Tinou
# Script licence : GPLv3
# 
# This script is designed for PlayOnLinux and PlayOnMac. 
#
# CHANGELOG
# [Quentin P] (2011)
#   Initial writting.
# [Quentin P] (2011-08-20 13-00) 
#   Update for POL/POM 4 
# [Dadu042] (2019-11-15 12-55)
#   Cleanup.


[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Trackmania Nations Forever"
 
POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
POL_Debug_Init
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Focus Home Interactive" "http://www.trackmaniaunited.com/" "Tinou" "TMNations"
 
POL_RequiredVersion "4.0.3" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

#Préparation de Wine
POL_Wine_SelectPrefix "TMNations"
POL_Wine_PrefixCreate
 
 
if [ "$POL_SELECTED_FILE" = "" ]
then
    cd "$HOME"
    POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
    POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
    CHEMIN="$APP_ANSWER"
else
    CHEMIN="$POL_SELECTED_FILE"
fi
 
cd "$REPERTOIRE/tmp"
 
POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
 
Set_Managed Off
POL_Wine "$CHEMIN"
 
POL_LoadVar_PROGRAMFILES
 
if [ "$PLAYONMAC" = "" ]
then
    Set_SoundDriver "oss"
    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
    POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
else
    POL_LoadVar_PROGRAMFILES
    cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
    POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
    unzip tmnf.zip
    POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
fi

POL_Shortcut "TmForeverLauncher.exe" "$TITLE" "" "" "Game;" 
 
POL_SetupWindow_message "$TITLE has been successfully installed" "Track Mania Nation For Ever"
POL_SetupWindow_Close
exit

Réponses

liloldboy Jeudi 7 Février 2019 à 9:16
liloldboy Anonymous

Messages

This program does run really well, despite it freezing every 5 minutes or so. Thus I am needing to force quit it which in turn damages the application and unables me to open it again...

Please help!

I have re-installed it multiple times and still get the same issue.

Réponses

Edité par liloldboy

javi_er Mercredi 29 Novembre 2017 à 13:57
javi_er Anonymous

Messages

I installed it and it seems to run very well, except I can't log in or do anything because the keyboard doesn't work. It's ignoring anything I type. crying

I'm not very skilled with Linux so a simplified explanation would be much appretiated indecisioncheeky ShouldI reinstall or something?
 

Réponses

iuvbio Samedi 12 Décembre 2015 à 19:10
iuvbio Anonymous

Messages

Hi,

I have installed the game via the installer and it all works fine, except that it cannot connect to the internet. Whether I want to create a new account or log in using my existing one it always tells me that I am not connected, although I definitely am. Do you have any idea how to solve this?

Thanks in advance.

Réponses

Anonymous
Mardi 22 Novembre 2016 à 2:39
I am also facing this problem. The game is working smoothly but it can't etect my internet connection.
Mercredi 4 Janvier 2017 à 23:04
Same problem here... Is there maybe a network setting globally in POL that blocks this or is this problem application specific?
Anonymous
Mardi 14 Mars 2017 à 0:00
I just tried installing it through the "Install a non-listed program" option, and network is working fine. I chose the latest wine 2.3/64 bits, nothing else.
Anonymous
Jeudi 24 Aoüt 2017 à 22:04
FIX READ
Anonymous
Jeudi 24 Aoüt 2017 à 22:09
I had same problem then you guys with no internet and no sound ... so install trackmania ( you find it in playonlinux games list) when done on pol menu click trackmania and then configure/General/Wine version then click plus button and dowload wine 1.7.0 then go back to Wine version and change it to 1.7.0 don't forget to dowload mono and gecko aplets on components
Anonymous
Jeudi 24 Aoüt 2017 à 22:11
if u don't know how to dowload mono and gecko dowload wine 2.3 and change wine version to 2.3 then execute the game it will tell you to dowload mono and gecko then click yes if you don't have sound problem its ok if u have just change 2.3 to 1.7.0
Quentin PÂRIS Vendredi 29 Aoüt 2014 à 9:22
Quentin PÂRIS
Admin

Warning

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

Differences

@@ -29,16 +29,19 @@
 POL_Wine_SelectPrefix "TMNations"
 POL_Wine_PrefixCreate
 
-cd "$REPERTOIRE/tmp"
 
 if [ "$POL_SELECTED_FILE" = "" ]
 then
+cd "$HOME"
 POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
 POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
 CHEMIN="$APP_ANSWER"
 else
 CHEMIN="$POL_SELECTED_FILE"
 fi
+
+cd "$REPERTOIRE/tmp"
+
 POL_SetupWindow_wait "Installing $TITLE" "$TITLE"
 
 Set_Managed Off

Nouveau code source

#!/bin/bash
# Last revision : (2011-08-20 13-00)
# Tested : Debian 6.0, Mac OSX 
# Author : Tinou
# Script licence : GPLv3
# 
# This script is designed for PlayOnLinux and PlayOnMac. 
#
# * Revision (2011-08-20 13-00) 
#  - Update for POL/POM 4 

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

TITLE="Trackmania Nations Forever"

POL_GetSetupImages "$SITE/setups/tmnf/top.jpg" "$SITE/setups/tmnf/left.jpg" "tmnf"
POL_Debug_Init
POL_SetupWindow_Init 
POL_SetupWindow_presentation "$TITLE" "Focus Home Interactive" "http://www.trackmaniaunited.com/" "Tinou" "TMNations"




# FIXME 
[ ! "$VERSION" = "4.0.3" ] && POL_Browser "http://www.trackmaniaunited.com"

#Préparation de Wine
POL_Wine_SelectPrefix "TMNations"
POL_Wine_PrefixCreate


if [ "$POL_SELECTED_FILE" = "" ]
then
cd "$HOME"
POL_SetupWindow_message "$TITLE setup file is needed before to continue....\n\nDownload it here:\n\nhttp://www.trackmaniaunited.com/" "$TITLE"
POL_SetupWindow_browse "Where is the installation file of $TITLE?" "$TITLE"
CHEMIN="$APP_ANSWER"
else
CHEMIN="$POL_SELECTED_FILE"
fi

cd "$REPERTOIRE/tmp"

POL_SetupWindow_wait "Installing $TITLE" "$TITLE"

Set_Managed Off
POL_Wine "$CHEMIN"

POL_LoadVar_PROGRAMFILES

if [ "$PLAYONMAC" = "" ]
then
Set_SoundDriver "oss"
cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
POL_SetupWindow_download "Downloading wrap_oal.dll" "$TITLE" "$SITE/dlls/wrap_oal.dll"
else
POL_LoadVar_PROGRAMFILES
cd "$REPERTOIRE/wineprefix/TMNations/drive_c/$PROGRAMFILES/TmNationsForever/"
POL_SetupWindow_download "Fixing sound issue..." "$TITLE" "$SITE/divers/tmnf.zip"
unzip tmnf.zip
POL_Call POL_Function_OverrideDLL native,builtin openal32 wrap_oa
fi

#CREATION LANCEUR
POL_Shortcut "TmForeverLauncher.exe" "$TITLE"


POL_SetupWindow_message "$TITLE has been successfully installed" "Track Mania Nation For Ever"
POL_SetupWindow_Close
exit

Réponses