Frontlines: Fuel of War

Informations

Creator Message
Dadu042

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 2997
Wine: 4.0.1

Feedbacks

Description

Screenshots

MiniatureMiniature

Source code

#!/bin/bash
# Date : (2019-08-03)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested version : v1.0.0 (retail 2x DVDs, western europe)
#
# Game based on (ie: middlewares): .
#
#
# CHANGELOG:
# [Dadu042] (2019-08-14)
#   First script.
# [Dadu042] (2019-08-16)
#   Add Known issues.
#
# KNOWN ISSUES:
# - Wine 4.01, 4.11: DRM does not recognize the original DVD #1 (but is OK with #2).
# - Wine 4.01, 4.11: Once clicked from POL, the game only launch (ie: intro videos) after 3 minutes (CPU used: Intel I3-4130).



[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
         
TITLE="Frontlines: Fuel of War"
PREFIX="Frontlines_FOW"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR=""
GAME_URL=""
    
POL_SetupWindow_Init
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
    
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# POL_Wine_PrefixCreate
POL_System_TmpCreate "$TITLE"
  
Set_OS "vista"
  
# POL_Call POL_Install_corefonts
  
## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
# End Section ##

# This web game was not released on CD/DVD.
# POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD" 
POL_SetupWindow_InstallMethod "LOCAL,DVD,STEAM"
     
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
   
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"

#        POL_SetupWindow_message "We recommend to uncheck all checkboxes (ie: about DirectX, VC++ ..." "$TITLE"

        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"

elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/9460
        POL_Wine_WaitBefore "$TITLE"

elif [ "$INSTALL_METHOD" == "DVD" ];then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "dotnetfx.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
      
      
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/9460"
else         
       POL_Shortcut "FFOW.exe" "$TITLE" "" "" "Game;Shooter;"
       POL_Shortcut_Document "$TITLE" "FFOW_Manual.pdf"
fi
  
# GPU selection. Useful when there is 2 GPU on the same computer (ie: Intel HD + Nvidia).
POL_Call POL_Install_VideoDriver

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Friday 16 August 2019 at 15:50
Dadu042

Information

This update has been approved by the team.

Message

# KNOWN ISSUES:
# - Wine 4.01, 4.11: DRM does not recognize the original DVD #1 (but is OK with #2).
# - Wine 4.01, 4.11: Once clicked from POL, the game only launch (ie: intro videos) after 3 minutes (CPU used: Intel I3-4130).

Differences

@@ -17,12 +17,10 @@
 #   First script.
 # [Dadu042] (2019-08-16)
 #   Add Known issues.
-#   Wine 4.0.1 -> 4.11
 #
 # KNOWN ISSUES:
-# - Wine 4.0.1: DRM does not recognize the original DVD #1 nor #2.
-# - Wine 4.11: DRM does not recognize the original DVD #1 (but is OK with #2).
-# - Wine 4.11: Once clicked from POL, the game only launch (ie: intro videosà) after 3 minutes (CPU used: Intel I3-4130).
+# - Wine 4.01, 4.11: DRM does not recognize the original DVD #1 (but is OK with #2).
+# - Wine 4.01, 4.11: Once clicked from POL, the game only launch (ie: intro videos) after 3 minutes (CPU used: Intel I3-4130).
 
 
 
@@ -31,7 +29,7 @@
          
 TITLE="Frontlines: Fuel of War"
 PREFIX="Frontlines_FOW"
-WORKING_WINE_VERSION="4.11"
+WORKING_WINE_VERSION="4.0.1"
 AUTHOR="Dadu042"
 EDITOR=""
 GAME_URL=""

New source code

#!/bin/bash
# Date : (2019-08-03)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested version : v1.0.0 (retail 2x DVDs, western europe)
#
# Game based on (ie: middlewares): .
#
#
# CHANGELOG:
# [Dadu042] (2019-08-14)
#   First script.
# [Dadu042] (2019-08-16)
#   Add Known issues.
#
# KNOWN ISSUES:
# - Wine 4.01, 4.11: DRM does not recognize the original DVD #1 (but is OK with #2).
# - Wine 4.01, 4.11: Once clicked from POL, the game only launch (ie: intro videos) after 3 minutes (CPU used: Intel I3-4130).



[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
         
TITLE="Frontlines: Fuel of War"
PREFIX="Frontlines_FOW"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR=""
GAME_URL=""
    
POL_SetupWindow_Init
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
    
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# POL_Wine_PrefixCreate
POL_System_TmpCreate "$TITLE"
  
Set_OS "vista"
  
# POL_Call POL_Install_corefonts
  
## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
# End Section ##

# This web game was not released on CD/DVD.
# POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD" 
POL_SetupWindow_InstallMethod "LOCAL,DVD,STEAM"
     
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
   
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"

#        POL_SetupWindow_message "We recommend to uncheck all checkboxes (ie: about DirectX, VC++ ..." "$TITLE"

        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"

elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/9460
        POL_Wine_WaitBefore "$TITLE"

elif [ "$INSTALL_METHOD" == "DVD" ];then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "dotnetfx.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
      
      
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/9460"
else         
       POL_Shortcut "FFOW.exe" "$TITLE" "" "" "Game;Shooter;"
       POL_Shortcut_Document "$TITLE" "FFOW_Manual.pdf"
fi
  
# GPU selection. Useful when there is 2 GPU on the same computer (ie: Intel HD + Nvidia).
POL_Call POL_Install_VideoDriver

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

Dadu042 Wednesday 14 August 2019 at 22:17
Dadu042

Warning

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

Message

I used the DVD version to write this script, but it should work with Steam too.

Differences

@@ -0,0 +1,97 @@
+#!/bin/bash
+# Date : (2019-08-03)
+# Last revision : see changelog
+# Wine version used : see below
+# Distribution used to test : XUbuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : Retail
+# Playonlinux v4.3.4
+#
+# Tested version : v1.0.0 (retail 2x DVDs, euro)
+#
+# Game based on (ie: middlewares): .
+#
+#
+# CHANGELOG:
+# [Dadu042] (2019-08-14)
+#   First script.
+#
+# KNOWN ISSUES:
+
+
+
+
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+         
+TITLE="Frontlines: Fuel of War"
+PREFIX="Frontlines_FOW"
+WORKING_WINE_VERSION="4.0.1"
+AUTHOR="Dadu042"
+EDITOR=""
+GAME_URL=""
+    
+POL_SetupWindow_Init
+POL_Debug_Init
+    
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+    
+POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+    
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+# POL_Wine_PrefixCreate
+POL_System_TmpCreate "$TITLE"
+  
+Set_OS "vista"
+  
+# POL_Call POL_Install_corefonts
+  
+## Begin Common PlayOnMac Section ##
+[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
+# End Section ##
+
+# This web game was not released on CD/DVD.
+# POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD" 
+POL_SetupWindow_InstallMethod "LOCAL,DVD,STEAM"
+     
+if [ "$INSTALL_METHOD" == "LOCAL" ]; then
+   
+        cd "$HOME"
+        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
+        SETUP_EXE="$APP_ANSWER"
+
+#	POL_SetupWindow_message "We recommend to uncheck all checkboxes (ie: about DirectX, VC++ ..." "$TITLE"
+
+        POL_Wine start /unix "$SETUP_EXE"
+        POL_Wine_WaitExit "$TITLE"
+
+elif [ "$INSTALL_METHOD" == "STEAM" ];then
+        POL_Call POL_Install_steam
+        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+        POL_Wine "steam.exe" steam://install/9460
+        POL_Wine_WaitBefore "$TITLE"
+
+elif [ "$INSTALL_METHOD" == "DVD" ];then
+        POL_SetupWindow_cdrom
+        POL_SetupWindow_check_cdrom "dotnetfx.exe"
+        POL_Wine start /unix "$CDROM/setup.exe"
+        POL_Wine_WaitExit "setup.exe"
+        cd "$POL_System_TmpDir"
+fi
+      
+      
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/9460"
+else         
+       POL_Shortcut "FFOW.exe" "$TITLE" "" "" "Game;Shooter;"
+       POL_Shortcut_Document "$TITLE" "FFOW_Manual.pdf"
+fi
+  
+# GPU selection. Useful when there is 2 GPU on the same computer (ie: Intel HD + Nvidia).
+POL_Call POL_Install_VideoDriver
+
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2019-08-03)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested version : v1.0.0 (retail 2x DVDs, euro)
#
# Game based on (ie: middlewares): .
#
#
# CHANGELOG:
# [Dadu042] (2019-08-14)
#   First script.
#
# KNOWN ISSUES:




[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
         
TITLE="Frontlines: Fuel of War"
PREFIX="Frontlines_FOW"
WORKING_WINE_VERSION="4.0.1"
AUTHOR="Dadu042"
EDITOR=""
GAME_URL=""
    
POL_SetupWindow_Init
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
    
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
# POL_Wine_PrefixCreate
POL_System_TmpCreate "$TITLE"
  
Set_OS "vista"
  
# POL_Call POL_Install_corefonts
  
## Begin Common PlayOnMac Section ##
[ "$POL_OS" = "Mac" ] && Set_Managed "Off"
# End Section ##

# This web game was not released on CD/DVD.
# POL_SetupWindow_InstallMethod "LOCAL,STEAM,CD" 
POL_SetupWindow_InstallMethod "LOCAL,DVD,STEAM"
     
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
   
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"

#        POL_SetupWindow_message "We recommend to uncheck all checkboxes (ie: about DirectX, VC++ ..." "$TITLE"

        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"

elif [ "$INSTALL_METHOD" == "STEAM" ];then
        POL_Call POL_Install_steam
        cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
        POL_Wine "steam.exe" steam://install/9460
        POL_Wine_WaitBefore "$TITLE"

elif [ "$INSTALL_METHOD" == "DVD" ];then
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "dotnetfx.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
      
      
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/9460"
else         
       POL_Shortcut "FFOW.exe" "$TITLE" "" "" "Game;Shooter;"
       POL_Shortcut_Document "$TITLE" "FFOW_Manual.pdf"
fi
  
# GPU selection. Useful when there is 2 GPU on the same computer (ie: Intel HD + Nvidia).
POL_Call POL_Install_VideoDriver

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com