The forum

[Script] The Book of Unwritten Tales (GOG.com)

Author Replies
hmdai Sunday 25 November 2012 at 11:26
hmdai

EDIT: 2012-11-27 Add two images for the installer

icon: http://www.mediafire.com/view/?z87uzocbwzs4a63
left image: http://www.mediafire.com/view/?ttjbuudye6bifsz
64x64 image: http://www.mediafire.com/view/?r62zxs6d3yaij6s

#!/bin/bash
# Date : (2012-11-25 17:56)
# Last revision : (2012-11-25 17:56)
# Wine version used : 1.5.5
# Distribution used to test : OpenSuSE 12.2 64-bit
# Author : hmdai (Based on Deponia DC script by Kweepeer)
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="the_book_of_unwritten_tales"
PREFIX="TheBookofUnwrittenTales_gog"
WORKING_WINE_VERSION="1.5.5"

TITLE="GOG.com - The Book of Unwritten Tales"
SHORTCUT_NAME="The Book of Unwritten Tales"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/bout_64x64.png" "http://files.playonlinux.com/resources/setups/$PREFIX/bout_left.jpg" "$TITLE"

POL_SetupWindow_Init
#POL_SetupWindow_SetID 12345 ##TODO
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "King Art/Nordic Games" "http://www.gog.com/en/gamecard/$GOGID" "hmdai" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "5b88b486a40f5fd2a4e2f65bab9f82bb" "eaf5761b688e61f091269166eab99165" "a3bd5956c30835b3e6904da6725d586b" "2926abb44170719459849a2830866141"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "128"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "bout.exe" "$SHORTCUT_NAME" "" ""

POL_SetupWindow_Close

exit

Edited by hmdai

kweepeer Sunday 25 November 2012 at 12:09
kweepeerAnonymous

Just a small note: It's not by Daedalic ;)

PS: This game also has Linux native version (at least on Steam).
hmdai Sunday 25 November 2012 at 13:40
hmdai

Yup, my bad. I have forgotten to modify that part :-P

However, Steam Linux version is under beta and is exclusively available for Ubuntu only.
hmdai Tuesday 27 November 2012 at 2:14
hmdai

How is the script, petch? May I submit it for validation?

Edited by hmdai

petch Tuesday 27 November 2012 at 7:38
petch

Looks good to me.

By the way, I haven't seen it used in any of your scripts so far, not sure why, but the first parameter of POL_GetSetupImages is an optional 64x64 pixels image that will show up on top right corner during the installation (in place of the POL clover leaf logo).
I hope it's not just because this one was broken in the Broken Sword script (fixed this not long ago)
kweepeer Tuesday 27 November 2012 at 9:02
kweepeerAnonymous

I based my first script of the code for BS DC. So that may be what happened.. ;)

To be honest, I wasn't really sure what kind of image to use for the "top" image...
hmdai Tuesday 27 November 2012 at 11:37
hmdai

Yup. I have left it out as I'm not sure the usage and the size requirement for the images. I think it will be better to beginners if the size requirement of the images is mentioned within the document.

kweepeer, the icon extracted from the executable is of 64x64. You could use it if you like the icon.

petch, I have uploaded the images into mediafire. Could you help to upload them?

Edited by hmdai

petch Tuesday 27 November 2012 at 12:45
petch

I had to reverse-engineer those constraints too when I started:
https://github.com/petchema/playonlinux/blob/master/gfx/resources.txt

I agree that it should be better documented :/
hmdai Wednesday 28 November 2012 at 5:02
hmdai

I have already submitted the script for signing. Is it done?
petch Wednesday 28 November 2012 at 7:57
petch

Done, but are you sure of your 22x22 and 64x64 images?
Both looks like twice the same image on two layers with different sizes and color depth, possibly some problem importing from icons file...

Edited by petch

hmdai Wednesday 28 November 2012 at 8:25
hmdai

hrm....actually they are the same icon which is originally in 64x64 and I have created a smaller one with 22x22
petch Wednesday 28 November 2012 at 9:43
petch

Sure, but each one looks weird, that's what I meant:

Icon

Edited by petch

hmdai Wednesday 28 November 2012 at 10:39
hmdai

oh, I find that the wrestool command will export more than one icons into different layers if there are more than one icon occurs. I have removed the unwanted layers and it looks better now.

I have reuploaded the images to:

icon: http://www.mediafire.com/view/?fvx17sie6yw0t9g
icon 64x64: http://www.mediafire.com/view/?qalcijpl0zv0nnk
petch Wednesday 28 November 2012 at 19:28
petch

hmdai Thursday 6 December 2012 at 2:22
hmdai

Hello petch, I have just found that GOG has just released the German language pack recently. I think it is a courtesy to include German language for user to choose language as well. Is there any function which allows user to choose language and download the appropiate files from GOG?
petch Thursday 6 December 2012 at 7:55
petch

Hi hmdai,
Downloading from GOG is currently broken (http://www.playonmac.com/en/issue-1577.html).

That said, POL_GoG_download and POL_GoG_setup accept extra parameters to fetch "bonus" content, see for example install scripts for Alone in the Dark 2 and 3:
http://www.playonmac.com/en/source-1247-GOGcom__Alone_in_the_Dark_2.html.
See POL_GoG_download function page for their description:
http://www.playonmac.com/en/app-1117-POL_GoG_download.html

Known limitation of POL_GoG_download is that it opens and closes the session and only deals with one download instruction inbetween, so there's currently no way to download a game and bonus(es) without reasking login and password, so there's room for improvement (put session handling in separate functions, call them from POL_GoG_download if a session is not already opened?)

Anyway, since it's currently broken it cannot be tested, so I'd focus on installing language packs from local files for the moment.

The quick and dirty way could be to instruct users to execute the pack from within the virtual drive, if that's sufficient:
Configure button > (select virtual drive) > Miscellaneous tab > Run a .exe file in this virtual drive button

More sophisticated ways could be:
- ask in installation script what language pack(s) the user wants to add. For an example of such requests, I can think of my Far Cry script that asks the user if (s)he wants a shortcut for running a dedicated server: http://www.playonmac.com/en/source-1024-GOGcom__Far_Cry.html (l. 62-64, 71-74)
- create a "patch installation script". That's a bold term for an installation script that expects a virtual drive to have been created already. Benefit is modularity, the original install script stays simple. You can find plenty of examples in the "Patches" section of the repository, including some for GOG games like http://www.playonmac.com/en/source-1292-GOGcom__Gothic_3_Community_patch.html

Edited by petch

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 dmca-notice@playonlinux.com