Project Reality: BF2

Informations

Creator Message
Dadu042
Moderator

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 41
Wine: 4.7

Feedbacks

Description

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

Wikipedia page.

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

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 28 April 2019 at 18:15
Dadu042
Moderator

Information

This update has been approved by the team.

Message

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

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

Differences

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

New source code

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

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

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

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


# Really necessary ?
# POL_Call POL_Install_corefonts

# Really necessary ?
# POL_Call POL_Install_RegisterFonts

POL_Call POL_Install_d3dx9_43
POL_Call POL_Install_d3dcompiler_43

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


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


POL_Wine_OverrideDLL "native" "openal32"

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

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

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

Replies

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

Edited by Dadu042