Forums

[Script] The Dark Eye: Chain of Satinav (GOG)

Auteur Réponses
hmdai Samedi 24 Novembre 2012 à 16:25
hmdai

Hi all,

EDIT: I modify the comment a bit to explain the action more clear
EDIT 2012-11-25: Thank you for the opinion of petch. I have updated the script according to his/her opinion and change to icon to 22x22 version for the script interface to use.
EDIT 2012-11-25:Upload a updated left image to fulfill the resolution requirement and move POL_Shortcut_InsertBeforeWine after POL_Shortcut

I have created the script for The Dark Eye: Chain of Satinav. It is clone from the Deponia script by Kweepeer.

I have also extracted the icon file and create a left image for the setup.

Icon: http://www.mediafire.com/view/?icg4augnbpm0500
Left image: http://www.mediafire.com/view/?g08bx3uc164c7oo


#!/bin/bash
# Date : (2012-11-24 21:30)
# Last revision : (2012-11-24 21:30)
# 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_dark_eye_chains_of_satinav"
PREFIX="TheDarkEyeChainofSatinav_gog"
WORKING_WINE_VERSION="1.5.5"

TITLE="GOG.com - The Dark Eye: Chain of Satinav"
SHORTCUT_NAME="The Dark Eye: Chain of Satinav"

POL_GetSetupImages "" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE" ##TODO

POL_SetupWindow_Init
#POL_SetupWindow_SetID 12345 ##TODO
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "Daedalic Entertainment" "http://www.gog.com/en/gamecard/$GOGID" "hmdai" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "43cf1d1cc74e3087f016f5a05a393598" "fcef6232dd11388d09a56b32231f63e5" "9d666731082fb981b0682e049af83980" "6cff6ce263dab6bf67d9d78c3524afda" "5d044e334a7b3ffb05982ba3957c5ed0"

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 "satinav.exe" "$SHORTCUT_NAME" "" ""
POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" 'unset SDL_AUDIODRIVER'

# Create a tmp directory for the game to create thumbnail image for save game
cd "$WINEPREFIX/drive_c/"
mkdir "tmp"

POL_SetupWindow_Close

exit

Edité par hmdai

petch Samedi 24 Novembre 2012 à 20:38
petch

Hi,
- No need to install gdiplus explicitly, POL_GoG_install does that already, to be compatible with GOG installer v2...
- If you leave the third parameter of POL_Shortcut empty, the icon will be taken from the .exe, that could be sufficient. A 22x22 pixels downsample of the icon should be put onto the server to be used in the list of scripts, though.
- Leave POL_SetupWindow_Close at the end of the script, just before the exit; So if anything in the script requires some user interaction (say, an error happening), it will be possible.
kweepeer Samedi 24 Novembre 2012 à 22:08
kweepeerAnonymous

Ahh, good work. This game is on my wishlist, didn't buy it because I have a large backlog of games to play already :) But good to know a script is already here.
hmdai Dimanche 25 Novembre 2012 à 5:13
hmdai

Thank you for your opinion petch! I have updated the script and icon. :)

Thank you kweeper ;)
petch Dimanche 25 Novembre 2012 à 8:03
petch

Hi hmdai,

POL_Shortcut_InsertBeforeWine can only be used after the shortcut itself has been created (it modifies the shortcut script), so it's usually put right after POL_Shortcut.

The left.jpg is 149 pixels wide, not 150, I suppose it'll be ok but that's a bit weird...

Improvement, if the game comes with some kind of manual, you can add a
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_/c/path/to/the/manualfile"

So it can be reached easily from a right-click on the shortcut.

Other than that, if you're confident the game installs correctly, feel free to submit to the official scripts repository (http://www.playonlinux.com/en/new_app.html) then click on "ask for validation" (not sure of the exact wording), and I'll have a look at it for sure :)

Thank you for your work, people helping the project are more than welcome ;)
hmdai Dimanche 25 Novembre 2012 à 8:12
hmdai

Thank you petch. Sorry about the weird size of the image as I create it in haste. I have updated the left image and re-upload it to fulfill the 150x326 requirement.

Sadly, the game does not come with any document. The document only ship with license documents instead.

It is my pleasure to help. :)
petch Dimanche 25 Novembre 2012 à 8:52
petch

Ok, for info, and to let you know what I did:

- Usually scripts work fine with Macs too, so I've been instructed myself to also check scripts for PlayOnMac by default
- "No-CD" means programs that require a no-cd patch to work, as a warning to the users. That's not the case of GOG games, since they're DRM free
- You can fill in the script ID as soon as you are in the script input form, since the ID it will have appear in the URL
- You can put the hash of the first download part in the "Known md5 of setup files" list. The point is that if someone starts PlayOnLinux with this part as parameter, this will automatically start your script
- "Tests" field is for script unit-testing, it expects Bash code that check, say, that all downloads required by the script are still working. Just leave it blank for now
- (pushed the graphics to the server)

The script has been pushed, you can add screenshots if you want but basically that's it :)

Edité par petch

hmdai Mardi 27 Novembre 2012 à 2:11
hmdai

Thank you, petch. Though I don't find any button or form for me to upload screenshots? Do you know where can I find one?

Also, I have found that even I have submitted the script (this one and Driftmoon one) and it is signed. The script is still marked as beta script. When will the script leave the beta stage?

Edité par hmdai

petch Mardi 27 Novembre 2012 à 7:33
petch

Argg, so that too may require elevated privileges then :s
I need to check what's available exactly with member rights.

About beta status there's no hard rule, I left the "testing" checkbox as it was, but I don't mind removing it. For my own scripts I only set the testing state on script when I'm aware of important issues, which doesn't seem to be the case for your script...
hmdai Mardi 27 Novembre 2012 à 11:42
hmdai

Oh, I misunderstand that option as "has undergo Linux testing and pass". That my bad then. I find that if the script is not out of the beta stage, the PlayOnLinux console will not download it into the repository. e.g. Gothic 2 script.

So could you please help to remove the beta tag from these two scripts?

Edité par hmdai

hmdai Mardi 27 Novembre 2012 à 15:16
hmdai

bump
petch Mardi 27 Novembre 2012 à 16:03
petch