Close Combat: Cross of Iron

Informations

Creator Message
mark7 Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3522
Wine: 3.0.3

Feedbacks

Description

Overhead-view real-time-tactics game covering the Eastern Front in World War II. 2007. Wikipedia.

Source code

#!/bin/bash
 
# Date : (2015-04-11 10-32)
# Last revision : (2015-04-11 10-32)
# Wine version used : 1.6.2
# Distribution used to test : Debian Jessie (Testing)
# Author : Mark Schreiber mark7@alumni.cmu.edu
# Script licence : GPL v.3
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [Mark Schreiber] (2014-10-28 14:30)
#   Initial script.
# [Dadu042] (2014-10-28 14:30)
#   Wine 1.6.1 (outdated) -> 3.0.3
#   Improve POL_Shortcut

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Close Combat: Cross of Iron"
PREFIX="CloseCombatCrossOfIron"
WINEVERSION="3.0.3"
 
POL_SetupWindow_Init
POL_Debug_Init
 
pushd "$HOME"
 
POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE" ""
 
popd
 
POL_Wine_SelectPrefix "$PREFIX"
 
POL_Wine_PrefixCreate "$WINEVERSION"
 
POL_Wine "$APP_ANSWER"
 
POL_Wine_WaitExit "$TITLE"
 
POL_System_TmpCreate "$PREFIX"
 
# Wine currently can't play CC3:CoI videos.  The game will terminate
# if it tries.  Disable videos.
pushd "$POL_System_TmpDir"
 
cat >"$POL_System_TmpDir/cc3settings.reg" <<'EOF'
[HKEY_LOCAL_MACHINE\Software\CSO\Close Combat\3.50]
"PlayVideos"=hex:00,00,00,00
EOF
 
POL_Wine regedit "cc3settings.reg"
 
rm cc3settings.reg
 
popd
 
# CC:CoI currently crashes at at launch at any other resolutions.
Set_Desktop "On" "800" "600"
 
POL_System_TmpDelete
 
POL_Shortcut "CC3.exe" "$TITLE" "" "" "Game;"
POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Matrix Games/Close Combat Cross of Iron/Close Combat III/Manuals/MANUAL.PDF"
 
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Saturday 26 September 2020 at 16:05
Dadu042

Information

This update has been approved by the team.

Differences

@@ -8,13 +8,20 @@
 # Script licence : GPL v.3
 # Program licence : Retail
 # Depend :
- 
+#
+# CHANGELOG
+# [Mark Schreiber] (2014-10-28 14:30)
+#   Initial script.
+# [Dadu042] (2014-10-28 14:30)
+#   Wine 1.6.1 (outdated) -> 3.0.3
+#   Improve POL_Shortcut
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
  
 TITLE="Close Combat: Cross of Iron"
 PREFIX="CloseCombatCrossOfIron"
-WINEVERSION="1.6.2"
+WINEVERSION="3.0.3"
  
 POL_SetupWindow_Init
 POL_Debug_Init
@@ -55,7 +62,7 @@
  
 POL_System_TmpDelete
  
-POL_Shortcut 'CC3.exe' "$TITLE"
+POL_Shortcut "CC3.exe" "$TITLE" "" "" "Game;"
 POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Matrix Games/Close Combat Cross of Iron/Close Combat III/Manuals/MANUAL.PDF"
  
 POL_SetupWindow_Close

New source code

#!/bin/bash
 
# Date : (2015-04-11 10-32)
# Last revision : (2015-04-11 10-32)
# Wine version used : 1.6.2
# Distribution used to test : Debian Jessie (Testing)
# Author : Mark Schreiber mark7@alumni.cmu.edu
# Script licence : GPL v.3
# Program licence : Retail
# Depend :
#
# CHANGELOG
# [Mark Schreiber] (2014-10-28 14:30)
#   Initial script.
# [Dadu042] (2014-10-28 14:30)
#   Wine 1.6.1 (outdated) -> 3.0.3
#   Improve POL_Shortcut

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Close Combat: Cross of Iron"
PREFIX="CloseCombatCrossOfIron"
WINEVERSION="3.0.3"
 
POL_SetupWindow_Init
POL_Debug_Init
 
pushd "$HOME"
 
POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE" ""
 
popd
 
POL_Wine_SelectPrefix "$PREFIX"
 
POL_Wine_PrefixCreate "$WINEVERSION"
 
POL_Wine "$APP_ANSWER"
 
POL_Wine_WaitExit "$TITLE"
 
POL_System_TmpCreate "$PREFIX"
 
# Wine currently can't play CC3:CoI videos.  The game will terminate
# if it tries.  Disable videos.
pushd "$POL_System_TmpDir"
 
cat >"$POL_System_TmpDir/cc3settings.reg" <<'EOF'
[HKEY_LOCAL_MACHINE\Software\CSO\Close Combat\3.50]
"PlayVideos"=hex:00,00,00,00
EOF
 
POL_Wine regedit "cc3settings.reg"
 
rm cc3settings.reg
 
popd
 
# CC:CoI currently crashes at at launch at any other resolutions.
Set_Desktop "On" "800" "600"
 
POL_System_TmpDelete
 
POL_Shortcut "CC3.exe" "$TITLE" "" "" "Game;"
POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Matrix Games/Close Combat Cross of Iron/Close Combat III/Manuals/MANUAL.PDF"
 
POL_SetupWindow_Close
exit 0

Replies

Dadu042 Friday 10 May 2019 at 23:01
Dadu042

Warning

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

Message

I moved the 2015 script of Mark7 in a right place (below) to be usable.

Differences

@@ -0,0 +1,62 @@
+#!/bin/bash
+ 
+# Date : (2015-04-11 10-32)
+# Last revision : (2015-04-11 10-32)
+# Wine version used : 1.6.2
+# Distribution used to test : Debian Jessie (Testing)
+# Author : Mark Schreiber mark7@alumni.cmu.edu
+# Script licence : GPL v.3
+# Program licence : Retail
+# Depend :
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Close Combat: Cross of Iron"
+PREFIX="CloseCombatCrossOfIron"
+WINEVERSION="1.6.2"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+ 
+pushd "$HOME"
+ 
+POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE" ""
+ 
+popd
+ 
+POL_Wine_SelectPrefix "$PREFIX"
+ 
+POL_Wine_PrefixCreate "$WINEVERSION"
+ 
+POL_Wine "$APP_ANSWER"
+ 
+POL_Wine_WaitExit "$TITLE"
+ 
+POL_System_TmpCreate "$PREFIX"
+ 
+# Wine currently can't play CC3:CoI videos.  The game will terminate
+# if it tries.  Disable videos.
+pushd "$POL_System_TmpDir"
+ 
+cat >"$POL_System_TmpDir/cc3settings.reg" <<'EOF'
+[HKEY_LOCAL_MACHINE\Software\CSO\Close Combat\3.50]
+"PlayVideos"=hex:00,00,00,00
+EOF
+ 
+POL_Wine regedit "cc3settings.reg"
+ 
+rm cc3settings.reg
+ 
+popd
+ 
+# CC:CoI currently crashes at at launch at any other resolutions.
+Set_Desktop "On" "800" "600"
+ 
+POL_System_TmpDelete
+ 
+POL_Shortcut 'CC3.exe' "$TITLE"
+POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Matrix Games/Close Combat Cross of Iron/Close Combat III/Manuals/MANUAL.PDF"
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
 
# Date : (2015-04-11 10-32)
# Last revision : (2015-04-11 10-32)
# Wine version used : 1.6.2
# Distribution used to test : Debian Jessie (Testing)
# Author : Mark Schreiber mark7@alumni.cmu.edu
# Script licence : GPL v.3
# Program licence : Retail
# Depend :
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Close Combat: Cross of Iron"
PREFIX="CloseCombatCrossOfIron"
WINEVERSION="1.6.2"
 
POL_SetupWindow_Init
POL_Debug_Init
 
pushd "$HOME"
 
POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE" ""
 
popd
 
POL_Wine_SelectPrefix "$PREFIX"
 
POL_Wine_PrefixCreate "$WINEVERSION"
 
POL_Wine "$APP_ANSWER"
 
POL_Wine_WaitExit "$TITLE"
 
POL_System_TmpCreate "$PREFIX"
 
# Wine currently can't play CC3:CoI videos.  The game will terminate
# if it tries.  Disable videos.
pushd "$POL_System_TmpDir"
 
cat >"$POL_System_TmpDir/cc3settings.reg" <<'EOF'
[HKEY_LOCAL_MACHINE\Software\CSO\Close Combat\3.50]
"PlayVideos"=hex:00,00,00,00
EOF
 
POL_Wine regedit "cc3settings.reg"
 
rm cc3settings.reg
 
popd
 
# CC:CoI currently crashes at at launch at any other resolutions.
Set_Desktop "On" "800" "600"
 
POL_System_TmpDelete
 
POL_Shortcut 'CC3.exe' "$TITLE"
POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Matrix Games/Close Combat Cross of Iron/Close Combat III/Manuals/MANUAL.PDF"
 
POL_SetupWindow_Close
exit 0

Replies

Edited by Dadu042

mark7 Wednesday 29 April 2015 at 7:25
mark7 Anonymous

Message

I neglected to include the script itself:


#!/bin/bash

# Date : (2015-04-11 10-32)
# Last revision : (2015-04-11 10-32)
# Wine version used : 1.6.2
# Distribution used to test : Debian Jessie (Testing)
# Author : Mark Schreiber mark7@alumni.cmu.edu
# Script licence : GPL v.3
# Program licence : Retail
# Depend :

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

TITLE="Close Combat: Cross of Iron"
PREFIX="CloseCombatCrossOfIron"
WINEVERSION="1.6.2"

POL_SetupWindow_Init
POL_Debug_Init

pushd "$HOME"

POL_SetupWindow_browse "$(eval_gettext "Please select the setup file to run.")" "$TITLE" ""

popd

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate "$WINEVERSION"

POL_Wine "$APP_ANSWER"

POL_Wine_WaitExit "$TITLE"

POL_System_TmpCreate "$PREFIX"

# Wine currently can't play CC3:CoI videos.  The game will terminate
# if it tries.  Disable videos.
pushd "$POL_System_TmpDir"

cat >"$POL_System_TmpDir/cc3settings.reg" <<'EOF'
[HKEY_LOCAL_MACHINE\Software\CSO\Close Combat\3.50]
"PlayVideos"=hex:00,00,00,00
EOF

POL_Wine regedit "cc3settings.reg"

rm cc3settings.reg

popd

# CC:CoI currently crashes at at launch at any other resolutions.
Set_Desktop "On" "800" "600"

POL_System_TmpDelete

POL_Shortcut 'CC3.exe' "$TITLE"
POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Matrix Games/Close Combat Cross of Iron/Close Combat III/Manuals/MANUAL.PDF"

POL_SetupWindow_Close
exit 0

 

Replies

Wednesday 29 April 2015 at 7:28
Actually, if you click the "Contribute" button, right below the text box, you can click and it will open up a form to copy/paste your script. When it is empty, it will only drop down to one empty line, but when you paste in content, it will expand for the length of the script. :)