This is my first script for POL, so I'll appreciate any remarks. I'd like to know, whether the script works on other systems, and (if it works fine) what should I do to add it to the official repository.
What works:
* Everything visible on screenshots (http://picasaweb.google.pl/101494349230221813390/MasterOfOrion2#)
What I haven't tested, but I suppose it will work fine (well, not worse than on Windows itself):
* Tactical combat.
Issues:
* Everywhere user is supposed to enter some string, it's very difficult to do. The game reacts very slowly on user's keyboard input. Fortunatelly, such situations are very rare in the game.
The script:
#!/bin/bash
# Date : (2010-06-18 11-00)
# Last revision : (2010-06-18 11-00)
# Wine version used : 1.1.43
# Distribution used to test : Arch
# Author : Tomasz Primke
# Licence :
# Depend :
# Is Play On Linux running?
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
# prepare the presentation
wget http://upload.wikimedia.org/wikipedia/en/thumb/4/49/Moo2baa.jpg/256px-Moo2baa.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
#Presentation
POL_SetupWindow_presentation "Master of Orion 2" "Microprose" "" "TPJ" "MoO2"
# prepare WINE
select_prefix "$REPERTOIRE/wineprefix/MoO2"
POL_SetupWindow_prefixcreate
POL_SetupWindow_message "If you'll be asked to download and install Gecko, you can refuse to do it.\\nIt won't affect the game."
# configure WINE
Set_OS win98
Set_SoundDriver alsa
Set_Desktop On 1024 768
# detect CD-ROM
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
# some messages for the player
POL_SetupWindow_message "Please install the game in default location (click next, next, ...).\\n\\nYou won't need DirectX 2.0 drivers, provided that you don't use\\nsome ancient WINE version."
# install the game
wine "$CDROM/setup.exe"
# create shortcuts
POL_SetupWindow_make_shortcut "MoO2" "Program Files/Microprose/Orion2/" "Orion95.exe" "" "Master of Orion II"
POL_SetupWindow_Close
exit