Project Reality: BF2

Informations

Creator Wiadmości
Dadu042
Moderator

Warning

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

Informations

Platforms:
Downloads: 607
Wine: 5.0-rc1

Feedbacks

Description

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

Appdb.winehq.org 

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

Contributions

Filters:

Contribute
Member Wiadmości
Dadu042 Tuesday 24 December 2019 at 19:01
Dadu042
Moderator

Information

This update has been approved by the team.

Wiadmości

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

Odpowiedzi

Dadu042 Sunday 28 April 2019 at 18:15
Dadu042
Moderator

Warning

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

Wiadmości

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

Odpowiedzi

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

Edytowane przez Dadu042