[Script] The Book of Unwritten Tales (

Auteur Réponses
hmdai Dimanche 25 Novembre 2012 à 11:26

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

left image:
64x64 image:

# 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"


TITLE=" - The Book of Unwritten Tales"
SHORTCUT_NAME="The Book of Unwritten Tales"

POL_GetSetupImages "$PREFIX/bout_64x64.png" "$PREFIX/bout_left.jpg" "$TITLE"

#POL_SetupWindow_SetID 12345 ##TODO

POL_SetupWindow_presentation "$TITLE" "King Art/Nordic Games" "$GOGID" "hmdai" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "5b88b486a40f5fd2a4e2f65bab9f82bb" "eaf5761b688e61f091269166eab99165" "a3bd5956c30835b3e6904da6725d586b" "2926abb44170719459849a2830866141"

POL_Wine_SelectPrefix "$PREFIX"

POL_Call POL_GoG_install

# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "128"

# Doesn't hurt ;)

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



Edité par hmdai

kweepeer Dimanche 25 Novembre 2012 à 12:09

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

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

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 Mardi 27 Novembre 2012 à 2:14

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

Edité par hmdai

petch Mardi 27 Novembre 2012 à 7:38

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 Mardi 27 Novembre 2012 à 9:02

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 Mardi 27 Novembre 2012 à 11:37

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?

Edité par hmdai

petch Mardi 27 Novembre 2012 à 12:45

I had to reverse-engineer those constraints too when I started:

I agree that it should be better documented :/
hmdai Mercredi 28 Novembre 2012 à 5:02

I have already submitted the script for signing. Is it done?
petch Mercredi 28 Novembre 2012 à 7:57

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...

Edité par petch

hmdai Mercredi 28 Novembre 2012 à 8:25

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

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


Edité par petch

hmdai Mercredi 28 Novembre 2012 à 10:39

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 64x64:
petch Mercredi 28 Novembre 2012 à 19:28

hmdai Jeudi 6 Décembre 2012 à 2:22

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 Jeudi 6 Décembre 2012 à 7:55

Hi hmdai,
Downloading from GOG is currently broken (

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:
See POL_GoG_download function page for their description:

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: (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

Edité par petch