Category: Games

Game: Spiritual Warfare

As a kid, I played this game called Spiritual Warfare.  I’m not sure if it was a gift or if it was something that we got at the Christian bookstore.  Nevertheless, it was a lot of fun.  I don’t remember that much of it, but I do remember some of the hymns that played in the background during the game play.

Spiritual Warfare Title Screen

I found that you can still purchase the game online.  I thought my son would enjoy it, plus it would be a good challenge to get it to work in Linux.  Here’s the website:

Note:  I had a little issue with my order, and it took over a month to arrive.  I think I caught the company at a bad time when staff was working through some form of personal emergency compounded by some shipping issues.  They made up for it by providing another game, which I will have to blog about when I get a chance to try to get it working.

Installing Wine

The game came on a CD with a Windows installer.  The game itself is a DOS game, but the installer requires Windows.  I used Wine to run the installer.  In actuality, since Windows is not required for running the game, I could have used a VM or a friend’s computer.

I added the latest Wine repository and installed Wine with these commands:

sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.6

This installed the Wine version 1.6.  On my laptop, I tried it first with version 1.7, and that did not work at all.  Apparently, there is a bug out there between the latest kernel, Wine, and 16-bit applications.  It gave me this error on my laptop:

err:module:attach_process_dlls "krnl386.exe16" failed to initialize, aborting
err:module:LdrInitializeThunk Main exe initialization for L"C:\\windows\\system32\\winevdm.exe" failed, status c0000005

I went to my other laptop, and the 1.6 version worked fine.

I created a separate Wine prefix for this install.  I think the 32-bit part was important (WINEARCH=win32).

mkdir .wineprefixes
export WINEPREFIX=$HOME/.wineprefixes/spiritualwarfare
export WINEARCH=win32

I ran winecfg to create the Wineprefix, although that wasn’t necessary.  The only thing that I did was to select Windows 98 for the Windows version.

To start the installation, I ran:

wine cmd
d:
setup.exe

Actually, the CD wouldn’t work in the other computer.  I had no problem copying the install files off the CD on my laptop and transfering them over the network to the other computer.  You can just launch setup.exe from any location where you have the install files.

wine setup.exe

I basically accepted the defaults for the install.  This installed the game into C:\SPIRIT, which considering Linux and the Wine prefix, that would be $HOME/.wineprefixes/spiritualwarfare/drive_c/SPIRIT.

DosBox

Wine will not run the game itself because it is actually a DOS-based game.  So, I installed DosBox with this command:

sudo apt-get install dosbox

Then, after starting DosBox, and I had to do a couple of things to get it to run.   First, you have to mount the C: drive to get access to the executable:

mount c .wineprefixes/spiritualwarfare/drive_c

Then, you can just launch it like you would in DOS:

C:
cd \SPIRIT
spirit.exe

At first, the game was a little fast.  I learned that you can slow it down with the Ctrl + F11 sequence.  (You can speed it back up with Ctrl + F12).  Then, you can go to full screen mode.

Shortcut

Now, my son is not going to enter a mount command and go through all of that.  (If it was the only way he could play the game, I’m sure he would learn how!)  I found that I could create a custom configuration file just for the game.  I copied the default one:

cp $HOME/.dosbox/dosbox-0.74.conf $HOME/.dosbox/spiritualwarfare.conf

Then, I edited my copy.  I changed:

  • fullscreen=true
  • cycles=768 (under [cpu] )
  • The [autoexec] section

At the end, the lines I put in autoexec where:

[autoexec]
# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
mount c ~/.wineprefixes/spiritualwarfare/drive_c
c:
cd SPIRIT
spirit
exit

Finally, I made a shortcut with the “Menu Editor” program (alacarte), and I entered the command:

dosbox -conf $HOME/.dosbox/spiritualwarfare.conf

Game Play

In the installation directory, there is a readme.txt file with some helpful information to playing the game.  You’ll probably want to go through that.  Just to help, here are the keys to use:

Arrow Keys – Control the hero
Space Bar – Makes the hero throw fruit
Tab – Makes the hero drop a vial or throw the jawbone or the sword
Pause or F10 – Pauses the game

1 – Select Pear
2 – Select Apple
3 – Select Pomegranate
4 – Select Grapes
5 – Select Banana

P – Pray
M – Bring up the map
V – Select Vial of God’s Wrath
S – Select Sword of the Spirit
J – Select Samson’s Jawbone
R – Select the Raft
T – Light the Torch
A – Use Anointing Oil

F1 – Options Menu
F2 – Load Game
F3 – Save Game
F4 – Sound Menu
F5 – Game Speed Menu

ESC – Quit Game or Clear Menu

Other than that, just explore.  Keep looking for things to get.  It’s a lot of fun.

Playing Spiritual Warfare

Resources

Fixing Super Tux Kart

Super Tux Kart is a fun game that my son and I have gotten into.  It has recently improved quite a lot, and we have enjoyed playing it.

But, just recently, I found that it crashes a lot.  It’s not predicable, it will either freeze the X display or it will just close in the middle of a race.

So, I decided to do a quick Google search to see if there was a solution out.  I can’t find the article now, but something suggested that maybe it was a bug that was already fixed.  I found I had version 0.7, and version 0.8 was available.

On the download page, it suggested a repository.  So, I installed this repository:

sudo add-apt-repository http://ppa.launchpad.net/stk/dev/ubuntu

To get it to install, I ran the regular apt-get update…

sudo apt-get update
sudo apt-get upgrade

After that, I had the 0.8 version.  In addition, the crashes seem to have gone away, so far.

Great Link: Game List from Fedora

I am not much of a game player, but I am always up for a list of software for Linux.  I just recently ran across this list of games on the Fedora Wiki:

Fedora Wiki: Games

I noticed though, that they didn’t list the one game that I have been playing: Super Tux Kart.  My 3-year old enjoys watching me play it, and I enjoy playing it, so it makes a good combination.  I have version 0.6.2, and I just noticed that they are coming out with a 0.7 version!

The other game that my son used to like to watch was Ri-Li.  I didn’t see that one in the list either.

Ri-Li

Kent and I found this neat little game.  At two years old, he is not quite able to play himself, but he seems to enjoy watching it in short bursts.  I guess I am a kid at heart because I don’t mind satisfying him.

Here is a quick screenshot of the game menu:

game-start by you.

Here is a quick screenshot of the game during play:

game-play by you.

So, thanks Dominique for writing this game.  We enjoy it!

Resources

Homepage

More Screenshots