Forum

[Script] GOG.com - Praetorians

Författare Svar
markus_s Sunday 8 December 2013 at 14:35
markus_sAnonymous

Installs Praetorians. Just a standard script for a GOG.com game and everything seems to work.

#!/bin/bash
# Date : (2013-12-08 14-47)
# Wine version used : 1.4.1
# Distribution used to test : Ubuntu 12.04.2
# Author : markus_s
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
GOGID="praetorians"
PREFIX="praetorians_gog"
WORKING_WINE_VERSION="1.4.1"
 
TITLE="GOG.com - Praetorians"
SHORTCUT_NAME="Praetorians"
 
POL_GetSetupImages "" "" "$TITLE"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 1228
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" " Pyro Studios / Merge Games" "http://www.gog.com/gamecard/$GOGID" "markus_s" "$PREFIX"
 
POL_Call POL_GoG_setup "$GOGID" "424388936d26a04dd109a2cc3ef0035a"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
 
POL_Call POL_GoG_install
 
# GoG work!
Set_OS winxp
 
POL_SetupWindow_VMS "16"

# Doesn't hurt ;)
POL_Wine_reboot
 
POL_Shortcut "Praetorians.exe" "$SHORTCUT_NAME" "" "" "Game;StrategyGame;"
POL_Shortcut_QuietDebug "$SHORTCUT_NAME"
 
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Praetorians/Manual.pdf"

POL_SetupWindow_Close

exit 0


Screenshots:
http://imgur.com/qUsm34O
http://imgur.com/dxhwNHO



petch Sunday 8 December 2013 at 16:37
petch
Developer

Hi markus_s,
Nice to see this script, I have the game but didn't had the time to write a script for it (todo list is expanding...)

Anyway, my own review:
POL_SetupWindow_SetID 1228

Like said for the 7 kingdoms script, don't forget to update the script ID when editing

POL_Shortcut_QuietDebug "$SHORTCUT_NAME"

This is used for programs that forget to set their exitcode to 0 when they exit normally, and prevents PlayOnLinux/PlayOnMac from reporting an error message.

Is it there because both games forget to set their exitcode, or just as a remnant of the original script? If not necessary better drop it.
petch Tuesday 17 December 2013 at 20:09
petch
Developer

petch Tuesday 17 December 2013 at 20:32
petch
Developer

By the way, the download hash doesn't seem to match the latest installer (2.0.0.9)

Edit: the hash is correct in the script of the first message of this thread, I assume you forgot to port the update to the final script, updated

Ändrat av petch