GOG.com - Ground Control 2

Informations

Creator Message
petch
Developer

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 5930
Wine: 1.4.1

Feedbacks

Description

English: In this real-time strategy game, you control some futuristic army...
(updated for GOG installer v2)

GOG now has installers for Mac

Français : Ground Control 2 est un jeu de stratégie en temps réel futuriste, où vous dirigez une armée sur le terrain...
(mis à jour pour l'installeur GOG v2)

GOG propose maintenant des installeurs pour Mac

Source code

#!/bin/bash
# Date : (2011-12-03 20-32)
# Last revision : (2013-12-24 11-48)
# Wine version used : 1.3.36, 1.4.1
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Supposed to be "Gold" on WineHQ with 1.3.23, but I crash it with middle-click + drag
# Same for 1.3.27-rawinput2,
# very easily with 1.3.33
# couldn't crash it with 1.3.34-rawinput2
# 1.3.34 ok

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

GOGID="ground_control_2_operation_exodus"
PREFIX="GrndCtrl2_gog"
WORKING_WINE_VERSION="1.4.1"

TITLE="GOG.com - Ground Control 2"
SHORTCUT_NAME="Ground Control 2"

POL_SetupWindow_Init
POL_SetupWindow_SetID 1016
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Massive Entertainment / Rebellion" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "db42c0a6e8c5b4c75f3969bb0d084292"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Wine_InstallFonts

POL_Call POL_GoG_install


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "32"

# Helps at least when windowed
POL_Wine_X11Drv "GrabFullScreen" "Y"

# Remove the "beta DirectX version" warning upon first run
cat <<_EOFREG_ > "$POL_USER_ROOT/tmp/dxtested.reg"
[HKEY_LOCAL_MACHINE\Software\Massive Entertainment AB\Ground Control II]
"HardwareChecks"=dword:00000010
"HardwareCheckVersion"=dword:00000009
_EOFREG_
POL_Wine regedit "$POL_USER_ROOT/tmp/dxtested.reg"
rm "$POL_USER_ROOT/tmp/dxtested.reg"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "gcii.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Ground Control II/Manual.pdf"
# C:\GOG Games\Ground Control II\readme.txt

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message