Project Reality: BF2

Informations

Créateur Messages
Dadu042
Modérateur

Attention

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

Informations

Plate-formes :
Téléchargements : 1424
Wine: 5.0.3

Retours d'expérience

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

 

Captures d'écran

Miniature

Code source

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

Contribuer
Membre Messages
Dadu042 Vendredi 18 Décembre 2020 à 13:57
Dadu042
Modérateur

Information

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

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/"

Nouveau code source

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

Réponses

Dadu042 Jeudi 20 Aoüt 2020 à 8:37
Dadu042
Modérateur

Warning

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

Messages

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 :

Nouveau code source

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

Réponses

Dadu042 Jeudi 20 Aoüt 2020 à 8:32
Dadu042
Modérateur

Warning

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

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

Nouveau code source

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

Réponses

Dadu042 Mardi 23 Juin 2020 à 13:01
Dadu042
Modérateur

Warning

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

Messages

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

Nouveau code source

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

Réponses

Lundi 13 Juillet 2020 à 8:44
To read: https://www.reddit.com/r/ProjectReality/comments/eg3xfu/lets_try_to_get_pr_working_on_linux_with_wine/

Edité par Dadu042

Dadu042 Lundi 22 Juin 2020 à 22:04
Dadu042
Modérateur

Warning

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

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

Nouveau code source

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

Réponses

Dadu042 Lundi 22 Juin 2020 à 18:28
Dadu042
Modérateur

Warning

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

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

Nouveau code source

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

Réponses

Dadu042 Jeudi 18 Juin 2020 à 13:03
Dadu042
Modérateur

Warning

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

Differences

@@ -1,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

Nouveau code source

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

Réponses

Dadu042 Lundi 3 Février 2020 à 22:02
Dadu042
Modérateur

Warning

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

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/"

Nouveau code source

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

Réponses

Dadu042 Mardi 24 Décembre 2019 à 19:01
Dadu042
Modérateur

Warning

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

Messages

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

Nouveau code source

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

Réponses

Dadu042 Dimanche 28 Avril 2019 à 18:15
Dadu042
Modérateur

Warning

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

Messages

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

Nouveau code source

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

Réponses

Lundi 6 Mai 2019 à 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/

Edité par Dadu042