Thursday, July 14, 2011

Tower Rush Website

Just to be clear, development on Tower Rush WILL continue.

Currently I’m working on a website for Torus, where peeps can upload/download/comment on/rate maps/skins/replays. Seriously, I still have big plans for Torus.

To make this even more clear: I’ll spoil a bit of my current ToDo list:

  • Fix website
  • Recording games (for replays)
  • LAN = multiplayer capability
  • Handicap for AI
  • Map Editor
  • Custom controls
  • SOUND
  • New types of towers
  • Online stats system
  • Timer for match duration
  • Interactive Tutorial
  • Achievements
  • Real-time recalculation of paths to allow dynamic maps

As you can see: still lots of work, and I’m a slow worker.

You can check out the site (which is still in development) at http://torus.webuda.com

See y’all!

Thomas

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:

[Bugfixes]
* 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]
* 4p-Moshpit.tr added (design by myself).

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


DOWNLOAD: HERE
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!

Thomas

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.

Thomas

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).
    http://fedoraproject.org/en/get-fedora-all
  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:
      https://chrome.google.com/webstore/detail/oojbknijfmdmidgcgchmojbildmbdamm
  • 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 http://get.adobe.com/flashplayer/
    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 nswrapper_32_64.libflashplayer.so /opt/google/chrome/plugins/”
    7. Restart your browser (Google Chrome)
  • Mp3 codec:
    1. In a terminal:
      ”sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm
    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!

Thomas.

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

Saturday, March 12, 2011

Qt 4.7.4 / 4.8 in Visual Studio 2010







Hello folks!
I know, my posts aren’t really active lately. But who cares! At least when I post, there’s something useful or interesting to read. So, this post is a little tutorial about getting Qt 4.7.4 (or 4.8 currently) working in Visual Studio 2010. Most of you probably think that VS 2010 isn’t really native supported by Qt. But guess what, it is! There just isn’t a precompiled package to download and use. So, I will guide you through the necessary steps to get this thingy working flawlessly.
Just 16 steps!
  1. Dude what the hell. Go install Visual Studio 2010 already!
    My installation only included the VC++ compiler, since it’s all that I needed. Be sure however that you include this compiler, or you won’t be able to compile the Qt library. (Now that would be stupid, wouldn’t it?)

  2. [Optional] (I guess). Install Service Pack 1 of VS 2010.
    But beware: according to a friend, it might have some bugs still :/

  3. Install the Qt Visual Studio Add-In:
    http://qt.nokia.com/downloads/visual-studio-add-in

  4. Download the Qt source code as .zip from:
    http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.zip
  5. Download and install the following patch for VS 2010:
    http://support.microsoft.com/kb/2280741

  6. Extract the thingy from step 4 to some decent location like C:\Qt\4.7.4\
    Be sure the location has no spaces or special characters included.
    After this step, C:\Qt\4.7.4\ should contain a lot of folders.

  7. Add the folder from step 6 to your environment variables.
    Windows 7: Control Panel –> System –> Advanced System Settings –> Environment Variables
    Call it QTDIR.

  8. Open a Visual Studio Command Prompt.

  9. Make your way by cd’ing to the folder from step 6.
  10. It seems that 4.8.0 needs Perl to configure correctly. Install Strawberry Perl and everything should be fine. (Only for 4.8.0, not for previous versions like 4.7.3 etc.)

  11. Run the following command:
    ”configure -debug-and-release -opensource -shared -no-qt3support -qt-sql-sqlite -phonon -phonon-backend -no-webkit -no-script -platform win32-msvc2010”

    Explanation:
    -debug-and-release: … if you don’t know what this means, please stop reading now.
    -opensource: install open source edition of Qt.
    -shared: makes the Qt libraries shared.
    -no-qt3support: sorry my retro friends, don’t like old code.
    -qt-sql-sqlite: enable support for the sqlite driver.
    -phonon: compile the Phonon module (some multimedia thingy of Qt).
    -phonon-backend: compile the platform-specific Phonon backend-plugin.
    -no-webkit: disable WebKit module (heard of some bugs in combination with VS, just to be safe and since I don’t need it).
    -no-script: same as no-webkit.
    -platform win32-msvc2010: build for VS 2010! (Don't try win64, does not work)
  1. Skip reading and press “y”.

  2. Wait while Qt is getting configured for your platform.

  3. When done, run “nmake” to start compiling Qt.

  4. Wait again, long this time.
  5. When it’s done (few warnings, no errors on my side) open Visual Studio 2010. Go to Qt –> Qt Options and add the folder from step 6.

  6. Create a new Qt project (or open a .pro project). Should work flawlessly!
So that’s how I got it working here. I wish you all the best of luck on your Qt + VS 2010 adventures!

Feel free to share this tutorial by linking to this post, not copy+pasting the content.
Else I will be forced to get my friend Mathy to trace your IP and let your PC explode in your face.
See you all later,
Thomas
P.S.: This tutorial was originally written for Qt 4.7.2, but should also work with 4.7.3, 4.7.4 and 4.8!