The forum

[Script] GOG.com - Ultima 1, 2, 3

Author Replies
MindLikeWater Sunday 27 April 2014 at 23:15
MindLikeWater

Hello everybody!

After a little pause, here is my next script for a GOG.com game collection: Ultima 1, 2, 3 :)

Best regards!

Script

[code language=playonlinux]
#!/bin/bash
# Date : (2014-04-27 22-40)
# Last revision : (2014-04-27 22-40)
# Wine version used : 1.4-dos_support_0.6
# Distribution used to test : Archlinux
# Author : MindLikeWater, mlw dot play at pi dot xelpara dot de
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="ultima_1_2_3"
PREFIX="Ultima123_gog"
WORKING_WINE_VERSION="1.4-dos_support_0.6"

TITLE="GOG.com - Ultima 1, 2, 3"
DEVELOPER="Origin Systems / Electronic Arts"
INSTALL_FILE_HASH="4c3c6ed8842be74d98035573bbfdd3cf"
INSTALL_DIR="Ultima Trilogy"
GAME_DIR1="ULTIMA1"
GAME_DIR2="ULTIMA2"
GAME_DIR3="ULTIMA3"
EXEC1="ULTIMA.EXE"
EXEC2="ULTIMAII.EXE"
EXEC3="ULTIMA.COM"
MANUAL1="Ultima_1_manual.pdf"
MANUAL2="Ultima_2_manual.pdf"
MANUAL3="Ultima_3_manual.pdf"
SHORTCUT_NAME1="Ultima 1"
SHORTCUT_NAME2="Ultima 2: Revenge of the Enchantress"
SHORTCUT_NAME3="Ultima 3: Exodus"

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
#POL_SetupWindow_SetID 1212
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "http://www.gog.com/gamecard/$GOGID" "MindLikeWater" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "$INSTALL_FILE_HASH"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

POL_SetupWindow_VMS "1"

cat <<_EOFCFG_ >> "$WINEPREFIX/playonlinux_dos.cfg"
cpu_core=simple
cpu_cputype=386_slow
cpu_cycles=500
render_aspect=true
render_frameskip=1
mixer_rate=22050
mixer_blocksize=2048
mixer_prebuffer=40
sblaster_sbtype=sb16
sblaster_sbbase=220
sblaster_irq=7
sblaster_dma=1
sblaster_hdma=5
sblaster_mixer=true
sblaster_oplmode=auto
sblaster_oplrate=22050
gus_gus=false
_EOFCFG_

POL_Shortcut "GOG Games/$INSTALL_DIR/$GAME_DIR1/$EXEC1" "$SHORTCUT_NAME1" "$SHORTCUT_NAME1.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME1" "$WINEPREFIX/drive_c/GOG Games/$INSTALL_DIR/$GAME_DIR1/$MANUAL1"

POL_Shortcut "GOG Games/$INSTALL_DIR/$GAME_DIR2/$EXEC2" "$SHORTCUT_NAME2" "$SHORTCUT_NAME2.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME2" "$WINEPREFIX/drive_c/GOG Games/$INSTALL_DIR/$GAME_DIR2/$MANUAL2"

POL_Shortcut "GOG Games/$INSTALL_DIR/$GAME_DIR3/$EXEC3" "$SHORTCUT_NAME3" "$SHORTCUT_NAME3.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME3" "$WINEPREFIX/drive_c/GOG Games/$INSTALL_DIR/$GAME_DIR3/$MANUAL3"

POL_SetupWindow_Close

exit 0
[/code]

Images

left.png


top.png


Script icon


Shortcut icons




Screenshots
1 2 3 4 5

Edited by MindLikeWater

petch Monday 28 April 2014 at 0:20
petch

Hi MindLikeWater,

Not much to say about your script:
- POL_SetupWindow_VMS is not needed for DOSBox based installations, as its only effect is to store the amount of video memory available in the Wine registry (which is not used by DOSBox);
- For a reason that's still mysterious to me, more and more people have problems running GOG installers with Wine 1.4.x; It could be worthwhile to use the now available 1.6.2-dos_support_0.6 (I don't expect any modification of the script to be required).

That's it!
Pierre.

MindLikeWater Monday 28 April 2014 at 11:15
MindLikeWater

Hi petch!

I incorporated your corrections and submitted the script. :)

By the way, switching to "1.6.2-dos_support_0.6" reminded me that this ugly little bug (that you once discovered) is still present, even in this new version of wine. :( Even though it is easy to get around it, I think it would be still good to find a fix for that. Otherwise, it could be a blocker for new users of PlayOnLinux who might not be so technically skilled / interested.

Best regards!

Edited by MindLikeWater

petch Monday 28 April 2014 at 12:15
petch

MindLikeWater Monday 28 April 2014 at 12:23
MindLikeWater

Ah! Ok, I should have read through the bugtracker a little bit more. ;)

I am also experiencing some of the mentioned bugs, like the Alsa bug (games like Privateer play sound effects, but no music). So I keep my fingers crossed for some bug fixes!
petch Monday 28 April 2014 at 13:29
petch

Libraries related bugs are very difficult to fix, they'd need testing on many distros, many releases, and sometimes deep knowledge of those libs...
Any help on binary portability under Linux is highly welcome!
petch Thursday 1 May 2014 at 16:52
petch

MindLikeWater Monday 5 May 2014 at 14:20
MindLikeWater

Great, thanks alot! :)

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 dmca-notice@playonlinux.com