Saturday, June 18, 2011

Torus 1.01 Beta

Hello Folks!

I hereby announce the release of Torus 1.01 Beta!
Torus is a game based on Tower Rush, which was made for a project at University in cooperation with Michael Lumingu. However, Torus (and all future changes and additions) will be purely done by myself.

Now, what's new in version 1.01 Beta:

* Fixed a bug which allowed players to "button mash" and sent troops at a faster rate than normal.

[OS Specific]
* [Linux] Fixed a bug which caused the number of soldiers in a tower to display incorrectly when over 99.
* [Windows] [OSX] Fixed a bug which caused the number of soldiers in a tower to display incorrectly when over 999.

[New Features]
* Skin support added.
Check both the .trs files in the config folder. Create one like those to create your own skin.
* Skins added: Mushrooms.trs and Original.trs.

[New Maps]
* added (design by myself).

* Renamed all existing maps.
* Removed an unneeded print when the game was started using a console.
* Reordered all files into a folder structure.

If you liked it, you may always donate for future development! :p

I hope you all have fun with the new map and skin support!


Monday, June 13, 2011

Tower Rush

Hello folks!
This post is about a project I did together with my friend Michael Lumingu, called Tower Rush. It’s a game written in Java based on the PSN title Mushroom Wars. In short: You have towers, your enemy or enemies have towers. Purpose of the game: Making sure your enemies have no towers. Sounds simple right?

Before you go all “OMG WINDOWS” on my ass: I have written the game in my Fedora distribution. The screenshots are just for showing off cross-platform compability. Above, you can see the main menu. You can currently choose between three maps:
  1. “Sample Map” is a map for 2 players. Blue starts in the top left corner, while Red starts in the bottom right.
  2. “Sample Map 4 Players” is a map for 4 players.
  3. "Island 4 Players” is also a map for 4 players, designed by Tom Smets (since I needed more maps and was too lazy to come up with a third).
Also as you can see, you can choose a game speed. This speed can be set to:
  • Normal (hoorray!)
  • x1.2
  • x1.5
  • x3
  • x10
Also, there are currently 3 simple AI’s included. A random one which targets random towers, a “smart attack” which targets weak or important enemy towers, and a “smart attack + defense” which does the same as the “smart attack” but even smarter while also defending its own towers.

In-game footage:

This is in-game footage of the “Island 4 players” map. As you can see, the “smart attack + defense” AI is winning, while having 313 soldiers at the moment.

Now how does the gameplay work:

Firstly, towers generate soldiers. You can see the number of soldiers in each tower. Bigger towers generate soldiers faster (so they are more important than small towers). You can send soldiers from one tower to another. If you send soldiers to one of your own towers, the soldier count will increase, thus you send reinforcements. If you send soldiers to another tower, the soldier count will decrease. If you sent more soldiers to a tower then there are in the tower, you will own the tower. Soldiers only battle inside towers. For each attacking soldier, one defending soldier will die. For example, if you send 30 soldiers to a tower of 25 soldiers, you should own the tower afterwards, but only 5 soldiers will be left. Also, don’t forget that towers generate soldiers in the meantime, so that could mean sending 30 soldiers isn’t enough!

A tower also has a maximum number of soldiers. Well not really, a tower can contain as much soldiers as you’d like. Only, if there are 40 soldiers or more in a tower, it WON’T generate new ones. Keep this in mind!

Controls are included, just click on the help button in the main menu ;)

This game was created for the course “Cross-term Project” at University Hasselt. However, if I can, I will continue developing this game, adding new content like:
  • LAN support (MULTIPLAYER!)
  • Sound
  • Map editor
  • new features!
The game is written in Java. You should be able to run the game through a console (or cmd) by the following command: “java -jar towerrush.jar”. Or by just executing the .jar file.

DOWNLOAD: HERE (latest version)
If you liked it, you may always donate for future development! :p

Have fun, and please, leave feedback.


Wednesday, June 1, 2011

Switching from Ubuntu to Fedora 15

Hello folks!

You might have already seen that the small logo on the right of this blog has changed from Ubuntu to Fedora. The reason for this is simple, since I have switched from using Ubuntu to using Fedora as my main Linux distribution. The reasons were many:

  • Unity sucks. Sorry Canonical, but what have you done. I have tried both the Ubuntu 11.04 beta (Unity crashes galore) as the final release version (Unity crashes galore). I can’t work with a default window manager that doesn’t work either.
  • Gnome 3. The newest version of Gnome (including Gnome Shell) is gorgeous. Fine, it might not be as great performance-wise as the previous versions of Gnome, but hey, it works while looking awesome. I had tried installing Gnome 3 in Ubuntu 11.04 and guess what happened? (Ubuntu crahses galore).
  • Time for something new. Ok, Unity was new, but it sucked. Also, Fedora is not Debian based like Ubuntu is. That means:
    • No sudo apt-get install.
    • No .debs to install.
    • Small differences beneath the surface.

Noticable differences:

  1. Like I already said, no sudo apt-get install (but an app called “yum” instead), and .deb’s cannot be installed (.rpm’s instead). .deb’s seem to be distributed more, however I noticed that the official Fedora repositories are quite full already. On this part, I must say equal for both Ubuntu as Fedora. Yum isn't quite as fast as apt-get, but the great repositories make up for it. Have I told you already that the repositories update impossibly fast? You can be sure about having the latest version of your apps (something which cannot be said about Ubuntu without using custom repositories).
  2. Gnome 3 vs Unity. Gnome 3 wins with a LONGSHOT. Both aren't optimal if viewed from a performance perspective, but I must say that Gnome 3 is very user friendly. It just needs some getting used to. However after spending some time with Unity, it just doesn't fit. (Could be me thought). Win for Fedora on this one.
  3. Support. The communities for Debian-based Linux distributions are WAY larger. The Ubuntu community probably pwns the hell out of all others. However if you got a problem in Fedora, you can almost certainly find it with the right Google. But for the sake of being fair, I must say that Ubuntu wins this round.
  4. Long-term. Ubuntu seems to go its own way. Unity was the perfect example of that, since Canonical didn't want to be dependant of the Gnome developers. But if Ubuntu keeps going it's own separate way (and failing a bit), it might lose a bunch of its users. Fedora however is constantly updated with the newest techs, using the support of RedHat. This means that Fedora isn't going away anytime, and just keeps getting better while using open source technologies open for everybody, instead of going solo and starting to code things on their own. Win for Fedora!

I must say, after a month of using Fedora + Windows (after 2 years of Ubuntu + Windows), Fedora is my choice. And since Ubuntu is going on its own uncertain path, it will probably stay that way. Next up: Installing (and fixing) Fedora 15!

First a disclaimer: If you, by doing something wrong during the install, mess up your hard drive, don't come crying. I'm not going to walk you step by step through the install, most of you already have installed Ubuntu (or another Linux distribution) once or more, so it's pretty straightforward.

Installing Fedora 15!

  1. Download the install DVD (I did this since I like choices).
  2. Burn & install (I’m going quickly through this or this post will be waaay to long).
  3. Congratulations, you have installed Fedora 15!

For the next part of this post, I assume you chose a Desktop install with Gnome 3, and next up: Fixes!

  • Google Chrome:
    • I use Google Chrome as the main browser. However, it seems to have some issues with Fedora 15. To install it, download the .rpm from Google. Some extensions might crash on launch. This is caused by Fedora messing up some filenames. To fix this, run the following in a terminal:
      "restorecon -R -v -F ~"
    • Adwaita Theme (Default Gnome 3 Theme) for Google Chrome:
  • Flash player:
    1. First you need to fix Flash for Firefox. When you have that working, you can fix Flash in Google Chrome. Start by downloading the Yum for linux from
    2. Install it.
    3. In a terminal:
      ”sudo yum install nspluginwrapper.{x86_64,i686} alsa-plugins-pulseaudio.i686 --disablerepo=adobe-linux-i386”
      ”sudo yum install flash-plugin”
    4. Restart your browser (Firefox).
    5. Flash working in Firefox!
    6. In a terminal:
      ”cd /usr/lib64/mozilla/plugins-wrapped/”
      ”sudo mkdir /opt/google/chrome/plugins”
      ”sudo cp /opt/google/chrome/plugins/”
    7. Restart your browser (Google Chrome)
  • Mp3 codec:
    1. In a terminal:
      ”sudo yum localinstall --nogpgcheck
    2. Install the following package:
      ”gstreamer--ffmpeg” (GStreamer FFmpeg-based plug-ins)
  • Gnome Tweak Tool:
    I highly recommend this application. It can change themes and customize Gnome 3 to your liking (including restoring minimize + maximize buttons etc).
  • Gnome Shell Extensions:
    I also recommend this. Be sure to check for extensions you like and could use, like always showing a Places menu in the upper right corner, a power off item etc.
  • Auto mounting a NTFS partition on boot:
    1. In a terminal:
      ”sudo yum install ntfs-3g”
      ”sudo mkdir /media/<name you want>”
    2. Check what the name of the partition is using a terminal:
      ”sudo /sbin/fdisk –l”
      (I found /dev/sda5).
    3. Edit the /etc/fstab file using a terminal:
      ”sudo gedit /etc/fstab”
      and add the following line (using your <name you want> and name of the partition):
      ”/dev/sda5    /media/<name you want>    ntfs-3g    defaults,fmask=0000,dmask=0000,uid=500    0    0”
    4. Reboot.
  • Other recommended programs I can think of right now:
    • Guake (drop-down terminal for Gnome)
    • Unrar (for unpacking .rar files).

I guess this is most of the stuff I did to get Fedora 15 working the way I want to. If you try it, have fun!


P.S.: If you have problems shutting down Fedora, try holding the ALT-key Winking smile