The forum

[SCRIPT] Master of Orion 2

Author Replies
TPJ Friday 18 June 2010 at 12:29
TPJAnonymous

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
NSLW Friday 18 June 2010 at 15:13
NSLW

script not good
TPJ Friday 18 June 2010 at 17:50
TPJAnonymous

Could you elaborate?
NSLW Friday 18 June 2010 at 18:54
NSLW

[Short] No.
Dr Phil Friday 18 June 2010 at 21:36
Dr Phil

Oh god how I love the productive environment of PlayOnLinux, first you have to read some really shitty documentation to write your script, then when you want to give the world your script, some weird guy says your script is bad and that he can't help you. Seriously, I am really starting to understand why people doesn't use POL.

TPJ, if the game is working (I can't test it) your script is great! Don't listen too trolls.
If you want to add it to the repositories, go here and submit it. =)

Thank you very much for your contribution!

Edited by Dr Phil

NSLW Saturday 19 June 2010 at 11:36
NSLW

I'm really tired of explaining people each time the same. There are plenty of post where my answer for such script is the same. He probably hasn't seen them because:
1) he is isolated from that part of forum (I don't think so)
2) he is too lazy, self-dependent, want to get special care etc.

BTW. Shitty documentation isn't my fault.

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 dmcayonlinux.com