The forum

[Script] Crimson Skies

Does install but crash when loading.

Author Replies
Dadu042 Thursday 7 March 2019 at 9:54
Dadu042
Moderator

As I write in the code, currently this script does not allow to run the game (on CD), but just to install it.

It crash as soon the first splash screen appears.

 

See also: https://appdb.winehq.org/objectManager.php?sClass=application&iId=6025

 

#!/usr/bin/env playonlinux-bash

# Date : (2019-02-23 15-25)
# Last revision : (2019-03-07 09-5)
# Wine version used : 4.3
# Distribution used to test : Ubuntu 18.10 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# The DVD used (game version v1.02) is the French edition.
# Date of install.exe is 2000.
#
# Not tested: online game.

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

TITLE="Crimson Skies"
PREFIX="crimson_skies"
WORKING_WINE_VERSION="4.3"
AUTHOR="Dadu042"
EDITOR="Microsoft"
GAME_URL="https://en.wikipedia.org/wiki/Crimson_Skies_(video_game)"

Set_OS winxp

POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"

#install external libraries
POL_Call POL_Install_dinput
POL_Call POL_Install_directmusic
POL_Call POL_Install_directplay
POL_Call POL_Install_dsound

###############
# Please note #
###############

POL_SetupWindow_message  "Please note: This script game allow ot install the game but not to make it run (as of 2019-03-07 with Wine 4.3)." "$TITLE"

POL_SetupWindow_InstallMethod "LOCAL,CD"

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "game/crimson.exe"
        POL_Wine start /unix "$CDROM/install.exe"
        POL_Wine_WaitExit "install.exe"
        cd "$POL_System_TmpDir"
fi
 
POL_Shortcut "crimson.exe" "$TITLE" ""

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0