Forums

[Script] Crossword Compiler

A Crossword puzzle creator from WordWeb

Auteur Réponses
MTres19 Mardi 29 Décembre 2015 à 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:

Edité par MTres19

petch Mardi 29 Décembre 2015 à 7:55
petch

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 Jeudi 31 Décembre 2015 à 19:47
MTres19Anonymous

Okay. I'll revise that and submit it.

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