GOG.com - Far Cry 2

Informations

Creator Message
petch

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 19348
Wine: 3.0.3

Feedbacks

Description

Screenshots

MiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2012-08-29 21-13)
# Last revision : see changelog
# Wine version used : 
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [Pierre Etchemaite] (2012-08-29 21-13)
#   Initial script
# [Pierre Etchemaite] (2014-11-02 20-41)
#   Wine 1.6.2
# [Dadu042] (2020-04-08 13:30).
#   Wine 1.6.2 (outdated) -> 3.0.3


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

GOGID="far_cry_2_fortunes_edition"
PREFIX="FarCry2_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - Far Cry 2"
SHORTCUT_NAME="Far Cry 2: Fortune's Edition"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1382
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Ubisoft Montréal / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "77874c0184213f9c9a64c94c36d6632e" "c4d6b6a19c563cbc309ec35041659078" "8eb725b44a5a87e9ced068f913cbe3a3"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_d3dx9_36

POL_Call POL_GoG_install /nogui


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "256"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "farcry2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/Far Cry 2 Fortune's Edition/manual.pdf"
# C:\GOG Games\Far Cry 2 Fortune's Edition\ReadMe.txt
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2Editor.exe
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2BenchmarkTool.exe
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2ServerLauncher.exe

POL_SetupWindow_Close

# Run Failsafe as configurator
cat <<_EOF_ > "$POL_USER_ROOT/configurations/configurators/$SHORTCUT_NAME"
#!/bin/bash
[ -z "\$PLAYONLINUX" ] && exit 0
source "\$PLAYONLINUX/lib/sources"
export WINEPREFIX="\$POL_USER_ROOT/wineprefix/$PREFIX"
export WINEDEBUG="-all"

POL_LoadVar_PROGRAMFILES

cd "\$WINEPREFIX/drive_c/GOG Games/Far Cry 2 Fortune's Edition/bin" || exit 1
TITLE="$TITLE"
POL_Wine farcry2.exe -RenderProfile_ResolutionX 640 -RenderProfile_ResolutionY 480 -RenderProfile_RefreshRate 0
exit 0
_EOF_

exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Thursday 9 April 2020 at 13:59
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,19 +1,28 @@
 #!/bin/bash
 # Date : (2012-08-29 21-13)
-# Last revision : (2014-11-02 20-41)
-# Wine version used : 1.6.2
+# Last revision : see changelog
+# Wine version used : 
 # Distribution used to test : Debian Sid (Unstable)
 # Author : Pierre Etchemaite pe-pol@concept-micro.com
 # Script licence : GPL v.2
 # Program licence : Retail
 # Depend :
+#
+# CHANGELOG
+# [Pierre Etchemaite] (2012-08-29 21-13)
+#   Initial script
+# [Pierre Etchemaite] (2014-11-02 20-41)
+#   Wine 1.6.2
+# [Dadu042] (2020-04-08 13:30).
+#   Wine 1.6.2 (outdated) -> 3.0.3
+
 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 GOGID="far_cry_2_fortunes_edition"
 PREFIX="FarCry2_gog"
-WORKING_WINE_VERSION="1.6.2"
+WORKING_WINE_VERSION="3.0.3"
 
 TITLE="GOG.com - Far Cry 2"
 SHORTCUT_NAME="Far Cry 2: Fortune's Edition"
@@ -69,4 +78,4 @@
 exit 0
 _EOF_
 
-exit 0
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2012-08-29 21-13)
# Last revision : see changelog
# Wine version used : 
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [Pierre Etchemaite] (2012-08-29 21-13)
#   Initial script
# [Pierre Etchemaite] (2014-11-02 20-41)
#   Wine 1.6.2
# [Dadu042] (2020-04-08 13:30).
#   Wine 1.6.2 (outdated) -> 3.0.3


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

GOGID="far_cry_2_fortunes_edition"
PREFIX="FarCry2_gog"
WORKING_WINE_VERSION="3.0.3"

TITLE="GOG.com - Far Cry 2"
SHORTCUT_NAME="Far Cry 2: Fortune's Edition"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1382
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Ubisoft Montréal / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "77874c0184213f9c9a64c94c36d6632e" "c4d6b6a19c563cbc309ec35041659078" "8eb725b44a5a87e9ced068f913cbe3a3"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_d3dx9_36

POL_Call POL_GoG_install /nogui


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "256"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "farcry2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/Far Cry 2 Fortune's Edition/manual.pdf"
# C:\GOG Games\Far Cry 2 Fortune's Edition\ReadMe.txt
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2Editor.exe
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2BenchmarkTool.exe
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2ServerLauncher.exe

POL_SetupWindow_Close

# Run Failsafe as configurator
cat <<_EOF_ > "$POL_USER_ROOT/configurations/configurators/$SHORTCUT_NAME"
#!/bin/bash
[ -z "\$PLAYONLINUX" ] && exit 0
source "\$PLAYONLINUX/lib/sources"
export WINEPREFIX="\$POL_USER_ROOT/wineprefix/$PREFIX"
export WINEDEBUG="-all"

POL_LoadVar_PROGRAMFILES

cd "\$WINEPREFIX/drive_c/GOG Games/Far Cry 2 Fortune's Edition/bin" || exit 1
TITLE="$TITLE"
POL_Wine farcry2.exe -RenderProfile_ResolutionX 640 -RenderProfile_ResolutionY 480 -RenderProfile_RefreshRate 0
exit 0
_EOF_

exit 0

Replies

petch Sunday 2 November 2014 at 22:37
petch

Warning

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

Message

Upgrade Wine to 1.6.2

 

Differences

@@ -1,7 +1,7 @@
 #!/bin/bash
 # Date : (2012-08-29 21-13)
-# Last revision : (2013-07-10 13-33)
-# Wine version used : 1.5.23
+# Last revision : (2014-11-02 20-41)
+# Wine version used : 1.6.2
 # Distribution used to test : Debian Sid (Unstable)
 # Author : Pierre Etchemaite pe-pol@concept-micro.com
 # Script licence : GPL v.2
@@ -13,7 +13,7 @@
 
 GOGID="far_cry_2_fortunes_edition"
 PREFIX="FarCry2_gog"
-WORKING_WINE_VERSION="1.5.23"
+WORKING_WINE_VERSION="1.6.2"
 
 TITLE="GOG.com - Far Cry 2"
 SHORTCUT_NAME="Far Cry 2: Fortune's Edition"
@@ -33,7 +33,7 @@
 
 POL_Call POL_Install_d3dx9_36
 
-POL_Call POL_GoG_install
+POL_Call POL_GoG_install /nogui
 
 
 # GoG work!

New source code

#!/bin/bash
# Date : (2012-08-29 21-13)
# Last revision : (2014-11-02 20-41)
# Wine version used : 1.6.2
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="far_cry_2_fortunes_edition"
PREFIX="FarCry2_gog"
WORKING_WINE_VERSION="1.6.2"

TITLE="GOG.com - Far Cry 2"
SHORTCUT_NAME="Far Cry 2: Fortune's Edition"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1382
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Ubisoft Montréal / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "77874c0184213f9c9a64c94c36d6632e" "c4d6b6a19c563cbc309ec35041659078" "8eb725b44a5a87e9ced068f913cbe3a3"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_d3dx9_36

POL_Call POL_GoG_install /nogui


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "256"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "farcry2.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/Far Cry 2 Fortune's Edition/manual.pdf"
# C:\GOG Games\Far Cry 2 Fortune's Edition\ReadMe.txt
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2Editor.exe
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2BenchmarkTool.exe
# C:\GOG Games\Far Cry 2 Fortune's Edition\bin\FC2ServerLauncher.exe

POL_SetupWindow_Close

# Run Failsafe as configurator
cat <<_EOF_ > "$POL_USER_ROOT/configurations/configurators/$SHORTCUT_NAME"
#!/bin/bash
[ -z "\$PLAYONLINUX" ] && exit 0
source "\$PLAYONLINUX/lib/sources"
export WINEPREFIX="\$POL_USER_ROOT/wineprefix/$PREFIX"
export WINEDEBUG="-all"

POL_LoadVar_PROGRAMFILES

cd "\$WINEPREFIX/drive_c/GOG Games/Far Cry 2 Fortune's Edition/bin" || exit 1
TITLE="$TITLE"
POL_Wine farcry2.exe -RenderProfile_ResolutionX 640 -RenderProfile_ResolutionY 480 -RenderProfile_RefreshRate 0
exit 0
_EOF_

exit 0

Replies

Anonymous
Friday 29 January 2016 at 23:22
if you click on the "try this update, the web browser thinks it's a broken link. So I changed the beginning web address to "http://www.playonlinux.com/repository/download_update.php?id=1430", but now the web browser says "Please open this file with PlayOnLinux or PlayOnMac". What's up with this thing?
Saturday 30 January 2016 at 10:31
That update has been validated, that's the current version already. But if you want to try non (yet) validated script versions you have to register playonlinux:// URL scheme in your browser with playonlinux-url_handler script
rawmilk905 Thursday 23 October 2014 at 22:50
rawmilk905

Message

This appears to no longer work using the current GOG installer. After installation, the executable runs and the resolution is changed but after the intro the screen goes black. I am running Mint 17 with the built-in drivers on an AMD graphics card (Radeon HD 6800.) Do I need to install proprietary drivers or take additional setup steps?

Replies

Saturday 25 October 2014 at 7:34
The script is up-to-date vs current installer version (2.0.0.8)
Tuesday 4 November 2014 at 2:36
Thank you.

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