Das Forum

[script] GOG - cossacks

Autor Antworten
danamin Tuesday 15 January 2013 at 8:29
danaminAnonymous

Hi all,

This is my frist script, comments welcome,

Danamin


#!/bin/bash
# Date : 2013-01-14
# Last revision : 2013-01-14
# Wine version used : 1.5.20
# Distribution used to test : Fedora
# Author : danamin
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

GOGID="cossacks_anthology"
GOGFILEMD5="3f0712f235c129fad1360dfd20849093"
TITLE="Cossacks"
PREFIX="cossacks"
WORKING_WINE_VERSION="1.5.20"

POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "" "http://www.gog.com/gamecard/$GOGID" "Wouter De Borger" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "$GOGFILEMD5"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

POL_Shortcut "Program Files/GOG.com/Cossacks Anthology/Cossacks - Back To War/dmcr.exe" "Cossacks Back To War"
POL_Shortcut "Program Files/GOG.com/Cossacks Anthology/Cossacks - Art Of War/dmcr.exe" "Cossacks Art Of War"
POL_Shortcut "Program Files/GOG.com/Cossacks Anthology/Cossacks - European Wars/dmcr.exe" "Cossacks European Wars"

POL_Call POL_Install_directplay

#hangs when ending multiplayer match, desktop mode allows escape
Set_Desktop "On"

POL_SetupWindow_Close
exit

Editiert von: danamin

petch Tuesday 15 January 2013 at 18:11
petch

Hello,
Not much to say about the script itself really...
- By convention I called prefixes for GOG games like "GameName_gog" to avoid collisions with other versions;
- I'm a bit surprized that Set_Desktop "On" works without specifying a resolution

Beside that it looks ready to get submitted.
Extra resources that can be useful for the repository:
- 22x22 pixels png icon of the game, for lists displays, not required but highly recommended
- a 48x48 pixels png version of each shortcut icon is not required, but good to have (in case above format ever changes, or whatever). Those can also be used to override shortcut's icons, if the automatic icons extraction is not working good enough
- If you want your installation to look really professional, you can add a left.jpg image (150x356 pixels) for display on the left of first screen and a top.jpg image (64x64 pixels) for the top right corner of other screens
- few screenshots are welcome to illustrate the game, but that's no requirements either
danamin Monday 28 January 2013 at 20:56
danaminAnonymous

Hi,

I made some minor updates. How can I submit the script (and the images?)

Wouter


#!/bin/bash
# Date : 2013-01-14
# Last revision : 2013-01-28
# Wine version used : 1.5.20
# Distribution used to test : Fedora
# Author : danamin
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

GOGID="cossacks_anthology_gog"
GOGFILEMD5="3f0712f235c129fad1360dfd20849093"
TITLE="Cossacks"
PREFIX="cossacks"
WORKING_WINE_VERSION="1.5.20"

POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "" "http://www.gog.com/gamecard/$GOGID" "Wouter De Borger" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "$GOGFILEMD5"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_directplay

POL_Call POL_GoG_install

POL_Shortcut "Program Files/GOG.com/Cossacks Anthology/Cossacks - Back To War/dmcr.exe" "Cossacks Back To War"
POL_Shortcut "Program Files/GOG.com/Cossacks Anthology/Cossacks - Art Of War/dmcr.exe" "Cossacks Art Of War"
POL_Shortcut "Program Files/GOG.com/Cossacks Anthology/Cossacks - European Wars/dmcr.exe" "Cossacks European Wars"

POL_SetupWindow_Close
exit
petch Monday 28 January 2013 at 21:19
petch

Hi,

- To submit scripts, click on "Supported software" on the left of this page, then "New installer", then fill in requested infos. When you're satisfied with the script and other infos, click on "Request signing" (not sure of the exact wording).

- To submit images one currently needs an FTP access, so just upload the images to some server and post the URLs here, I'll take tare of pushing everything in the right place :)

Editiert von: petch