GOG.com - Far Cry
Informations
| Creator | Message |
|---|---|
petch
|
InformationThis installer has been approved by the team. InformationsPlatforms: Feedbacks1 2 DescriptionEnglish: FPS, 2004, Wikipedia. Top soldier in charge of protecting a journalist, you find yourself on an island paradise, watching suspicious mercenaries...(updated for GOG installer v2) ScreenshotsSource code#!/bin/bash
# Date : (2011-12-18 11-39)
# Last revision : see changelog
# Wine version used : 1.3.36, 1.4.1, 1.6.2
# Distribution used to test : Kubuntu 18.04 amd64
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [Pierre Etchemaite] (2011-12-18 11-39)
# Initial script (Wine 1.3.36).
# 1.3.35 has a problem with Direct3D9 renderer water effects. Seems to be fixed in 1.3.36 :)
# [Pierre Etchemaite] (2014-04-01 19-02)
# Wine 1.4.1 -> 1.6.2 ?
# [Dadu042] (2020-03-20 19:30). Script tested with GOG v2.0.0.9.
# Wine 1.6.2 -> 3.0.3
# [Dadu042] (2020-04-09 18:30). Script tested with GOG v2.1.0.12.
# Remove '/nogui' at 'POL_Call POL_GoG_install' because this crash the GOG installer v2.x
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="far_cry"
PREFIX="FarCry_gog"
WORKING_WINE_VERSION="3.0.3"
TITLE="GOG.com - Far Cry"
SHORTCUT_NAME="Far Cry"
SHORTCUT_EDITOR="$SHORTCUT_NAME - CryEngine Sandbox"
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 1024
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Crytek Studios / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "e26869ba3755084f7b51be5174479d01" "980dbc3d41af088b46d6b3dfa1c1dc3d" "d7cbea9fa8afb4de00f30beeca9d11fa"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Call POL_GoG_install
cd "$GOGROOT/Far Cry/"
if [ $? -eq 0 ]; then
# Disable new external configurator, as it generates setups that are
# not compatible with Wine...
mv "Bin32/FarCryConfigurator.exe" "Bin32/FarCryConfigurator.exe.disabled"
else
POL_Debug_Error "$(eval_gettext 'Could not find program directory')"
fi
# GoG work!
Set_OS winxp
POL_SetupWindow_VMS "64"
# Doesn't hurt ;)
POL_Wine_reboot
LNG_EDITOR="$(eval_gettext 'The level editor')"
POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_EDITOR}" "~"
SHORTCUTS="$APP_ANSWER"
POL_Shortcut "FarCry.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Far Cry/Manual.pdf"
# C:/GOG Games/Far Cry/Readme.txt
# C:/GOG Games/Far Cry/Manual_1_4.pdf
if echo "$SHORTCUTS" | grep -q "$LNG_EDITOR"; then
POL_Shortcut "Editor.exe" "$SHORTCUT_EDITOR" "$SHORTCUT_EDITOR.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_EDITOR" "$GOGROOT/Far Cry/Editor Manual.pdf"
fi
# C:/GOG Games/Far Cry/Dedicated server guide.rtf
# C:/GOG Games/Far Cry/Using the FarCry dedicated server.rtf
# C:/GOG Games/Far Cry/Server_Command_Table.pdf
POL_SetupWindow_message "$(eval_gettext 'Default video settings are a bit low for modern computers,\nremember to click on "Auto-detect" in advanced video settings.')" "$TITLE"
POL_SetupWindow_Close
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=""
POL_LoadVar_PROGRAMFILES
cd "$GOGROOT/Far Cry/" || exit 1
TITLE="$TITLE"
POL_SetupWindow_Init
[ -f system.cfg ] || POL_Debug_Fatal "\$(eval_gettext 'Run the game once to create the configuration file!')"
DRIVER="\$(sed -e 's/^r_Driver = \"\(.*\)\".*/\1/p; d' system.cfg)"
VERBOSITY="\$(sed -e 's/^log_Verbosity = \"\(.*\)\".*/\1/p; d' system.cfg)"
POL_SetupWindow_menu_list "\$(eval_gettext 'Pick video driver to use [experimental]:')" "\$TITLE" "Direct3D9~OpenGL" "~" "\$DRIVER"
NEW_DRIVER="\$APP_ANSWER"
POL_SetupWindow_menu_list "\$(eval_gettext 'Verbosity while loading maps:')" "\$TITLE" "0~1~2~3~4~5~6~7~8" "~" "\$VERBOSITY"
NEW_VERBOSITY="\$APP_ANSWER"
if [ "\$NEW_DRIVER" != "\$DRIVER" -o "\$NEW_VERBOSITY" != "\$VERBOSITY" ]; then
sed -i.bak -e 's/^r_Driver = ".*"/r_Driver = "'"\$NEW_DRIVER"'"/' \
-e 's/^log_Verbosity = ".*"/log_Verbosity = "'"\$NEW_VERBOSITY"'"/' \
system.cfg
fi
POL_SetupWindow_Close
exit 0
_EOF_
exit 0 |
Contributions
Filters:
Contribute| Member | Message |
| Dadu042 | Thursday 9 April 2020 at 18:42 |
|
Dadu042
|
InformationThis update has been approved by the team. Differences@@ -2,7 +2,7 @@
# Date : (2011-12-18 11-39)
# Last revision : see changelog
# Wine version used : 1.3.36, 1.4.1, 1.6.2
-# Distribution used to test : Debian Sid (Unstable)
+# Distribution used to test : Kubuntu 18.04 amd64
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
@@ -16,36 +16,36 @@
# Wine 1.4.1 -> 1.6.2 ?
# [Dadu042] (2020-03-20 19:30). Script tested with GOG v2.0.0.9.
# Wine 1.6.2 -> 3.0.3
-#
-
-
+# [Dadu042] (2020-04-09 18:30). Script tested with GOG v2.1.0.12.
+# Remove '/nogui' at 'POL_Call POL_GoG_install' because this crash the GOG installer v2.x
+
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-
+
GOGID="far_cry"
PREFIX="FarCry_gog"
WORKING_WINE_VERSION="3.0.3"
-
+
TITLE="GOG.com - Far Cry"
SHORTCUT_NAME="Far Cry"
SHORTCUT_EDITOR="$SHORTCUT_NAME - CryEngine Sandbox"
-
+
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 1024
POL_Debug_Init
-
+
POL_SetupWindow_presentation "$TITLE" "Crytek Studios / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
-
+
POL_Call POL_GoG_setup "$GOGID" "e26869ba3755084f7b51be5174479d01" "980dbc3d41af088b46d6b3dfa1c1dc3d" "d7cbea9fa8afb4de00f30beeca9d11fa"
-
+
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
-POL_Call POL_GoG_install /nogui
-
-
+
+POL_Call POL_GoG_install
+
+
cd "$GOGROOT/Far Cry/"
if [ $? -eq 0 ]; then
# Disable new external configurator, as it generates setups that are
@@ -54,71 +54,71 @@
else
POL_Debug_Error "$(eval_gettext 'Could not find program directory')"
fi
-
+
# GoG work!
Set_OS winxp
-
+
POL_SetupWindow_VMS "64"
-
+
# Doesn't hurt ;)
POL_Wine_reboot
-
+
LNG_EDITOR="$(eval_gettext 'The level editor')"
POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_EDITOR}" "~"
SHORTCUTS="$APP_ANSWER"
-
+
POL_Shortcut "FarCry.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Far Cry/Manual.pdf"
# C:/GOG Games/Far Cry/Readme.txt
# C:/GOG Games/Far Cry/Manual_1_4.pdf
-
+
if echo "$SHORTCUTS" | grep -q "$LNG_EDITOR"; then
POL_Shortcut "Editor.exe" "$SHORTCUT_EDITOR" "$SHORTCUT_EDITOR.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_EDITOR" "$GOGROOT/Far Cry/Editor Manual.pdf"
fi
-
+
# C:/GOG Games/Far Cry/Dedicated server guide.rtf
# C:/GOG Games/Far Cry/Using the FarCry dedicated server.rtf
# C:/GOG Games/Far Cry/Server_Command_Table.pdf
-
+
POL_SetupWindow_message "$(eval_gettext 'Default video settings are a bit low for modern computers,\nremember to click on "Auto-detect" in advanced video settings.')" "$TITLE"
-
+
POL_SetupWindow_Close
-
+
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=""
-
+
POL_LoadVar_PROGRAMFILES
-
+
cd "$GOGROOT/Far Cry/" || exit 1
-
+
TITLE="$TITLE"
-
+
POL_SetupWindow_Init
-
+
[ -f system.cfg ] || POL_Debug_Fatal "\$(eval_gettext 'Run the game once to create the configuration file!')"
-
+
DRIVER="\$(sed -e 's/^r_Driver = \"\(.*\)\".*/\1/p; d' system.cfg)"
VERBOSITY="\$(sed -e 's/^log_Verbosity = \"\(.*\)\".*/\1/p; d' system.cfg)"
-
+
POL_SetupWindow_menu_list "\$(eval_gettext 'Pick video driver to use [experimental]:')" "\$TITLE" "Direct3D9~OpenGL" "~" "\$DRIVER"
NEW_DRIVER="\$APP_ANSWER"
-
+
POL_SetupWindow_menu_list "\$(eval_gettext 'Verbosity while loading maps:')" "\$TITLE" "0~1~2~3~4~5~6~7~8" "~" "\$VERBOSITY"
NEW_VERBOSITY="\$APP_ANSWER"
-
+
if [ "\$NEW_DRIVER" != "\$DRIVER" -o "\$NEW_VERBOSITY" != "\$VERBOSITY" ]; then
sed -i.bak -e 's/^r_Driver = ".*"/r_Driver = "'"\$NEW_DRIVER"'"/' \
-e 's/^log_Verbosity = ".*"/log_Verbosity = "'"\$NEW_VERBOSITY"'"/' \
system.cfg
fi
-
+
POL_SetupWindow_Close
exit 0
_EOF_
-
+
exit 0
\ No newline at end of file
New source code#!/bin/bash
# Date : (2011-12-18 11-39)
# Last revision : see changelog
# Wine version used : 1.3.36, 1.4.1, 1.6.2
# Distribution used to test : Kubuntu 18.04 amd64
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [Pierre Etchemaite] (2011-12-18 11-39)
# Initial script (Wine 1.3.36).
# 1.3.35 has a problem with Direct3D9 renderer water effects. Seems to be fixed in 1.3.36 :)
# [Pierre Etchemaite] (2014-04-01 19-02)
# Wine 1.4.1 -> 1.6.2 ?
# [Dadu042] (2020-03-20 19:30). Script tested with GOG v2.0.0.9.
# Wine 1.6.2 -> 3.0.3
# [Dadu042] (2020-04-09 18:30). Script tested with GOG v2.1.0.12.
# Remove '/nogui' at 'POL_Call POL_GoG_install' because this crash the GOG installer v2.x
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="far_cry"
PREFIX="FarCry_gog"
WORKING_WINE_VERSION="3.0.3"
TITLE="GOG.com - Far Cry"
SHORTCUT_NAME="Far Cry"
SHORTCUT_EDITOR="$SHORTCUT_NAME - CryEngine Sandbox"
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 1024
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Crytek Studios / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "e26869ba3755084f7b51be5174479d01" "980dbc3d41af088b46d6b3dfa1c1dc3d" "d7cbea9fa8afb4de00f30beeca9d11fa"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Call POL_GoG_install
cd "$GOGROOT/Far Cry/"
if [ $? -eq 0 ]; then
# Disable new external configurator, as it generates setups that are
# not compatible with Wine...
mv "Bin32/FarCryConfigurator.exe" "Bin32/FarCryConfigurator.exe.disabled"
else
POL_Debug_Error "$(eval_gettext 'Could not find program directory')"
fi
# GoG work!
Set_OS winxp
POL_SetupWindow_VMS "64"
# Doesn't hurt ;)
POL_Wine_reboot
LNG_EDITOR="$(eval_gettext 'The level editor')"
POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_EDITOR}" "~"
SHORTCUTS="$APP_ANSWER"
POL_Shortcut "FarCry.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Far Cry/Manual.pdf"
# C:/GOG Games/Far Cry/Readme.txt
# C:/GOG Games/Far Cry/Manual_1_4.pdf
if echo "$SHORTCUTS" | grep -q "$LNG_EDITOR"; then
POL_Shortcut "Editor.exe" "$SHORTCUT_EDITOR" "$SHORTCUT_EDITOR.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_EDITOR" "$GOGROOT/Far Cry/Editor Manual.pdf"
fi
# C:/GOG Games/Far Cry/Dedicated server guide.rtf
# C:/GOG Games/Far Cry/Using the FarCry dedicated server.rtf
# C:/GOG Games/Far Cry/Server_Command_Table.pdf
POL_SetupWindow_message "$(eval_gettext 'Default video settings are a bit low for modern computers,\nremember to click on "Auto-detect" in advanced video settings.')" "$TITLE"
POL_SetupWindow_Close
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=""
POL_LoadVar_PROGRAMFILES
cd "$GOGROOT/Far Cry/" || exit 1
TITLE="$TITLE"
POL_SetupWindow_Init
[ -f system.cfg ] || POL_Debug_Fatal "\$(eval_gettext 'Run the game once to create the configuration file!')"
DRIVER="\$(sed -e 's/^r_Driver = \"\(.*\)\".*/\1/p; d' system.cfg)"
VERBOSITY="\$(sed -e 's/^log_Verbosity = \"\(.*\)\".*/\1/p; d' system.cfg)"
POL_SetupWindow_menu_list "\$(eval_gettext 'Pick video driver to use [experimental]:')" "\$TITLE" "Direct3D9~OpenGL" "~" "\$DRIVER"
NEW_DRIVER="\$APP_ANSWER"
POL_SetupWindow_menu_list "\$(eval_gettext 'Verbosity while loading maps:')" "\$TITLE" "0~1~2~3~4~5~6~7~8" "~" "\$VERBOSITY"
NEW_VERBOSITY="\$APP_ANSWER"
if [ "\$NEW_DRIVER" != "\$DRIVER" -o "\$NEW_VERBOSITY" != "\$VERBOSITY" ]; then
sed -i.bak -e 's/^r_Driver = ".*"/r_Driver = "'"\$NEW_DRIVER"'"/' \
-e 's/^log_Verbosity = ".*"/log_Verbosity = "'"\$NEW_VERBOSITY"'"/' \
system.cfg
fi
POL_SetupWindow_Close
exit 0
_EOF_
exit 0 Replies |
| Dadu042 | Saturday 21 March 2020 at 0:22 |
|
Dadu042
|
WarningThis update has not been approved yet by the team. MessagePlayed 20 min. Differences@@ -1,43 +1,51 @@
#!/bin/bash
# Date : (2011-12-18 11-39)
-# Last revision : (2014-04-01 19-02)
+# Last revision : see changelog
# Wine version used : 1.3.36, 1.4.1, 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 :
+#
+# CHANGELOG
+# [Pierre Etchemaite] (2011-12-18 11-39)
+# Initial script (Wine 1.3.36).
+# 1.3.35 has a problem with Direct3D9 renderer water effects. Seems to be fixed in 1.3.36 :)
+# [Pierre Etchemaite] (2014-04-01 19-02)
+# Wine 1.4.1 -> 1.6.2 ?
+# [Dadu042] (2020-03-20 19:30). Script tested with GOG v2.0.0.9.
+# Wine 1.6.2 -> 3.0.3
+#
-# 1.3.35 has a problem with Direct3D9 renderer water effects
-# Seems to be fixed in 1.3.36 :)
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
-
+
GOGID="far_cry"
PREFIX="FarCry_gog"
-WORKING_WINE_VERSION="1.6.2"
-
+WORKING_WINE_VERSION="3.0.3"
+
TITLE="GOG.com - Far Cry"
SHORTCUT_NAME="Far Cry"
SHORTCUT_EDITOR="$SHORTCUT_NAME - CryEngine Sandbox"
-
+
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 1024
POL_Debug_Init
-
+
POL_SetupWindow_presentation "$TITLE" "Crytek Studios / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
-
+
POL_Call POL_GoG_setup "$GOGID" "e26869ba3755084f7b51be5174479d01" "980dbc3d41af088b46d6b3dfa1c1dc3d" "d7cbea9fa8afb4de00f30beeca9d11fa"
-
+
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+
POL_Call POL_GoG_install /nogui
-
-
+
+
cd "$GOGROOT/Far Cry/"
if [ $? -eq 0 ]; then
# Disable new external configurator, as it generates setups that are
@@ -46,71 +54,71 @@
else
POL_Debug_Error "$(eval_gettext 'Could not find program directory')"
fi
-
+
# GoG work!
Set_OS winxp
-
+
POL_SetupWindow_VMS "64"
-
+
# Doesn't hurt ;)
POL_Wine_reboot
-
+
LNG_EDITOR="$(eval_gettext 'The level editor')"
POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_EDITOR}" "~"
SHORTCUTS="$APP_ANSWER"
-
+
POL_Shortcut "FarCry.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Far Cry/Manual.pdf"
# C:/GOG Games/Far Cry/Readme.txt
# C:/GOG Games/Far Cry/Manual_1_4.pdf
-
+
if echo "$SHORTCUTS" | grep -q "$LNG_EDITOR"; then
POL_Shortcut "Editor.exe" "$SHORTCUT_EDITOR" "$SHORTCUT_EDITOR.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_EDITOR" "$GOGROOT/Far Cry/Editor Manual.pdf"
fi
-
+
# C:/GOG Games/Far Cry/Dedicated server guide.rtf
# C:/GOG Games/Far Cry/Using the FarCry dedicated server.rtf
# C:/GOG Games/Far Cry/Server_Command_Table.pdf
-
+
POL_SetupWindow_message "$(eval_gettext 'Default video settings are a bit low for modern computers,\nremember to click on "Auto-detect" in advanced video settings.')" "$TITLE"
-
+
POL_SetupWindow_Close
-
+
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=""
-
+
POL_LoadVar_PROGRAMFILES
-
+
cd "$GOGROOT/Far Cry/" || exit 1
-
+
TITLE="$TITLE"
-
+
POL_SetupWindow_Init
-
+
[ -f system.cfg ] || POL_Debug_Fatal "\$(eval_gettext 'Run the game once to create the configuration file!')"
-
+
DRIVER="\$(sed -e 's/^r_Driver = \"\(.*\)\".*/\1/p; d' system.cfg)"
VERBOSITY="\$(sed -e 's/^log_Verbosity = \"\(.*\)\".*/\1/p; d' system.cfg)"
-
+
POL_SetupWindow_menu_list "\$(eval_gettext 'Pick video driver to use [experimental]:')" "\$TITLE" "Direct3D9~OpenGL" "~" "\$DRIVER"
NEW_DRIVER="\$APP_ANSWER"
-
+
POL_SetupWindow_menu_list "\$(eval_gettext 'Verbosity while loading maps:')" "\$TITLE" "0~1~2~3~4~5~6~7~8" "~" "\$VERBOSITY"
NEW_VERBOSITY="\$APP_ANSWER"
-
+
if [ "\$NEW_DRIVER" != "\$DRIVER" -o "\$NEW_VERBOSITY" != "\$VERBOSITY" ]; then
sed -i.bak -e 's/^r_Driver = ".*"/r_Driver = "'"\$NEW_DRIVER"'"/' \
-e 's/^log_Verbosity = ".*"/log_Verbosity = "'"\$NEW_VERBOSITY"'"/' \
system.cfg
fi
-
+
POL_SetupWindow_Close
exit 0
_EOF_
-
-exit 0
+
+exit 0
\ No newline at end of file
New source code#!/bin/bash
# Date : (2011-12-18 11-39)
# Last revision : see changelog
# Wine version used : 1.3.36, 1.4.1, 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 :
#
# CHANGELOG
# [Pierre Etchemaite] (2011-12-18 11-39)
# Initial script (Wine 1.3.36).
# 1.3.35 has a problem with Direct3D9 renderer water effects. Seems to be fixed in 1.3.36 :)
# [Pierre Etchemaite] (2014-04-01 19-02)
# Wine 1.4.1 -> 1.6.2 ?
# [Dadu042] (2020-03-20 19:30). Script tested with GOG v2.0.0.9.
# Wine 1.6.2 -> 3.0.3
#
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="far_cry"
PREFIX="FarCry_gog"
WORKING_WINE_VERSION="3.0.3"
TITLE="GOG.com - Far Cry"
SHORTCUT_NAME="Far Cry"
SHORTCUT_EDITOR="$SHORTCUT_NAME - CryEngine Sandbox"
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 1024
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Crytek Studios / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "e26869ba3755084f7b51be5174479d01" "980dbc3d41af088b46d6b3dfa1c1dc3d" "d7cbea9fa8afb4de00f30beeca9d11fa"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Call POL_GoG_install /nogui
cd "$GOGROOT/Far Cry/"
if [ $? -eq 0 ]; then
# Disable new external configurator, as it generates setups that are
# not compatible with Wine...
mv "Bin32/FarCryConfigurator.exe" "Bin32/FarCryConfigurator.exe.disabled"
else
POL_Debug_Error "$(eval_gettext 'Could not find program directory')"
fi
# GoG work!
Set_OS winxp
POL_SetupWindow_VMS "64"
# Doesn't hurt ;)
POL_Wine_reboot
LNG_EDITOR="$(eval_gettext 'The level editor')"
POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_EDITOR}" "~"
SHORTCUTS="$APP_ANSWER"
POL_Shortcut "FarCry.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Far Cry/Manual.pdf"
# C:/GOG Games/Far Cry/Readme.txt
# C:/GOG Games/Far Cry/Manual_1_4.pdf
if echo "$SHORTCUTS" | grep -q "$LNG_EDITOR"; then
POL_Shortcut "Editor.exe" "$SHORTCUT_EDITOR" "$SHORTCUT_EDITOR.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_EDITOR" "$GOGROOT/Far Cry/Editor Manual.pdf"
fi
# C:/GOG Games/Far Cry/Dedicated server guide.rtf
# C:/GOG Games/Far Cry/Using the FarCry dedicated server.rtf
# C:/GOG Games/Far Cry/Server_Command_Table.pdf
POL_SetupWindow_message "$(eval_gettext 'Default video settings are a bit low for modern computers,\nremember to click on "Auto-detect" in advanced video settings.')" "$TITLE"
POL_SetupWindow_Close
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=""
POL_LoadVar_PROGRAMFILES
cd "$GOGROOT/Far Cry/" || exit 1
TITLE="$TITLE"
POL_SetupWindow_Init
[ -f system.cfg ] || POL_Debug_Fatal "\$(eval_gettext 'Run the game once to create the configuration file!')"
DRIVER="\$(sed -e 's/^r_Driver = \"\(.*\)\".*/\1/p; d' system.cfg)"
VERBOSITY="\$(sed -e 's/^log_Verbosity = \"\(.*\)\".*/\1/p; d' system.cfg)"
POL_SetupWindow_menu_list "\$(eval_gettext 'Pick video driver to use [experimental]:')" "\$TITLE" "Direct3D9~OpenGL" "~" "\$DRIVER"
NEW_DRIVER="\$APP_ANSWER"
POL_SetupWindow_menu_list "\$(eval_gettext 'Verbosity while loading maps:')" "\$TITLE" "0~1~2~3~4~5~6~7~8" "~" "\$VERBOSITY"
NEW_VERBOSITY="\$APP_ANSWER"
if [ "\$NEW_DRIVER" != "\$DRIVER" -o "\$NEW_VERBOSITY" != "\$VERBOSITY" ]; then
sed -i.bak -e 's/^r_Driver = ".*"/r_Driver = "'"\$NEW_DRIVER"'"/' \
-e 's/^log_Verbosity = ".*"/log_Verbosity = "'"\$NEW_VERBOSITY"'"/' \
system.cfg
fi
POL_SetupWindow_Close
exit 0
_EOF_
exit 0 Replies |
| petch | Saturday 13 June 2015 at 18:07 |
petch
|
WarningThis update has not been approved yet by the team. MessageAdding /nogui parameter to the installer as some run into bug #32451 Differences@@ -35,7 +35,7 @@ POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" -POL_Call POL_GoG_install +POL_Call POL_GoG_install /nogui cd "$GOGROOT/Far Cry/" New source code#!/bin/bash
# Date : (2011-12-18 11-39)
# Last revision : (2014-04-01 19-02)
# Wine version used : 1.3.36, 1.4.1, 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 :
# 1.3.35 has a problem with Direct3D9 renderer water effects
# Seems to be fixed in 1.3.36 :)
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="far_cry"
PREFIX="FarCry_gog"
WORKING_WINE_VERSION="1.6.2"
TITLE="GOG.com - Far Cry"
SHORTCUT_NAME="Far Cry"
SHORTCUT_EDITOR="$SHORTCUT_NAME - CryEngine Sandbox"
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 1024
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Crytek Studios / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "e26869ba3755084f7b51be5174479d01" "980dbc3d41af088b46d6b3dfa1c1dc3d" "d7cbea9fa8afb4de00f30beeca9d11fa"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Call POL_GoG_install /nogui
cd "$GOGROOT/Far Cry/"
if [ $? -eq 0 ]; then
# Disable new external configurator, as it generates setups that are
# not compatible with Wine...
mv "Bin32/FarCryConfigurator.exe" "Bin32/FarCryConfigurator.exe.disabled"
else
POL_Debug_Error "$(eval_gettext 'Could not find program directory')"
fi
# GoG work!
Set_OS winxp
POL_SetupWindow_VMS "64"
# Doesn't hurt ;)
POL_Wine_reboot
LNG_EDITOR="$(eval_gettext 'The level editor')"
POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_EDITOR}" "~"
SHORTCUTS="$APP_ANSWER"
POL_Shortcut "FarCry.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Far Cry/Manual.pdf"
# C:/GOG Games/Far Cry/Readme.txt
# C:/GOG Games/Far Cry/Manual_1_4.pdf
if echo "$SHORTCUTS" | grep -q "$LNG_EDITOR"; then
POL_Shortcut "Editor.exe" "$SHORTCUT_EDITOR" "$SHORTCUT_EDITOR.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_EDITOR" "$GOGROOT/Far Cry/Editor Manual.pdf"
fi
# C:/GOG Games/Far Cry/Dedicated server guide.rtf
# C:/GOG Games/Far Cry/Using the FarCry dedicated server.rtf
# C:/GOG Games/Far Cry/Server_Command_Table.pdf
POL_SetupWindow_message "$(eval_gettext 'Default video settings are a bit low for modern computers,\nremember to click on "Auto-detect" in advanced video settings.')" "$TITLE"
POL_SetupWindow_Close
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=""
POL_LoadVar_PROGRAMFILES
cd "$GOGROOT/Far Cry/" || exit 1
TITLE="$TITLE"
POL_SetupWindow_Init
[ -f system.cfg ] || POL_Debug_Fatal "\$(eval_gettext 'Run the game once to create the configuration file!')"
DRIVER="\$(sed -e 's/^r_Driver = \"\(.*\)\".*/\1/p; d' system.cfg)"
VERBOSITY="\$(sed -e 's/^log_Verbosity = \"\(.*\)\".*/\1/p; d' system.cfg)"
POL_SetupWindow_menu_list "\$(eval_gettext 'Pick video driver to use [experimental]:')" "\$TITLE" "Direct3D9~OpenGL" "~" "\$DRIVER"
NEW_DRIVER="\$APP_ANSWER"
POL_SetupWindow_menu_list "\$(eval_gettext 'Verbosity while loading maps:')" "\$TITLE" "0~1~2~3~4~5~6~7~8" "~" "\$VERBOSITY"
NEW_VERBOSITY="\$APP_ANSWER"
if [ "\$NEW_DRIVER" != "\$DRIVER" -o "\$NEW_VERBOSITY" != "\$VERBOSITY" ]; then
sed -i.bak -e 's/^r_Driver = ".*"/r_Driver = "'"\$NEW_DRIVER"'"/' \
-e 's/^log_Verbosity = ".*"/log_Verbosity = "'"\$NEW_VERBOSITY"'"/' \
system.cfg
fi
POL_SetupWindow_Close
exit 0
_EOF_
exit 0
Replies |
| Mirppc | Thursday 30 October 2014 at 19:58 |
Mirppc
|
MessageThis also does not work on the official CD Setup executable. RepliesFriday 31 October 2014 at 2:20
|
| rawmilk905 | Thursday 23 October 2014 at 21:39 |
rawmilk905
|
MessageThis appears to no longer work using the current GOG installer. After installation, the executable does not run. 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? RepliesFriday 24 October 2014 at 10:41
Saturday 25 October 2014 at 6:38
Saturday 25 October 2014 at 22:49
Sunday 26 October 2014 at 17:19
Monday 27 October 2014 at 18:10
Monday 27 October 2014 at 19:13
Saturday 1 November 2014 at 12:14
|
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
Install this program 
