Forums

[script] Close Combat: Wacht am Rhein

Auteur Réponses
mark7 Mercredi 13 Mai 2015 à 8:51
mark7Anonymous

- Real time tactics video game

- If the in-game resolution is changed, currently the game crashes when attempting to change resolution when transitioning to the battlefield.  Using a virtual desktop does not avoid this; presently, the user is simply warned not to change the game's resolution.

#!/bin/bash
# Date : (2015-05-12 10-45)
# Last revision : (2015-05-12 10-45)
# 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: Wacht am Rhein"
PREFIX="CloseCombatWachtAmRhein"
WINEVERSION="1.6.2"

POL_SetupWindow_Init
POL_Debug_Init

# The major limitation is that if the in-game resolution setting is
# changed to anything other than 1024x768, the game will crash when
# entering the battlefield.  On the non-4:3 aspect ratio monitors that
# are common today, this leads to a distorted image; however, this is
# still preferable to using a windowed environment and lacking
# scroll-with-mouse-at-edge-of-screen.

POL_SetupWindow_message "$(eval_gettext "Once this program is installed, do not change the default resolution in its settings.")" "$TITLE installation"

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

POL_Wine_SelectPrefix "$PREFIX"

POL_Wine_PrefixCreate "$WINEVERSION"

POL_Wine "$APP_ANSWER"

POL_Wine_WaitExit "$TITLE"

POL_Shortcut 'CCE.exe' "$TITLE"
POL_Shortcut_Document "$TITLE" "$WINEPREFIX/drive_c/Matrix Games/Close Combat Wacht am Rhein/Manuals/CCWAR-Manual-[LIGHT].pdf"

POL_SetupWindow_Close
exit 0

 

petch Mercredi 13 Mai 2015 à 14:01
petch

Looks ok to me.

You didn't use POL_SetupWindow_presentation, but I don't know if that's considered a strict requirement for official scripts, or just a standard practice...

deri82 Mercredi 22 Juillet 2015 à 2:19
deri82Anonymous

You could also try newer wine version if it prevents the crash.