Forums

Download dialog

Auteur Réponses
Kjella Mercredi 24 September 2008 à 20:36
KjellaAnonymous

Hello,

After finally figuring out a few things about the script creator and version 3.x scripts (instead of trying to copy from old scripts, by the way the website documentation should have a big red "outdated" sign), it appears that the download function doesn't work for me in 3.1 on Kubuntu Hardy.

Basicly, after the download starts if I move to a different window the download dialog will freeze and refuse to refresh or redraw. I've tried it several times now and it's nothing wrong with the download, it's when I switch focus to something else.

If anyone else would like to try, this is the script I'm working on now. After the episode download starts, navigate to some other window and back. Does that work for you?

Regards,
Kjell Rune

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"
cfg_check

POL_SetupWindow_Init
POL_SetupWindow_presentation "Sam and Max 205: What's New, Beelzebub?" "Telltale Games" "http://www.telltalegames.com/samandmax" "Kjella" "sammax-205"

select_prefixe "$REPERTOIRE/wineprefix/sammax-205"
POL_SetupWindow_prefixcreate

Set_OS "vista"

cd $PLAYONLINUX/tmp/
download "Downloading installer from Telltale" "http://www.telltalegames.com/download/whatsnewbeelzebub" "Downloading installer" 1 1 1 "" 1 1
mv whatsnewbeelzebub sammax205.exe
wine sammax205.exe
rm sammax205.exe

POL_SetupWindow_make_shortcut "sammax-205" "Program Files/Telltale Games/Sam and Max - Season Two/Episode 205 - What's New, Beelzebub/" "SamMax205.exe" "" "Sam & Max 205: What's New, Beelzebub?"

POL_SetupWindow_reboot
POL_SetupWindow_Close
exit
Kjella Jeudi 25 September 2008 à 3:48
KjellaAnonymous

I should probably add, the download finishes eventually and the script completes, but with large install files getting a progress report is completely necessary.
Kjella Dimanche 28 September 2008 à 0:31
KjellaAnonymous

Figured it out... for those of you that don't see it, I should have used "POL_SetupWindow_download" not just "download". That fixes it for me.
Vous êtes ici: Index > PlayOnLinux > Download dialog