The forum

[Script] Creatures 2 GOG

Work in progress

Author Replies
Dadu042 Tuesday 12 March 2019 at 21:01
Dadu042
Moderator

Ne permet pas de démarrer le jeu. J'obtiens 3 "Runtime error" durant l'install (puis 1 "Out of global vars range.") mais elle se poursuit comme si de rien n'était. Ensuite le jeu se lance mais stoppe par abscence de mode d'affichage "16bits".


Je vais tenter d'autres versions de Wine avant de poster un debug log.

 

Script créé suite à cette demande :
https://www.playonlinux.com/fr/topic-16294-Comment_cree_un_script_pour_jeux_achete_sur_Gogcom.html

 

#!/bin/bash
# Date : (2019-03-12 20-58)
# Last revision : (2019-03-12 21-31)
# Wine version used : 3.0.3
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
# Playonlinux v4.3.4
#
# Tested : GOG version, installer v2.1.0.18.
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Creatures 2"
PREFIX="creatures2"
WORKING_WINE_VERSION="3.0.3"
AUTHOR="Dadu042"
EDITOR="Mindscape"
GAME_URL="https://en.wikipedia.org/wiki/Creatures_2"
 
POL_SetupWindow_Init
POL_Debug_Init

# GoG work!
Set_OS "win98"

# Otherwise game does crash
POL_Wine_Direct3D "DirectDrawRenderer" "gdi"

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"


# CD-ROM anti copy protection  seems to work with Wine vXXX (no window 'insert CD' before the main menu)
# POL_Call POL_Function_NoCDWarning
 
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
 
# POL_SetupWindow_message "Note: please do not install 'UbiSoft game service' nor the 'DirectX 9' provided by the game." "$TITLE"

# Fix error 'MFC42.DLL not found'
POL_Call POL_Install_vcrun6

# "800x600 16-bit color"
# POL_SetupWindow_VMS "2"

POL_Wine_SetVideoDriver

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 "LockOn.exe"
        POL_Wine start /unix "$CDROM/setup.exe"
        POL_Wine_WaitExit "setup.exe"
        cd "$POL_System_TmpDir"
fi
 
POL_Shortcut "start.exe" "$TITLE" ""
 
# Link to the user guide (this file is installed with the patch v1.02)
POL_Shortcut_Document "$TITLE" "Manual.pdf"
 
# POL_Call POL_Install_d3dx9_43
 
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Edited by Dadu042

Dadu042 Wednesday 13 March 2019 at 10:06
Dadu042
Moderator

Apparament je butte au même point que toi Percherie : l'activation du mode graphique 16 bits.

 

Selon mes recherches (ex: ixquick.com  "16bit site:playonlinux.com"), le mode 16 bits n'est plus dispo depuis une certaine version du noyau linux (Caesar III https://www.playonlinux.com/en/app-1726-GOGcom__Caesar_III.html  ).

J'ai tenté de copier/coller des bouts de code depuis "MotoRacer" et "Star Wars : Rogue Squadron 3D" sans succès.

Dadu042 Friday 15 March 2019 at 22:05
Dadu042
Moderator