The forum

(Script) Balls of Stell (GOG)

Author Replies
visitntx Sunday 31 March 2013 at 23:31
visitntxAnonymous

Hi all, I made this little script fot the GOG game Balls of Steel, an old and classic Pinball. As far as my testings went I didn't find any problem. Please report any issue regarding this script.


#!/bin/bash
# Date : (2013-03-31)
# Last Revision : (2013-03-31)
# Wine version used : 1.5.10
# Distribution used to test : Debian Wheezy (Testing repositories)
# Author : VisitntX visitntx@gmail.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
GOGID="balls_of_steel"
PREFIX="BallsOfSteel_gog"
WORKING_WINE_VERSION="1.5.10"
 
TITLE="GOG.com - Balls of Steel"
SHORTCUT_NAME="Balls of Steel"
 
POL_GetSetupImages "http://s20.postimg.org/ydmradhg9/top.jpg" "http://s23.postimg.org/3m11cy5tn/left.jpg" "$TITLE"
 
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "3D Realms Entertainment / 3D Realms" "http://www.gog.com/en/gamecard/$GOGID" "VisitntX" "$PREFIX"
 
POL_Call POL_GoG_setup "$GOGID" "25f7c0f6e2945d01609ff7c02b4d1d3d"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_Call POL_GoG_install

# Setting up Windows OS version Emulation
Set_OS winxp
 
# Cleaning up by rebooting Wine
POL_Wine_reboot
 
POL_Shortcut "bos.exe" "$SHORTCUT_NAME" "" "" "Game;" # "$SHORTCUT_NAME.png"
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Balls of Steel/manual.pdf"
 
POL_SetupWindow_Close
 
exit


Images:

http://s20.postimg.org/ydmradhg9/top.jpg
http://s23.postimg.org/3m11cy5tn/left.jpg

Anything to improve will be more than well recieved.

PD: thanks a lot to petch for all his great help!

Edited by visitntx

petch Monday 1 April 2013 at 0:16
petch

Looks fine!
One thing you can simplify: you can replace the lines 33 to 38 by
POL_Call POL_GoG_install

It will take care of any adjustments needed to run GOG installers (above .pdf extension association, but also install gdiplus, needed for installers v2), and then run the $POL_GoG_location installer, all by itself.
Beside simplification, the other benefit is that if their installers need some more adjustments, it only needs to be done once, in POL_GoG_install function...
petch Monday 1 April 2013 at 0:19
petch

After that small change, feel free to submit the script for inclusion to the official repository ("Supported softwares" link, then "New installer"; And after script sending "Request signing" for validation).
Ah, I may also need to 22x22 PNG version of the game icon for display in script lists (both in PlayOnLinux and in the website).
visitntx Monday 1 April 2013 at 0:30
visitntxAnonymous

Thanks petch! Edited the code. Now, I will made the Icon and then submit it.
visitntx Monday 1 April 2013 at 0:43
visitntxAnonymous

I uploaded the icon here:

bos

Is a PNG at 22x22 of the game icon.

The script was submited by now.

Thanks for all!

Edited by visitntx

petch Monday 1 April 2013 at 1:10
petch

You forgot to ask for signing, but that's ok, I found the script and it's validated now ;)
visitntx Monday 1 April 2013 at 1:22
visitntxAnonymous

Sorry 'bout that. I now know for the next time! Sorry!

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