Close Combat: Cross of Iron

Informations

Créateur Messages
mark7 Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 3557
Wine: 3.0.3

Retours d'expérience

Description

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

Code source

#!/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:

Contribuer
Membre Messages
Dadu042 Samedi 26 September 2020 à 16:05
Dadu042

Information

Cette mise à jour a été acceptée par l'équipe

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

Nouveau code source

#!/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

Réponses

Dadu042 Vendredi 10 Mai 2019 à 23:01
Dadu042

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

#!/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

Réponses

Edité par Dadu042

mark7 Mercredi 29 Avril 2015 à 7:25
mark7 Anonymous

Messages

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

 

Réponses

Mercredi 29 Avril 2015 à 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. :)