Вы находитесь здесь

Форум

[script] Close Combat: Wacht am Rhein

Автор Replies
mark7 Wednesday 13 May 2015 at 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 Wednesday 13 May 2015 at 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 Wednesday 22 July 2015 at 2:19
deri82Anonymous

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

Вы находитесь здесь: Index > Your creations. > [script] Close Combat: Wacht am Rhein

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