Project Reality: BF2

Informations

Creator Message
Dadu042

Warning

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

Informations

Platforms:
Downloads: 3675
Wine: 5.0.3

Feedbacks

Description

Freeware FPS game based on the game engine of Battlefield 2, but playable without the original game. Wikipedia page. Website.

Script tested with game v1.5 (2019, torrent or from there).  Game file size: > 9 GB.

Warning: the v1.6.0.3 does fail to run (as of 2020-11).

Reddit, Appdb.winehq.org

 

Screenshots

Miniature

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64, GPU: AMD Vega 11
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.6.0.0 (auto upgraded to v1.6.2.3).
#
# This game is based on: DirectX 9, DotNet 4.6, MS Visual C++ 2015 (all provided on the .ISO), Mono 4.8.
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
# [Dadu042] (2020-06-22)
#   Fix Set_OS (it was at a wrong place)
# [Dadu042] (2020-07-26)
#   Tried to run it again (and also from pure wine sessions) with Wine 5.13 and game v1.6.0.0. Tried: dotnet452, 461, 462, vcrun2008, vcrun2010
# [Dadu042] (2020-08-20)
#   Wine 5.0.1 -> 5.0.2 The game does now succeed to auto upgrade it self (to v1.6.2.3), but it crash when trying to play (after clicking Play). Tried: disable intro video.
#
#
#
# KNOWN ISSUES (game v1.6.0.0):
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.11, proton 4.2 (without dotnet), 5.12: game launch up to the login window, but the windows are black. Tried: mono 5.2, mono 4.8.1.
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0.3"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
 
     
POL_SetupWindow_Init
POL_Debug_Init
        
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
   
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_System_TmpCreate "$TITLE"
 
Set_OS "win7"
 
   
################
#      GPU     #
################
             
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
              
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
               
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
   
################
# To improve ? #
################
  
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
   
# Really necessary ?
# POL_Call POL_Install_corefonts
    
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
    
# A 2015 would be better... Not yet available in POL (april 2019)
# POL_Call POL_Install_vcrun2013
    
    
     
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to the game to run, but perhaps dotnet45 could be enough.
# POL_Call POL_Install_dotnet40
 
# POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
# POL_Call POL_Install_dotnet461
  
# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
    
###############
# Go          #
###############
     
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
    
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
     
# POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
    
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
   
Set_WineWindowTitle "$TITLE"
      
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Friday 18 December 2020 at 13:57
Dadu042

Information

This update has been approved by the team.

Differences

@@ -49,7 +49,7 @@
     
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
-WORKING_WINE_VERSION="5.0.2"
+WORKING_WINE_VERSION="5.0.3"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64, GPU: AMD Vega 11
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.6.0.0 (auto upgraded to v1.6.2.3).
#
# This game is based on: DirectX 9, DotNet 4.6, MS Visual C++ 2015 (all provided on the .ISO), Mono 4.8.
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
# [Dadu042] (2020-06-22)
#   Fix Set_OS (it was at a wrong place)
# [Dadu042] (2020-07-26)
#   Tried to run it again (and also from pure wine sessions) with Wine 5.13 and game v1.6.0.0. Tried: dotnet452, 461, 462, vcrun2008, vcrun2010
# [Dadu042] (2020-08-20)
#   Wine 5.0.1 -> 5.0.2 The game does now succeed to auto upgrade it self (to v1.6.2.3), but it crash when trying to play (after clicking Play). Tried: disable intro video.
#
#
#
# KNOWN ISSUES (game v1.6.0.0):
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.11, proton 4.2 (without dotnet), 5.12: game launch up to the login window, but the windows are black. Tried: mono 5.2, mono 4.8.1.
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0.3"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
 
     
POL_SetupWindow_Init
POL_Debug_Init
        
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
   
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_System_TmpCreate "$TITLE"
 
Set_OS "win7"
 
   
################
#      GPU     #
################
             
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
              
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
               
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
   
################
# To improve ? #
################
  
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
   
# Really necessary ?
# POL_Call POL_Install_corefonts
    
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
    
# A 2015 would be better... Not yet available in POL (april 2019)
# POL_Call POL_Install_vcrun2013
    
    
     
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to the game to run, but perhaps dotnet45 could be enough.
# POL_Call POL_Install_dotnet40
 
# POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
# POL_Call POL_Install_dotnet461
  
# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
    
###############
# Go          #
###############
     
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
    
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
     
# POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
    
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
   
Set_WineWindowTitle "$TITLE"
      
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Thursday 20 August 2020 at 8:37
Dadu042

Warning

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

Message

Comments.

Differences

@@ -2,12 +2,12 @@
 # Date : (2019-04-28 18-11)
 # Last revision : see changelog
 # Wine version used : see below
-# Distribution used to test : Ubuntu 18.04 x64
+# Distribution used to test : XUbuntu 18.04 x64, GPU: AMD Vega 11
 # Script licence : GPL3
 # Program licence : ?
 # Playonlinux version used : 4.3.4
 #
-# TESTED Editions: v1.6 .
+# TESTED Editions: v1.6.0.0 (auto upgraded to v1.6.2.3).
 #
 # This game is based on: DirectX 9, DotNet 4.6, MS Visual C++ 2015 (all provided on the .ISO), Mono 4.8.
 #
@@ -24,13 +24,13 @@
 # [Dadu042] (2020-07-26)
 #   Tried to run it again (and also from pure wine sessions) with Wine 5.13 and game v1.6.0.0. Tried: dotnet452, 461, 462, vcrun2008, vcrun2010
 # [Dadu042] (2020-08-20)
-#   Wine 5.0.1 -> 5.0.2 The game does now succeed to auto upgrade it self, but it crash when trying to play (after clicking Play). Tried: disable intro video.
+#   Wine 5.0.1 -> 5.0.2 The game does now succeed to auto upgrade it self (to v1.6.2.3), but it crash when trying to play (after clicking Play). Tried: disable intro video.
 #
 #
 #
 # KNOWN ISSUES (game v1.6.0.0):
 #  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
-#  - Wine x86 5.11, proton 4.2 (without dotnet), 5.12: game launch up to the login window, but the windows are black. Tried: mono 5.2, mono 4.8.1
+#  - Wine x86 5.11, proton 4.2 (without dotnet), 5.12: game launch up to the login window, but the windows are black. Tried: mono 5.2, mono 4.8.1.
 #
 # KNOWN ISSUES (game v1.5.0.0):
 #  - Wine x86 4.7 :

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : XUbuntu 18.04 x64, GPU: AMD Vega 11
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.6.0.0 (auto upgraded to v1.6.2.3).
#
# This game is based on: DirectX 9, DotNet 4.6, MS Visual C++ 2015 (all provided on the .ISO), Mono 4.8.
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
# [Dadu042] (2020-06-22)
#   Fix Set_OS (it was at a wrong place)
# [Dadu042] (2020-07-26)
#   Tried to run it again (and also from pure wine sessions) with Wine 5.13 and game v1.6.0.0. Tried: dotnet452, 461, 462, vcrun2008, vcrun2010
# [Dadu042] (2020-08-20)
#   Wine 5.0.1 -> 5.0.2 The game does now succeed to auto upgrade it self (to v1.6.2.3), but it crash when trying to play (after clicking Play). Tried: disable intro video.
#
#
#
# KNOWN ISSUES (game v1.6.0.0):
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.11, proton 4.2 (without dotnet), 5.12: game launch up to the login window, but the windows are black. Tried: mono 5.2, mono 4.8.1.
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0.2"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
 
     
POL_SetupWindow_Init
POL_Debug_Init
        
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
   
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_System_TmpCreate "$TITLE"
 
Set_OS "win7"
 
   
################
#      GPU     #
################
             
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
              
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
               
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
   
################
# To improve ? #
################
  
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
   
# Really necessary ?
# POL_Call POL_Install_corefonts
    
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
    
# A 2015 would be better... Not yet available in POL (april 2019)
# POL_Call POL_Install_vcrun2013
    
    
     
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to the game to run, but perhaps dotnet45 could be enough.
# POL_Call POL_Install_dotnet40
 
# POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
# POL_Call POL_Install_dotnet461
  
# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
    
###############
# Go          #
###############
     
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
    
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
     
# POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
    
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
   
Set_WineWindowTitle "$TITLE"
      
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Thursday 20 August 2020 at 8:32
Dadu042

Warning

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

Differences

@@ -7,9 +7,9 @@
 # Program licence : ?
 # Playonlinux version used : 4.3.4
 #
-# TESTED Editions: v1.5 .
+# TESTED Editions: v1.6 .
 #
-# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
+# This game is based on: DirectX 9, DotNet 4.6, MS Visual C++ 2015 (all provided on the .ISO), Mono 4.8.
 #
 # CHANGELOG
 # [Dadu042] (2019-04-28 18:11)
@@ -21,8 +21,17 @@
 #   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
 # [Dadu042] (2020-06-22)
 #   Fix Set_OS (it was at a wrong place)
+# [Dadu042] (2020-07-26)
+#   Tried to run it again (and also from pure wine sessions) with Wine 5.13 and game v1.6.0.0. Tried: dotnet452, 461, 462, vcrun2008, vcrun2010
+# [Dadu042] (2020-08-20)
+#   Wine 5.0.1 -> 5.0.2 The game does now succeed to auto upgrade it self, but it crash when trying to play (after clicking Play). Tried: disable intro video.
 #
 #
+#
+# KNOWN ISSUES (game v1.6.0.0):
+#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
+#  - Wine x86 5.11, proton 4.2 (without dotnet), 5.12: game launch up to the login window, but the windows are black. Tried: mono 5.2, mono 4.8.1
+#
 # KNOWN ISSUES (game v1.5.0.0):
 #  - Wine x86 4.7 :
 #    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
@@ -32,100 +41,99 @@
 #    - Online: game does not see online servers.
 #
 #  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
-#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.
+#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
 #  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
- 
+  
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-   
+    
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
-WORKING_WINE_VERSION="5.0.1"
+WORKING_WINE_VERSION="5.0.2"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"
-
-    
+ 
+     
 POL_SetupWindow_Init
 POL_Debug_Init
-       
+        
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
- 
-POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
   
+POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
+   
 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_System_TmpCreate "$TITLE"
-
+ 
 Set_OS "win7"
-
-  
+ 
+   
 ################
 #      GPU     #
 ################
-            
+             
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS "256"
-             
+              
 # Set Graphic Card information keys for wine
 POL_Wine_SetVideoDriver
-              
+               
 # Useful for Nvidia GPUs
 # POL_Call POL_Install_physx
-  
+   
 ################
 # To improve ? #
 ################
- 
+  
 # POL_Call POL_Install_d3dx9_43
 # POL_Call POL_Install_d3dcompiler_43
-  
+   
 # Really necessary ?
 # POL_Call POL_Install_corefonts
-   
+    
 # Really necessary ?
 # POL_Call POL_Install_RegisterFonts
-   
+    
 # A 2015 would be better... Not yet available in POL (april 2019)
 # POL_Call POL_Install_vcrun2013
-   
-   
     
+    
+     
 # No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
-# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
-
-POL_Call POL_Install_dotnet40
-
+# dotnet461 allow to the game to run, but perhaps dotnet45 could be enough.
+# POL_Call POL_Install_dotnet40
+ 
 # POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
 # POL_Call POL_Install_dotnet461
- 
+  
 # OpenAudioLayer
 POL_Wine_OverrideDLL "native" "openal32"
-   
+    
 ###############
 # Go          #
 ###############
-    
+     
 POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
-   
+    
 cd "$HOME"
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
 POL_Wine start /unix "$SETUP_EXE"
 POL_Wine_WaitExit "$TITLE"
 cd "$POL_System_TmpDir"
-    
-POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
+     
+# POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
 POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
-   
+    
 # This .EXE "should be not launched manually."
 # POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
-  
+   
 Set_WineWindowTitle "$TITLE"
-     
+      
 POL_System_TmpDelete
 POL_SetupWindow_Close
-exit 0
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.6 .
#
# This game is based on: DirectX 9, DotNet 4.6, MS Visual C++ 2015 (all provided on the .ISO), Mono 4.8.
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
# [Dadu042] (2020-06-22)
#   Fix Set_OS (it was at a wrong place)
# [Dadu042] (2020-07-26)
#   Tried to run it again (and also from pure wine sessions) with Wine 5.13 and game v1.6.0.0. Tried: dotnet452, 461, 462, vcrun2008, vcrun2010
# [Dadu042] (2020-08-20)
#   Wine 5.0.1 -> 5.0.2 The game does now succeed to auto upgrade it self, but it crash when trying to play (after clicking Play). Tried: disable intro video.
#
#
#
# KNOWN ISSUES (game v1.6.0.0):
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.11, proton 4.2 (without dotnet), 5.12: game launch up to the login window, but the windows are black. Tried: mono 5.2, mono 4.8.1
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0.1, 5.11 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Related to Dotnet40.
#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0.2"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
 
     
POL_SetupWindow_Init
POL_Debug_Init
        
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
   
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_System_TmpCreate "$TITLE"
 
Set_OS "win7"
 
   
################
#      GPU     #
################
             
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
              
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
               
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
   
################
# To improve ? #
################
  
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
   
# Really necessary ?
# POL_Call POL_Install_corefonts
    
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
    
# A 2015 would be better... Not yet available in POL (april 2019)
# POL_Call POL_Install_vcrun2013
    
    
     
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to the game to run, but perhaps dotnet45 could be enough.
# POL_Call POL_Install_dotnet40
 
# POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
# POL_Call POL_Install_dotnet461
  
# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
    
###############
# Go          #
###############
     
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
    
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
     
# POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
    
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
   
Set_WineWindowTitle "$TITLE"
      
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Tuesday 23 June 2020 at 13:01
Dadu042

Warning

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

Message

The game v1.6 fail to run on my PCs.

Differences

@@ -40,7 +40,7 @@
    
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
-WORKING_WINE_VERSION="4.21"
+WORKING_WINE_VERSION="5.0.1"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"
@@ -60,7 +60,7 @@
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_System_TmpCreate "$TITLE"
 
-Set_OS "Win7"
+Set_OS "win7"
 
   
 ################
@@ -93,12 +93,13 @@
 # POL_Call POL_Install_vcrun2013
    
    
-POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
     
 # No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
 # dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
-  
-# POL_Call POL_Install_dotnet40
+
+POL_Call POL_Install_dotnet40
+
+# POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
 # POL_Call POL_Install_dotnet461
  
 # OpenAudioLayer
@@ -127,4 +128,4 @@
      
 POL_System_TmpDelete
 POL_SetupWindow_Close
-exit 0
\ No newline at end of file
+exit 0

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.5 .
#
# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
# [Dadu042] (2020-06-22)
#   Fix Set_OS (it was at a wrong place)
#
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.
#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0.1"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"

    
POL_SetupWindow_Init
POL_Debug_Init
       
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
  
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_System_TmpCreate "$TITLE"

Set_OS "win7"

  
################
#      GPU     #
################
            
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
             
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
              
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
  
################
# To improve ? #
################
 
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
  
# Really necessary ?
# POL_Call POL_Install_corefonts
   
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
   
# A 2015 would be better... Not yet available in POL (april 2019)
# POL_Call POL_Install_vcrun2013
   
   
    
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.

POL_Call POL_Install_dotnet40

# POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
# POL_Call POL_Install_dotnet461
 
# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
   
###############
# Go          #
###############
    
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
   
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
    
POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
   
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
  
Set_WineWindowTitle "$TITLE"
     
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Monday 13 July 2020 at 8:44
To read: https://www.reddit.com/r/ProjectReality/comments/eg3xfu/lets_try_to_get_pr_working_on_linux_with_wine/

Edited by Dadu042

Dadu042 Monday 22 June 2020 at 22:04
Dadu042

Warning

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

Differences

@@ -19,6 +19,8 @@
 #   Add POL_RequiredVersion "4.3.4"
 # [Dadu042] (2020-06-17)
 #   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
+# [Dadu042] (2020-06-22)
+#   Fix Set_OS (it was at a wrong place)
 #
 #
 # KNOWN ISSUES (game v1.5.0.0):
@@ -32,96 +34,97 @@
 #  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
 #  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.
 #  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
-
-[ -z "$PLAYONLINUX" ] && exit 0
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-  
+   
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
 WORKING_WINE_VERSION="4.21"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"
-   
-Set_OS "Win7"
-   
+
+    
 POL_SetupWindow_Init
 POL_Debug_Init
-      
+       
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-
-POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
  
+POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
+  
 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_System_TmpCreate "$TITLE"
- 
- 
+
+Set_OS "Win7"
+
+  
 ################
 #      GPU     #
 ################
-           
+            
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS "256"
-            
+             
 # Set Graphic Card information keys for wine
 POL_Wine_SetVideoDriver
-             
+              
 # Useful for Nvidia GPUs
 # POL_Call POL_Install_physx
- 
+  
 ################
 # To improve ? #
 ################
-
-# POL_Call POL_Install_d3dx9_43
-# POL_Call POL_Install_d3dcompiler_43
  
+# POL_Call POL_Install_d3dx9_43
+# POL_Call POL_Install_d3dcompiler_43
+  
 # Really necessary ?
 # POL_Call POL_Install_corefonts
-  
+   
 # Really necessary ?
 # POL_Call POL_Install_RegisterFonts
-  
+   
 # A 2015 would be better... Not yet available in POL (april 2019)
 # POL_Call POL_Install_vcrun2013
-  
-  
-POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
    
+   
+POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
+    
 # No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
 # dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
- 
+  
 # POL_Call POL_Install_dotnet40
-# POL_Call POL_Install_dotnet461
-
+# POL_Call POL_Install_dotnet461
+ 
 # OpenAudioLayer
 POL_Wine_OverrideDLL "native" "openal32"
-  
+   
 ###############
 # Go          #
 ###############
-   
+    
 POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
-  
+   
 cd "$HOME"
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
 POL_Wine start /unix "$SETUP_EXE"
 POL_Wine_WaitExit "$TITLE"
 cd "$POL_System_TmpDir"
-   
+    
 POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
 POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
-  
+   
 # This .EXE "should be not launched manually."
 # POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
- 
+  
 Set_WineWindowTitle "$TITLE"
-    
+     
 POL_System_TmpDelete
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.5 .
#
# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
# [Dadu042] (2020-06-22)
#   Fix Set_OS (it was at a wrong place)
#
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.
#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="4.21"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"

    
POL_SetupWindow_Init
POL_Debug_Init
       
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
  
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_System_TmpCreate "$TITLE"

Set_OS "Win7"

  
################
#      GPU     #
################
            
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
             
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
              
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
  
################
# To improve ? #
################
 
# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
  
# Really necessary ?
# POL_Call POL_Install_corefonts
   
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
   
# A 2015 would be better... Not yet available in POL (april 2019)
# POL_Call POL_Install_vcrun2013
   
   
POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
    
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
  
# POL_Call POL_Install_dotnet40
# POL_Call POL_Install_dotnet461
 
# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
   
###############
# Go          #
###############
    
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
   
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
    
POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
   
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
  
Set_WineWindowTitle "$TITLE"
     
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Monday 22 June 2020 at 18:28
Dadu042

Warning

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

Differences

@@ -31,96 +31,97 @@
 #
 #  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
 #  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.
+#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').
 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+  
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
-WORKING_WINE_VERSION="5.0.1"
+WORKING_WINE_VERSION="4.21"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"
-  
+   
 Set_OS "Win7"
-  
+   
 POL_SetupWindow_Init
 POL_Debug_Init
-     
+      
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
-POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"
-
+POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
+ 
 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_System_TmpCreate "$TITLE"
-
-
+ 
+ 
 ################
 #      GPU     #
 ################
-          
+           
 # Asking about memory size of graphic card
 POL_SetupWindow_VMS "256"
-           
+            
 # Set Graphic Card information keys for wine
 POL_Wine_SetVideoDriver
-            
+             
 # Useful for Nvidia GPUs
 # POL_Call POL_Install_physx
-
+ 
 ################
 # To improve ? #
 ################
 
-POL_Call POL_Install_d3dx9_43
-POL_Call POL_Install_d3dcompiler_43
-
+# POL_Call POL_Install_d3dx9_43
+# POL_Call POL_Install_d3dcompiler_43
+ 
 # Really necessary ?
 # POL_Call POL_Install_corefonts
- 
+  
 # Really necessary ?
 # POL_Call POL_Install_RegisterFonts
- 
+  
 # A 2015 would be better... Not yet available in POL (april 2019)
-POL_Call POL_Install_vcrun2013
- 
- 
-POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
+# POL_Call POL_Install_vcrun2013
+  
   
+POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
+   
 # No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
 # dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
-
-# POL_Call POL_Install_dotnet40
-POL_Call POL_Install_dotnet461
  
+# POL_Call POL_Install_dotnet40
+# POL_Call POL_Install_dotnet461
+
 # OpenAudioLayer
 POL_Wine_OverrideDLL "native" "openal32"
- 
+  
 ###############
 # Go          #
 ###############
-  
+   
 POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
- 
+  
 cd "$HOME"
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
 POL_Wine start /unix "$SETUP_EXE"
 POL_Wine_WaitExit "$TITLE"
 cd "$POL_System_TmpDir"
-  
+   
 POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
 POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
- 
+  
 # This .EXE "should be not launched manually."
 # POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
-
+ 
 Set_WineWindowTitle "$TITLE"
-   
+    
 POL_System_TmpDelete
 POL_SetupWindow_Close
 exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.5 .
#
# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
#
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.
#  - Wine x86 5.0.1: dotnet461 fail to install (loop on dotnet45: 'mscorlib recursive resource lookup bug').

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="4.21"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
   
Set_OS "Win7"
   
POL_SetupWindow_Init
POL_Debug_Init
      
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_SetupWindow_message  "Warning: this script does not allow the game to work (play) online.\n" "$TITLE"
 
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_System_TmpCreate "$TITLE"
 
 
################
#      GPU     #
################
           
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
            
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
             
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx
 
################
# To improve ? #
################

# POL_Call POL_Install_d3dx9_43
# POL_Call POL_Install_d3dcompiler_43
 
# Really necessary ?
# POL_Call POL_Install_corefonts
  
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
  
# A 2015 would be better... Not yet available in POL (april 2019)
# POL_Call POL_Install_vcrun2013
  
  
POL_SetupWindow_message  "Warning: If the installation of DotNet never end ( > 30 minutes), click Cancel." "$TITLE"
   
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
 
# POL_Call POL_Install_dotnet40
# POL_Call POL_Install_dotnet461

# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
  
###############
# Go          #
###############
   
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
  
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
   
POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
  
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
 
Set_WineWindowTitle "$TITLE"
    
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Thursday 18 June 2020 at 13:03
Dadu042

Warning

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

Differences

@@ -1,13 +1,14 @@
 #!/usr/bin/env playonlinux-bash
 # Date : (2019-04-28 18-11)
-# Last revision : (2019-04-28 18-11)
+# Last revision : see changelog
 # Wine version used : see below
 # Distribution used to test : Ubuntu 18.04 x64
 # Script licence : GPL3
 # Program licence : ?
-#
 # Playonlinux version used : 4.3.4
 #
+# TESTED Editions: v1.5 .
+#
 # This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
 #
 # CHANGELOG
@@ -16,6 +17,8 @@
 # [Dadu042] (2019-12-24)
 #   Wine 4.7 -> 4.21
 #   Add POL_RequiredVersion "4.3.4"
+# [Dadu042] (2020-06-17)
+#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
 #
 #
 # KNOWN ISSUES (game v1.5.0.0):
@@ -34,7 +37,7 @@
  
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
-WORKING_WINE_VERSION="5.0"
+WORKING_WINE_VERSION="5.0.1"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"
@@ -54,21 +57,34 @@
 POL_System_SetArch "x86"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_System_TmpCreate "$TITLE"
- 
+
+
+################
+#      GPU     #
+################
+          
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "256"
+           
+# Set Graphic Card information keys for wine
+POL_Wine_SetVideoDriver
+            
+# Useful for Nvidia GPUs
+# POL_Call POL_Install_physx
+
 ################
 # To improve ? #
 ################
 
- 
+POL_Call POL_Install_d3dx9_43
+POL_Call POL_Install_d3dcompiler_43
+
 # Really necessary ?
 # POL_Call POL_Install_corefonts
  
 # Really necessary ?
 # POL_Call POL_Install_RegisterFonts
  
-POL_Call POL_Install_d3dx9_43
-POL_Call POL_Install_d3dcompiler_43
- 
 # A 2015 would be better... Not yet available in POL (april 2019)
 POL_Call POL_Install_vcrun2013
  
@@ -81,7 +97,7 @@
 # POL_Call POL_Install_dotnet40
 POL_Call POL_Install_dotnet461
  
- 
+# OpenAudioLayer
 POL_Wine_OverrideDLL "native" "openal32"
  
 ###############
@@ -94,7 +110,6 @@
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
 POL_Wine start /unix "$SETUP_EXE"
-# POL_Wine_WaitExit "$TITLE"
 POL_Wine_WaitExit "$TITLE"
 cd "$POL_System_TmpDir"
   
@@ -103,9 +118,7 @@
  
 # This .EXE "should be not launched manually."
 # POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
-  
-POL_Call POL_Install_VideoDriver
-  
+
 Set_WineWindowTitle "$TITLE"
    
 POL_System_TmpDelete

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : see changelog
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
# Playonlinux version used : 4.3.4
#
# TESTED Editions: v1.5 .
#
# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
# [Dadu042] (2020-06-17)
#   Wine 5.0 -> 5.0.1 (this should not hurt. Game v1.6 is out but I have not tested it yet)
#
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0.1"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
  
Set_OS "Win7"
  
POL_SetupWindow_Init
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"

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_System_TmpCreate "$TITLE"


################
#      GPU     #
################
          
# Asking about memory size of graphic card
POL_SetupWindow_VMS "256"
           
# Set Graphic Card information keys for wine
POL_Wine_SetVideoDriver
            
# Useful for Nvidia GPUs
# POL_Call POL_Install_physx

################
# To improve ? #
################

POL_Call POL_Install_d3dx9_43
POL_Call POL_Install_d3dcompiler_43

# Really necessary ?
# POL_Call POL_Install_corefonts
 
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
 
# A 2015 would be better... Not yet available in POL (april 2019)
POL_Call POL_Install_vcrun2013
 
 
POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
  
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.

# POL_Call POL_Install_dotnet40
POL_Call POL_Install_dotnet461
 
# OpenAudioLayer
POL_Wine_OverrideDLL "native" "openal32"
 
###############
# Go          #
###############
  
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
 
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
  
POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
 
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""

Set_WineWindowTitle "$TITLE"
   
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Monday 3 February 2020 at 22:02
Dadu042

Warning

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

Differences

@@ -34,7 +34,7 @@
  
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
-WORKING_WINE_VERSION="5.0-rc1"
+WORKING_WINE_VERSION="5.0"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : (2019-04-28 18-11)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
#
# Playonlinux version used : 4.3.4
#
# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
#
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
  
Set_OS "Win7"
  
POL_SetupWindow_Init
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"

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_System_TmpCreate "$TITLE"
 
################
# To improve ? #
################

 
# Really necessary ?
# POL_Call POL_Install_corefonts
 
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
 
POL_Call POL_Install_d3dx9_43
POL_Call POL_Install_d3dcompiler_43
 
# A 2015 would be better... Not yet available in POL (april 2019)
POL_Call POL_Install_vcrun2013
 
 
POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
  
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.

# POL_Call POL_Install_dotnet40
POL_Call POL_Install_dotnet461
 
 
POL_Wine_OverrideDLL "native" "openal32"
 
###############
# Go          #
###############
  
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
 
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
# POL_Wine_WaitExit "$TITLE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
  
POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
 
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
  
POL_Call POL_Install_VideoDriver
  
Set_WineWindowTitle "$TITLE"
   
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Tuesday 24 December 2019 at 19:01
Dadu042

Warning

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

Message

Still fail to run because of Dotnet.

Differences

@@ -10,71 +10,86 @@
 #
 # This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
 #
-# -----------------------
+# CHANGELOG
+# [Dadu042] (2019-04-28 18:11)
+#   First script.
+# [Dadu042] (2019-12-24)
+#   Wine 4.7 -> 4.21
+#   Add POL_RequiredVersion "4.3.4"
 #
-# Issues known (with game v1.5.0.0) :
-# - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
-# - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
-# - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
-# - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
-# - Online: game does not see online servers.
+#
+# KNOWN ISSUES (game v1.5.0.0):
+#  - Wine x86 4.7 :
+#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
+#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
+#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
+#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
+#    - Online: game does not see online servers.
+#
+#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
+#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.
 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 TITLE="Project Reality: BF2"
 PREFIX="project_reality"
-WORKING_WINE_VERSION="4.7"
+WORKING_WINE_VERSION="5.0-rc1"
 AUTHOR="Dadu042"
 EDITOR="?"
 GAME_URL="https://www.realitymod.com/"
- 
+  
 Set_OS "Win7"
- 
+  
 POL_SetupWindow_Init
 POL_Debug_Init
-    
+     
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-    
+
+POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"
+
+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_System_TmpCreate "$TITLE"
-
+ 
 ################
 # To improve ? #
 ################
-POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"
-
 
+ 
 # Really necessary ?
-# POL_Call POL_Install_corefonts
-
-# Really necessary ?
-# POL_Call POL_Install_RegisterFonts
-
+# POL_Call POL_Install_corefonts
+ 
+# Really necessary ?
+# POL_Call POL_Install_RegisterFonts
+ 
 POL_Call POL_Install_d3dx9_43
 POL_Call POL_Install_d3dcompiler_43
-
+ 
 # A 2015 would be better... Not yet available in POL (april 2019)
 POL_Call POL_Install_vcrun2013
-
-
-POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
  
+ 
+POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
+  
 # No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
 # dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
-POL_Call POL_Install_dotnet461
-
 
+# POL_Call POL_Install_dotnet40
+POL_Call POL_Install_dotnet461
+ 
+ 
 POL_Wine_OverrideDLL "native" "openal32"
-
+ 
 ###############
 # Go          #
 ###############
- 
+  
 POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
-
+ 
 cd "$HOME"
 POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
 SETUP_EXE="$APP_ANSWER"
@@ -82,17 +97,17 @@
 # POL_Wine_WaitExit "$TITLE"
 POL_Wine_WaitExit "$TITLE"
 cd "$POL_System_TmpDir"
+  
+POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
+POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
  
-POL_Shortcut "PRBF2.exe" "$TITLE" ""
-POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" ""
-
 # This .EXE "should be not launched manually."
 # POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
- 
+  
 POL_Call POL_Install_VideoDriver
- 
-Set_WineWindowTitle "$TITLE"
   
+Set_WineWindowTitle "$TITLE"
+   
 POL_System_TmpDelete
 POL_SetupWindow_Close
-exit 0
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : (2019-04-28 18-11)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
#
# Playonlinux version used : 4.3.4
#
# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
#
# CHANGELOG
# [Dadu042] (2019-04-28 18:11)
#   First script.
# [Dadu042] (2019-12-24)
#   Wine 4.7 -> 4.21
#   Add POL_RequiredVersion "4.3.4"
#
#
# KNOWN ISSUES (game v1.5.0.0):
#  - Wine x86 4.7 :
#    - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
#    - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
#    - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
#    - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
#    - Online: game does not see online servers.
#
#  - Wine x86 4.21, 5.0-rc1: when installing dotnet461 a window titled 'mscorsvw.exe - Assert Failure' with message 'mscorlib recursive resource lookup bug'.
#  - Wine x86 5.0-rc1 (+ dotnet40): once installed I get as soon as launched a window 'CLR error: 80004005. <OK>'. Seem related to Dotnet.

[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="5.0-rc1"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
  
Set_OS "Win7"
  
POL_SetupWindow_Init
POL_Debug_Init
     
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"

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_System_TmpCreate "$TITLE"
 
################
# To improve ? #
################

 
# Really necessary ?
# POL_Call POL_Install_corefonts
 
# Really necessary ?
# POL_Call POL_Install_RegisterFonts
 
POL_Call POL_Install_d3dx9_43
POL_Call POL_Install_d3dcompiler_43
 
# A 2015 would be better... Not yet available in POL (april 2019)
POL_Call POL_Install_vcrun2013
 
 
POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
  
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.

# POL_Call POL_Install_dotnet40
POL_Call POL_Install_dotnet461
 
 
POL_Wine_OverrideDLL "native" "openal32"
 
###############
# Go          #
###############
  
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
 
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
# POL_Wine_WaitExit "$TITLE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
  
POL_Shortcut "PRBF2.exe" "$TITLE (to not use)" "" "" "Game;Shooter;"
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" "" "" "Game;Shooter;"
 
# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
  
POL_Call POL_Install_VideoDriver
  
Set_WineWindowTitle "$TITLE"
   
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Sunday 28 April 2019 at 18:15
Dadu042

Warning

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

Message

3D GPU required, however a very fast one, because the game 3D engine software is since 2007.

With this script it is impossible to play Online (internet). Playing Local (LAN) has not been tested.

Differences

@@ -0,0 +1,98 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2019-04-28 18-11)
+# Last revision : (2019-04-28 18-11)
+# Wine version used : see below
+# Distribution used to test : Ubuntu 18.04 x64
+# Script licence : GPL3
+# Program licence : ?
+#
+# Playonlinux version used : 4.3.4
+#
+# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
+#
+# -----------------------
+#
+# Issues known (with game v1.5.0.0) :
+# - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
+# - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
+# - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
+# - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
+# - Online: game does not see online servers.
+
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+TITLE="Project Reality: BF2"
+PREFIX="project_reality"
+WORKING_WINE_VERSION="4.7"
+AUTHOR="Dadu042"
+EDITOR="?"
+GAME_URL="https://www.realitymod.com/"
+ 
+Set_OS "Win7"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+    
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+    
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+POL_System_TmpCreate "$TITLE"
+
+################
+# To improve ? #
+################
+POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"
+
+
+# Really necessary ?
+# POL_Call POL_Install_corefonts
+
+# Really necessary ?
+# POL_Call POL_Install_RegisterFonts
+
+POL_Call POL_Install_d3dx9_43
+POL_Call POL_Install_d3dcompiler_43
+
+# A 2015 would be better... Not yet available in POL (april 2019)
+POL_Call POL_Install_vcrun2013
+
+
+POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
+ 
+# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
+# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
+POL_Call POL_Install_dotnet461
+
+
+POL_Wine_OverrideDLL "native" "openal32"
+
+###############
+# Go          #
+###############
+ 
+POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"
+
+cd "$HOME"
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
+SETUP_EXE="$APP_ANSWER"
+POL_Wine start /unix "$SETUP_EXE"
+# POL_Wine_WaitExit "$TITLE"
+POL_Wine_WaitExit "$TITLE"
+cd "$POL_System_TmpDir"
+ 
+POL_Shortcut "PRBF2.exe" "$TITLE" ""
+POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" ""
+
+# This .EXE "should be not launched manually."
+# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
+ 
+POL_Call POL_Install_VideoDriver
+ 
+Set_WineWindowTitle "$TITLE"
+  
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2019-04-28 18-11)
# Last revision : (2019-04-28 18-11)
# Wine version used : see below
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : ?
#
# Playonlinux version used : 4.3.4
#
# This game is based on: DirectX 9, DotNetFX 4.0, MS Visual C++ 2015 (all provided on the .ISO).
#
# -----------------------
#
# Issues known (with game v1.5.0.0) :
# - Error "HTTP Status: 500" when installing game v1.5.0 (when trying to know latest game version).
# - Fail to auto upgrade to v1.5.4.0 (screen freeze at 81% downloaded).
# - Black screen after clicking 'Deployment' or 'Create local' (unsure where) : press Esc.
# - Mouse slow and/or disapear on maps (where to select the deployment location). Related to Intel Graphics HD 4400 ?
# - Online: game does not see online servers.

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

TITLE="Project Reality: BF2"
PREFIX="project_reality"
WORKING_WINE_VERSION="4.7"
AUTHOR="Dadu042"
EDITOR="?"
GAME_URL="https://www.realitymod.com/"
 
Set_OS "Win7"
 
POL_SetupWindow_Init
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
    
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

################
# To improve ? #
################
POL_SetupWindow_message  "Warning: Currently this script does not allow the game to work (play) online.\n" "$TITLE"


# Really necessary ?
# POL_Call POL_Install_corefonts

# Really necessary ?
# POL_Call POL_Install_RegisterFonts

POL_Call POL_Install_d3dx9_43
POL_Call POL_Install_d3dcompiler_43

# A 2015 would be better... Not yet available in POL (april 2019)
POL_Call POL_Install_vcrun2013


POL_SetupWindow_message  "Warning: If the installation of DotNet never end, click Cancel." "$TITLE"
 
# No DotNet40fx available on Wine :(. Dotnet40 fail to let the game start.
# dotnet461 allow to game to run, but perhaps dotnet45 could be enough.
POL_Call POL_Install_dotnet461


POL_Wine_OverrideDLL "native" "openal32"

###############
# Go          #
###############
 
POL_SetupWindow_message  "Please note: Do not run the game at the end of the installation, first finish it.\n" "$TITLE"

cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_Wine start /unix "$SETUP_EXE"
# POL_Wine_WaitExit "$TITLE"
POL_Wine_WaitExit "$TITLE"
cd "$POL_System_TmpDir"
 
POL_Shortcut "PRBF2.exe" "$TITLE" ""
POL_Shortcut "PRLauncher.exe" "$TITLE - Launcher" ""

# This .EXE "should be not launched manually."
# POL_Shortcut "PRUpdater.exe" "$TITLE - Updater" ""
 
POL_Call POL_Install_VideoDriver
 
Set_WineWindowTitle "$TITLE"
  
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Monday 6 May 2019 at 16:14
Note: patches downloaded automatically goes into :
~/PlayOnLinux's virtual drives/project_reality/drive_c/users/yourusername/Local Settings/Application Data/Project Reality/Project Reality BF2/Downloads/

Edited by Dadu042