Trackmania Nations Forever

Informations

Creator Message
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 212418
Wine: 3.0.3

Feedbacks

Description

Racing game, 2007. Wikipedia.

Appdb.winehq.org . PCGamingWiki.

Screenshots

Miniature

Source code

#!/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:

Contribute
Member Message
unzipped Friday 8 May 2020 at 20:33
unzipped Anonymous

Message

I have successfully installed TMN, but when I want to start the Launcher does not find DirectX 9. I have installed d3dx9, d3dx9_43 and directx9 from components but still get this error.

Does anybody have a hint?

Replies

Friday 8 May 2020 at 23:29
Post more details in the forum : http://wiki.playonlinux.com/index.php/How_to_Post_in_the_Forums
Dadu042 Sunday 1 December 2019 at 21:20
Dadu042

Information

This update has been approved by the team.

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

New source code

#!/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

Replies

Dadu042 Sunday 1 December 2019 at 1:10
Dadu042

Warning

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

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

New source code

#!/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

Replies

Dadu042 Thursday 28 November 2019 at 15:36
Dadu042

Warning

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

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

New source code

#!/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

Replies

liloldboy Thursday 7 February 2019 at 9:16
liloldboy Anonymous

Message

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.

Replies

Edited by liloldboy

javi_er Wednesday 29 November 2017 at 13:57
javi_er Anonymous

Message

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?
 

Replies

iuvbio Saturday 12 December 2015 at 19:10
iuvbio Anonymous

Message

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.

Replies

Anonymous
Tuesday 22 November 2016 at 2:39
I am also facing this problem. The game is working smoothly but it can't etect my internet connection.
Wednesday 4 January 2017 at 23:04
Same problem here... Is there maybe a network setting globally in POL that blocks this or is this problem application specific?
Anonymous
Tuesday 14 March 2017 at 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
Thursday 24 August 2017 at 22:04
FIX READ
Anonymous
Thursday 24 August 2017 at 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
Thursday 24 August 2017 at 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 Friday 29 August 2014 at 9:22
Quentin PÂRIS Anonymous

Warning

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

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

New source code

#!/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

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