Posted April 13, 2012
For those of you running Master of Orion 2 on linux systems, I wrote this little launcher script, which allows the user to choose if he wants a Singleplayer or Multiplayer game. All info needed should be in the script.
=== moo2_launcher.sh ==
#! /usr/bin/env bash
# === Info ===
# Version: 0.1
# Author: Verdan
# Created on: 04/13/2012
# Last modified: 04/13/2012
# Tested on: Archlinux 32-bit running Dosbox 0.74
#
# Small launcher for Master of Orion 2 on *nix systems
#
# Provides the choices for Multiplayer and Singleplayer games
# Beware, you need the hosts IP for a Network game!
#
# To run this script, put it in your MOO2 directory and launch it.
# I recommend using a script in /usr/local/bin to launch it, so that bash integrates it,
# (thereby you could call it from launchers like dmenu)
# === Script ===
# user prompt
function prompt {
echo What kind of game do you wish to run?
}
# execute relevant command
function eval {
OPTIONS="Singleplayer Connect Host Exit"
select opt in $OPTIONS; do
if [ "$opt" = "Singleplayer" ]; then
dosbox -conf dosboxMOO2.conf
exit
elif [ "$opt" = "Connect" ]; then
dosbox -conf dosboxMOO2_client.conf
exit
elif [ "$opt" = "Host" ]; then
dosbox -conf dosboxMOO2_server.conf
elif [ "$opt" = "Exit" ]; then
exit
else
clear
echo bad option
fi
done
}
prompt
eval
exit
=== End Script ===
I hope some of you can use this! Feedback is welcome, tell me if it doesn't work on a system or if you have found a error/bug/thingy.
Cheers!
=== moo2_launcher.sh ==
#! /usr/bin/env bash
# === Info ===
# Version: 0.1
# Author: Verdan
# Created on: 04/13/2012
# Last modified: 04/13/2012
# Tested on: Archlinux 32-bit running Dosbox 0.74
#
# Small launcher for Master of Orion 2 on *nix systems
#
# Provides the choices for Multiplayer and Singleplayer games
# Beware, you need the hosts IP for a Network game!
#
# To run this script, put it in your MOO2 directory and launch it.
# I recommend using a script in /usr/local/bin to launch it, so that bash integrates it,
# (thereby you could call it from launchers like dmenu)
# === Script ===
# user prompt
function prompt {
echo What kind of game do you wish to run?
}
# execute relevant command
function eval {
OPTIONS="Singleplayer Connect Host Exit"
select opt in $OPTIONS; do
if [ "$opt" = "Singleplayer" ]; then
dosbox -conf dosboxMOO2.conf
exit
elif [ "$opt" = "Connect" ]; then
dosbox -conf dosboxMOO2_client.conf
exit
elif [ "$opt" = "Host" ]; then
dosbox -conf dosboxMOO2_server.conf
elif [ "$opt" = "Exit" ]; then
exit
else
clear
echo bad option
fi
done
}
prompt
eval
exit
=== End Script ===
I hope some of you can use this! Feedback is welcome, tell me if it doesn't work on a system or if you have found a error/bug/thingy.
Cheers!
Post edited April 13, 2012 by Verdan