The forum

[Script] Cossacks II Napoleonic Wars

Author Replies
Dadu042 Monday 11 March 2019 at 12:45
Dadu042

Game work fine.

Note about speed : this game does not handle multithread, so it need a fast CPU (fast : I mean Passmark's Single Thread Rating > 1100, https://www.cpubenchmark.net/ ).

 

#!/bin/bash
# Date : (2019-03-10 20-13)
# Last revision : (2019-03-10 22-00)
# Wine version used : 3.0.3
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested : DVD v1.2 french (version number appear on the main menu, bottom right), update.pak: july 2006.

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

TITLE="Cossacks II Napoleonic Wars"
PREFIX="cossacks_II_nw"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="Dadu042"
EDITOR="CDV"
GAME_URL="https://en.wikipedia.org/wiki/Cossacks_II:_Napoleonic_Wars"

Set_OS winxp

POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# DVD v1.2 has no anti copy protection.
# POL_Call POL_Function_NoCDWarning
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

# POL_SetupWindow_message "Note: please do not install the 'DirectX 9' provided by the game." "$TITLE"

POL_SetupWindow_InstallMethod "LOCAL,DVD"

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "cossacks2setup.exe"
        POL_Wine start /unix "$CDROM/cossacks2setup.exe"
        POL_Wine_WaitExit "cossacks2setup.exe"
        cd "$POL_System_TmpDir"
fi

POL_Shortcut "Cossacks2.exe" "$TITLE" ""

# This game does not copy 'manual.pdf' to the HDD.
POL_Shortcut_Document "$TITLE" "ReadMe.txt"

# Fix error 'missing msvcirt.dll'
# POL_Call POL_Install_vcrun6

POL_Call POL_Install_d3dx9_43

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Edited by Dadu042

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