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

Форум

Giants: Citizen Kabuto (GoG)

Автор Replies
petch Wednesday 4 January 2012 at 22:25
petch

Bonsoir à tous,
J'ai écris un script pour installer ce jeu plein d'humour, rien à signaler cette fois, il fonctionne, tout simplement...
Bon jeu !

https://raw.github.com/petchema/playonlinux/master/giantscitizenkabuto-gog
#!/bin/bash
# Date : (2012-01-04 21-13)
# Last revision : (2012-01-04 22-13)
# Wine version used : 1.3.36
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Tested with install archives:
# setup_giants.exe 827258162 "9f894a9268a7150c2959673fe91cacaa"

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

PREFIX="CitizenKabuto_gog"
WORKING_WINE_VERSION="1.3.36"

TITLE="$(eval_gettext 'Giants: Citizen Kabuto (GoG release)')"
SHORTCUT_NAME="Giants: Citizen Kabuto"
SHORTCUT_SERVER="$SHORTCUT_NAME - $(eval_gettext 'Dedicated Server Editor')"
SHORTCUT_DOC="$SHORTCUT_NAME - $(eval_gettext 'User manual')"
SHORTCUT_README="$SHORTCUT_NAME - $(eval_gettext 'Readme')"
SHORTCUT_DS_DOC="$SHORTCUT_NAME - $(eval_gettext 'Dedicated Server user manual')"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Planet Moon Studios / Interplay" "http://www.gog.com/en/gamecard/giants_citizen_kabuto" "Pierre Etchemaite" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

cd $HOME
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "setup_giants.exe"
ARCHIVE="$APP_ANSWER"

POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"

POL_Call POL_Function_SetNativeExtension "pdf"
POL_Call POL_Function_SetNativeExtension "txt"

POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"

POL_Wine_WaitExit "$TITLE"


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "8"

# Doesn't hurt ;)
POL_Wine_reboot

LNG_DOC="$(eval_gettext 'Documentation about the game itself') (2)"
LNG_DS="$(eval_gettext 'The dedicated server and its documentation (2)')"
POL_SetupWindow_checkbox_list "$(eval_gettext 'What extra shortcuts should be created?')" "$TITLE" "${LNG_DOC}~${LNG_DS}" "~"
SHORTCUTS="$APP_ANSWER"

POL_Shortcut "Giants.exe" "$SHORTCUT_NAME"
if echo "$SHORTCUTS" | grep -q "$LNG_DOC"; then
    POL_Shortcut "start.exe" "$SHORTCUT_DOC" "" "'C:/$PROGRAMFILES/GOG.com/Giants - Citizen Kabuto/Manual.pdf'"
    POL_Shortcut "start.exe" "$SHORTCUT_README" "" "'C:/$PROGRAMFILES/GOG.com/Giants - Citizen Kabuto/readme.TXT'"
fi

if echo "$SHORTCUTS" | grep -q "$LNG_DS"; then
    POL_Shortcut "dedicated.exe" "$SHORTCUT_SERVER"
    POL_Shortcut "start.exe" "$SHORTCUT_DS_DOC" "" "'C:/$PROGRAMFILES/GOG.com/Giants - Citizen Kabuto/readme_dedicated.txt'"
fi

POL_SetupWindow_Close

exit
Вы находитесь здесь: Index > Vos créations > Giants: Citizen Kabuto (GoG)

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 dmcayonlinux.com