Archive for March, 2008

Development System back up

Posted on Thursday, March 27th, 2008

I actually fixed my computer a day or two after I broke it, but I haven’t got round to posting since then. Anyway, it’s a very good reminder of why having your home directory on a separate partition is so helpful – it saves having to reconfigure everything. You still have to install apps that aren’t installed by default, but it could be much worse.

Anyway, what happened was a dependency issue with glibc… Apparently it happened to other people as well, but was fixed fairly quickly – so I’m a lot more cautious now. If there’s an important part of the system in the update list, I don’t update for a day or two now – just in case.

Development system dead

Posted on Thursday, March 13th, 2008

Ah, the joys of running a pre-release operating system. I was doing my usual daily update on my Ubuntu Hardy system (the computer I use most of the time), and one of the updates failed to install, saying something about a dependancy not being installed. So, I tried to open Synaptic to sort it out, but it didn’t want to open. I thought that a reboot was in order, but when the computer turned on, it just stopped part way through the boot process. I tried to log into a terminal, but it wouldn’t work. So I then tried the recovery mode, and a few other kernel versions that I had installed.

No luck… It seems that the system is completely hosed, so I’ll have to install it all over again… At least I have my home folder on another partition, so I should keep all my settings. But still, having to install the OS and all the programs that aren’t included by default is very irritating.

I’ll try to pull some projects onto a USB drive – at least it will be a good opportunity to compile them for Windows.

Eclipse… In 3D?

Posted on Tuesday, March 11th, 2008

I’ve been working on Eclipse a lot lately. I’ve changed the build system, and also vastly improved the menu system. So, I was thinking that since I’m spending so much time and effort making the game, I might as well make as cool as I can. So, I thought that instead of just making it 2D, I could do a top down 3D view instead. I’m already using OpenGL, so it shouldn’t take that much work to change the current code to 3D. It would make it easier to use particle effects too, so I could have cool looking explosions, and a better looking flame from the ship’s engine.

First, I would have to see if there are any file formats for storing 3D models that would be easy enough to implement. Then, I’d probably set the projection mode to a perspective view (instead of the orthographic view I use now), and get the coordinate system set up the same way as it is now. Then, all I’d have to do is to make a 3D version of the sprite class, and I could program it the same way I am now.

I have to try that out before I start writing game code. It’s a good thing that I have started storing the code in a GIT repository, because I can just roll back the changes if anything goes wrong. I’ve also ported Eclipse to the Autotools build system, and added internationalisation support. I don’t have any completed translations yet, but anyway…

What ever I decide, one thing that definitely needs to be done is resolution independence. Then I’ll need to make two new widgets. A spin-button kind of thing (or drop-down box) to select the resolution, and a checkbox to select full screen mode.

GIT

Posted on Friday, March 7th, 2008

A few days ago I set up a Subversion repository to put some projects I have been working on (like Eclipse) in. I decided to go with SVN because I have worked with it before, and am pretty familiar with its commands and workflow.

But, recently on Planet Gnome, I have been hearing a lot about GIT (the version control system originally written for managing the Linux kernel) and I decided to try it out. I backed up my Eclipse directory and turned it into a GIT repository (which, unlike SVN can exist without a server). When I committed the sources, I couldn’t believe how blazingly fast GIT is – where SVN used to take three or four seconds, GIT is done before you can release the enter key! It seems a lot more powerful than Subversion, but takes a while longer to get comfortable with it.

I also plan to convert the Eclipse build system to Autotools, which is pretty horrible to set up, but can vastly simplify things like installation and cross-compiling if set up correctly.

New Monitor

Posted on Thursday, March 6th, 2008

My new LCD Monitor

Tiring of my 15 inch CRT monitor, I recently went and picked up a new 22″ flat panel from Harvey Norman. It is very good, especially considering the price – just $357. The model is HG216D – I got the black model, which matches my computer case (which I painted black last year). The jump in resolution and screen real-estate is really great, and it makes development a lot easier. Now switching between my text editor, terminal and file manager and web browser is a lot easier – I can lay the terminal, editor and file manager on one desktop and the web browser on another (instead of either having to put them all on separate desktops, or have windows under other ones). Even switching from the browser is easier – I don’t have to have my browser maximized now, so I can switch desktops by rolling the mouse wheel on the desktop.

It’s got an HDMI input, which is really cool – but unfortunately we don’t have any HD sources to plug it in to… So for now, we just play HD video through the computer – which still looks great