Het forum

[Script] Crossword Compiler

A Crossword puzzle creator from WordWeb

Auteur Antwoorden
MTres19 Dinsdag 29 December 2015 om 4:21
MTres19Anonymous

Description

This program generates crossword puzzles based on either your own words or general catagories in a variety of formats.

External Modifications

No changes were needed outside of Wine or PlayOnLinux.

Errors/Quirks

The installer does not allow one to avoid starting the program once it's finished, and that makes PlayOnLinux think that Wine has crashed, although it has not. It should be noted that only Freeform, Sudoku, and Word Search modes work.

Script

#!/bin/bash
# Date: 2015-12-28
# Author: MTres19
# Wine version used: 1.8
# Distribution used to test: Kubuntu 15.10 (amd64)

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

TITLE="Crossword Compiler"
PREFIX="CrosswordCompiler"
WINEVERSION="1.8"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "WordWeb Software" "www.wordwebsoftware.com" "MTres19" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"

POL_Call POL_Install_LunaTheme

POL_SetupWindow_menu "$(eval_gettext 'Please select a language.')" "$TITLE" "English~Deutsch~Español~Français~Italiano" "~"
[ "$APP_ANSWER" = "English" ] && END=".exe"
[ "$APP_ANSWER" = "Deutsch" ] && END="_de.exe"
[ "$APP_ANSWER" = "Español" ] && END="_es.exe"
[ "$APP_ANSWER" = "Français" ] && END="_fr.exe"
[ "$APP_ANSWER" = "Italiano" ] && END="_it.exe"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

if [ "$INSTALL_METHOD" = "LOCAL" ]
    then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the program.')" "$TITLE"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "$APP_ANSWER"
fi

if [ "$INSTALL_METHOD" = "DOWNLOAD" ]
    then
        POL_SetupWindow_message "$(eval_gettext 'Notice: This will only be a demo version.')" "$TITLE"
        
        POL_System_TmpCreate "$PREFIX"
        cd "$POL_System_TmpDir"
        POL_Download "http://www.crossword-compiler.com/wf/ccdemo$END"
        
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "ccdemo$END"
        
        POL_System_TmpDelete
fi

POL_Shortcut "ccw$END" "$TITLE"

POL_SetupWindow_Close
exit 0

Screenshots

CrosswordCompiler-22x22.png:

Aangepast door MTres19

petch Dinsdag 29 December 2015 om 7:55
petch
Developer

The installer does not allow one to avoid starting the program once it's finished, and that makes PlayOnLinux think that Wine has crashed, although it has not.

I don't think it's related, it's probably just the installer not returning an exit code of 0.

You can try starting the installer with POL_Wine --ignore-errors, even if obviously that means it won't detect real issues with the installer...

MTres19 Donderdag 31 December 2015 om 19:47
MTres19Anonymous

Okay. I'll revise that and submit it.