Het forum

[Script] Cultures 2 Gates of the Asgard

Auteur Antwoorden
LinuxScripter Dinsdag 21 November 2017 om 1:34
LinuxScripterAnonymous

Hello.

I created a script to install a RTS from winXP-era called Cultures 2 Gates of the Asgard. The script itself works (the instalator window flickers for some reason though) but once you run the game it does not render right. Instead of the game filling the entire screen, it only makes a small window and the rest of screen is your desktop in a shape of an reversed "L". But once you press the Print Screen button on your keyboard the game window goes to normal fullscreen.

The script (no dependencies I could think of so I left the section where I would normally write them down blank):

#!/bin/bash
# Date : (2017-05-09 22:00)
# Last revision : (2017-11-21 00:15)
# Wine version used : 2.0.3
# Distribution used to test : Ubuntu 17.04 64bit
# Author : LinuxScripter
# Script licence : GPLv3
# Program licence : Proprietary
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Cultures 2 Gates of Asgard"
PREFIX="Cultures2"
EDITOR="JoWood"
AUTHOR="LinuxScripter"
WORKING_WINE_VERSION="2.0.3"
 
# Starting the script
POL_SetupWindow_Init
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$AUTHOR" "$PREFIX"
 
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
 
# Downloading wine if necessary and creating 32-bit prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Installing mandatory dependencies
 
POL_SetupWindow_InstallMethod "DVD,LOCAL"
if [ "$INSTALL_METHOD" = "DVD" ]; then
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "Cultures.ico"
POL_Wine start /unix "$CDROM/Setup.exe"
POL_Wine_WaitExit "$TITLE"
else
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
POL_Wine start /unix "$APP_ANSWER"
POL_Wine_WaitExit "$TITLE"
fi
 
# Making shortcut
POL_Shortcut "Cultures2.exe" "$TITLE" "" "Game;StrategyGame"
 
POL_SetupWindow_Close
exit 0

And here is the debugger output:

fixme:win:EnumDisplayDevicesW ((null),0,0x33f458,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f458,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f588,0x00000000), stub!
fixme:dmime:IDirectMusicPerformance8Impl_InitAudio (0x1f0278, (nil), (nil), (nil), 0, 0, 3f, 0x33fbd4): to check
fixme:dmime:IDirectMusicPerformance8Impl_InitAudio return dsound(0x1f04fc,0)
fixme:dmime:IDirectMusicPerformance8Impl_Init (iface = 0x1f0278, dmusic = (nil), dsound = 0x1f04fc, hwnd = (nil))
fixme:win:EnumDisplayDevicesW ((null),0,0x33f598,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f488,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f6f8,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f5f8,0x00000000), stub!
fixme:ddraw:ddraw_surface7_Flip Ignoring flags 0x1.
fixme:win:EnumDisplayDevicesW ((null),0,0x33f3e8,0x00000000), stub!
fixme:dmime:IDirectMusicPerformance8Impl_CloseDown (0x1f0278): stub

Feel free to test it.


Dadu042 Zondag 4 Augustus 2019 om 7:10
Dadu042

I suggest :

  • Wine 2.03 -> 2.22 (usually better)
  • POL_Call POL_Install_directmusic
Dadu042 Zondag 8 December 2019 om 22:18
Dadu042