Sunday, December 5, 2010

The Sound of Silence

My graphics card has been dieing a slow and rather noisy death - or, at least, the fan has been. Last night, the way it was acting up, I decided that it's final death was probably imminent and that it should be replaced as soon as possible.

Now, I've been putting off replacing it for a few months or so now because getting a new graphics card necessitates upgrading my PC's power supply as it's a lowly 300W and most new-ish graphics cards seem to require at least 400W. This increases the cost of replacing my ailing graphics card (approximately doubling the cost, depending on power supply/graphics card) and, as a student on a limited budget, I have been hesitant to spend the money to upgrade even though it was fairly obvious that I would have to sooner or later.

However! I recently received word that a funding application my supervisor and I put in over the summer was approved so now I have some confirmed funding for next year, and a decent amount more than what I've been getting to date. Thus, I decided now was the time to go ahead and upgrade. I went out today and bought myself a new graphics card (Radeon 5670, for the curious) and a 700W power supply. And it's so quiet! I can barely hear anything at all! It's so wonderful.

I also noticed, whilst I was buying the new graphics card, that there were some 24" widescreen Samsung LCD monitors on sale ($70 off) so I decided to pick one of those up as well as I've been kind of itching to upgrade my monitor. Yeah, I'm splurging. But it's worth it! The new monitor is so glorious! I'm running at a resolution of 1920x1080 and everything is crisp and smooth. It's freaking fantastic!

That is all,
-Freak Out

Monday, November 29, 2010

Centennial Something or Other

It appears that this is my 100th post. Considering that I've had this blog for almost two and a half years already, that tells you something about my posting frequency.

Anyway, I'm going to celebrate my 100th post by doing a follow-up to my previous post in the form of a video. Behold! (Or don't, eyes may bleed, I can't be held responsible.)



Hmmm. The default video frame selected by YouTube says it all, I think, and is quite amusingly appropriate.

This is actually why it took me so bloody long to get around to making that post about my FR porting experiment. I had originally wanted to do a narrated video describing things, but never found the time or motivation. Instead, I decided to slap something together, call it a day and inflict it upon my readership, such as it is.

The only thing I'll note is that most of the music in the video (which was added through the magic of video editing) was composed by my brother with one small piece by myself. In order, they are:

Victory Fanfare
Here's the Boss
Walking Around in a Fog
Canackian Theme
New Folk Song
Dungeon 2
Merv's Theme
The Reel of the Drunken Sailor
New Folk Song (again)
Elvis Theme
Merv's Theme (again)
Flute Song (I composed this for a music theory class)
Appliance Theme
Dungeon 1
The Reel of the Drunk Sailor (again)
Substation Theme

Freak Out,
-TFitC

Tuesday, November 16, 2010

Blog to the FUTURE

With this post we're going BACK IN TIME to late summer 2009 when, on a whim, I decided to port my unfinished game project (from back in highschool) from ancient C/DOS to a more modern Windows-based C#/XNA app. I'd been meaning to blog about the results for some time, but just never got around to it.

Welcome to The Final Reality

The project was (still is, I suppose) meant to be a parody of the Final Fantasy series in particular and of RPGs in general. The graphics were all created by me (and, I admit, they're not particularly fantastic) though were sometimes based on other things. However, I'm not going to talk much about the game itself or its storied history. Rather, I'm going to talk about how much my coding sucked back in highschool and some about the porting process. Though I will include lots of screenshots. Yay!
A googly-eyed alien, though he doesn't seem the friendly sort.

Porting from C to C# wasn't too hard, over all. I had to make some changes to from the DOS-based "I get the whole machine to myself so I don't have to play nice" approach to the multi-tasking based Windows approach, but that went fairly smoothly. I was able to poach some code from my QRT project to handle rendering, so that was fairly easy as well. The first main challenge I came across was that I had the wrong version of the code.

It'll make you glow. Blue magic does silly stuff like that. And yes, the menu is supposed to be aged dot-matrix printer paper.

Somehow, I seem to have lost the most recent version of the code which was missing some things like object animations (which I put back in) and some menu and inventory stuff (which I did not). This caused a problem because the data files were for the most recent version of the code (I still have a working version of the most recent executable...)

Somebody seems to have left their tie hanging on the wall of this cave.

This caused a problem because, in the main program file, there is what is called a "magic number" hard coded telling the game the position in the data file where it should start loading from when the game first starts and, because the version of the code I had was out of date, this number was wrong, thus resulting in reading essentially random junk from the data file.

The Tower of Harmony: what's with all the musical instruments laying around?

Fortunately, once I'd diagnosed the problem, I had enough of my old notes from highschoool sitting around (I am something of a pack rat) that I was able to deduced what the correct magic number was supposed to be. But this is a somewhat extreme example of one of the things that was horrible about my coding back then: way too many things hard coded. I've gotten much, much better about this over the years.

The clinic in the Elf Town. The names of the Elves in the clinic were taken from Tolkien's elvish languages and all mean things like "sickly" and so forth.

Other problems with my code were, perhaps, less severe but still annoying. My style was poor, formatting was bad, comments were lack luster or missing altogether, things were not nearly as organized as they should have been. Again, I've improved greatly in these areas over the years. I think switching to object-oriented languages like C++ and C# have helped tremendously and, these days, I put a lot more effort into structuring and organizing my code well.

In the music club The Wailing Cat. For some reason, the idea of cats being famous musicians amuses me.

As mentioned, some restructuring of code needed to be done in moving from a DOS to Windows based environments, but I was able to borrow some of my code from my QRT project so that made the switch fairly easy. However, since in C#, everything has to be in a class (unlike C/C++ which can have free floating functions), some extra restructuring was needed. I had originally thought of actually reorganizing everything so that it was actually well coded, but quickly decided this wasn't worth the effort. Essentially, each code file became its own class with all public members for easy access. (Don't worry if you don't understand the programmer-speak, the main thing is I took the easy way out since I wasn't going to do anything with the code beyond a simple port.)
The Dwarvish Pizzaria. In FR, dwarves are master chefs. Note the menu says "FR Combo" and the tray (lower right) reads "Quasi". I put several tidbits like that into the graphics.

Back when I was creating all the graphics, data files and whatnot, I had several independent tools for creating various resources - a graphics editor, map editor, item and dialog editor (which I think were just programs with the data hard coded that then wrote data files) - which I then assembled via a semi-automatic resource compiler (I still had to input several things manually). It was all rather archaic. This is one area where the QRT project is definately going to improve upon by having a whole integrated IDE and overall much more data driven approach which will make creating RPGs much easier (not to mention everything will be much more reusable).

Spelunking in an ancient mine.

One other thing that did give me a bit of a problem when porting was with text and dialog. Back in the DOS days (and even up until more recently), text was commonly just 8-bit ASCII by default. In C#, everything is unicode by default. This caused a bit of a problem because I was using certain ASCII codes to represent special symbols (item icons, for example) which didn't always translate as expected in unicode. So I had to put special checks in for some symbols, but I don't think I caught them all because the port occasionally crashes when opening certain treasure chests. Oops.
The graphics for house interiors were based on the house I lived in at the time. That's the clock I made in shop class.

That's really all I have to say about my little porting project and the crappiness of my coding back in highschool. As I've said, I've improved a lot since then (lots of additional experience under my belt) and my QRT project, as a result, will be much better designed and will be much more flexible and will be capable of a lot more overall.

A multi-layered tech dungeon. I liked multi-layered maps. Note the Star Trek styled replicator thing.

Hopefully I haven't bored anyone who's bothered to read this too much (I hope the pictures helped!), I've blathered on so long basically as an excuse to use as many screen shots as possible. I've mentioned QRT a few times and I'm still planning on blogging specifically about that project, eventually, whenever I get around to it. Until then, I'll just leave you with a few more screen shots.
In town, even pedestrians have to obey stop signs. Anachronism? What's that?

In the tech dungeon it's Quasi Cola! One of those little tidbits. Not sure why since I don't actually like cola that much.

A hallway in The Wailing Cat. The picture on the left is supposed to be me. The other picture says "Quasi".

Again in The Wailing Cat. For some reason, I seem to have made a point of including bathrooms in the game.

Freak Out,
-TFitC

(I should probably say something about images being copyright by me, yada yada, wheretofore and hereunto.)

Monday, November 1, 2010

Grab Bag

Yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarrrrrr!

Today I actually started doing some programming related to my research. Nothing exciting yet, just laying down some groundwork. And, of course, since it's just getting started, it may all end up getting discarded before the end anyway. Who knows! I sure don't!

In much less exciting news, I will be going off to proctor in about ten minutes or so. I've probably said it before and shall no doubt say it again, but I - hate - proctoring.

Well, that is all for the present.

Freak Out,
-TFitC

Wednesday, October 27, 2010

Math on Wheels

On the way to school this morning I saw a car that was very solidly pink. It stood out because it's not the sort of thing one sees every day - certainly not a common colour for a car. Its license plate also had the word "PINK" in it, so I guess the driver must really like pink.

Freak Out,
-TFitC

Monday, October 18, 2010

Grinding for Fun and Profit

I spent much of my weekend grinding in some fashion - mostly either marking assignments or by staining a fence. Neither was particularly "fun" nor "profitable" (though I suppose I do get paid for marking, though not enough) and I didn't even go up a level. Oh well. Fence staining was slightly more fun than marking since it at least got me outside on a pleasant day and did involve some interaction with friends, so it wasn't all bad.

I'm TAing one of the first year CS courses again this term which mostly involves marking assignments. I've TA'd this course before and it's about as boring as I remember. Somehow, marks seem to be worse than the last time I TA'd this course, though it could be that the online system we're using for marking makes it easier to be pickier about things over all. Meh, whatever.

Today, I'm actually doing some research related work, mostly some planning and reviewing before I dive into coding something. Part of this involved digging out some manga and skimming through it. I think it's pretty awesome that I can read comics and justify it as "work".

Freak Out,
-TFitC

Wednesday, October 13, 2010

In The Works

Over a year ago, in my comic-based post (which I really should do again some time), I mentioned my QRT project and implied that I would write more about it in the "near" future. Well, it's been a while and the post has not yet appeared. And before anyone gets their hopes up, this isn't that post either.

However, I have been making progress on the project and recently got to the point where I can now script talking to NPCs - sort of. I haven't implemented the conversation system that I plan to do eventually, so for now it's really just displaying simple text boxes but hey, it's something! This also means that QRT can almost do everything that FR could back in highschool, and is much better implemented and far more flexible to boot. So, yay!

I shall no doubt talk more about this "soon" (possibly more than anyone really wants to hear about) and hopefully "soon" will actually mean soon, this time, and not a year or more.

Freak Out,
-TFitC

Thursday, September 30, 2010

This Just In!

Hey! Today is the last day of September.

Just thought I'd let everyone know.

Freak Out,
-TFitC
(This message brought to you by the committee for inflating post counts.)

Wednesday, September 8, 2010

The Road Goes Ever On

I recently completed my "20th anniversary" read through of The Lord of the Rings (save for the appendices which won't take long) that I began back on the 20th anniversary of receiving The Fellowship of the Ring and The Hobbit for Christmas (commemorated in this post).

I do not recall when I finished my very first read through of The Lord of the Rings as I don't remember whether or not I received The Return of the King for Easter or my birthday. If it was for my birthday (as seems most likely since I do recall that I got The Two Towers for Easter) then I probably wasn't too far off my original finishing date either, but that's just guesswork on my part.

Obviously, I took my time reading, but I've had other distractions along the way such as course projects and also read Tolkien's take on a couple of old Norse legends (in "The Legend of Sigurd and Gudrun") somewhere in there.

Still, I enjoyed The Lord of the Rings as much as I always do. Certain things always seem to affect me in some way - like the Ride of the Rohirrim, Eowyn facing down the lord of the Nazgul and Frodo slowly having his mind eaten away by the ring as they approach Mount Doom, just to name a few.

I often also seem to pick up on something new each time I read the book. This time, it was from the final chapter "The Grey Havens" when Sam is agonizing over what to name his first child (a daughter), Frodo suggests naming her Elanor, after the flowers in Lothlorien, meaning "sun-star" as he says. That made me go "Huh! That is actually what that means..." If my readers will allow some linguistics, in Tolkien's elvish, "el" is "star", found in such names as "Elbereth" (star queen) or "Elrond" (star dome - if memory serves) and "anor" is "sun" as in "Minas Anor" (tower of the sun), the original name of Minas Tirith.

Anywho, as always I have enjoyed my latest journey through Middle-Earth, one which I shall no doubt undertake again in the future.

Freak Out,
-TFitC

Friday, August 27, 2010

Cape-Freak Vs. The Internets

Hmm. Well, ok, so I'm not actually going up against the internets or anything. The title of today's post is simple a clever, clever play on the Scott Pilgrim movie title. *shifty eyes* What? I am to clever. *pout*

But anywho, the main point here is to say that I saw "Scott Pilgrim Vs. The World" last week and quite enjoyed it. I'm not going to get into too many specifics at the moment since you really should go out and see it - if you like comics and/or games you'll probably enjoy it - I'm just going to limit my comments to one or two things that I particularly liked.

Visually, I really liked the comic book style sound effects that they used and think they really worked well. In a way, it's kind of like the old 60s Batman show (at least I think it was from the 60s, that was before my time) but obviously much better integrated to the point where it just seemed natural.

Some of the video game references were also quite good, some audio as well as visual - some Legend of Zelda music plays briefly during the opening scene. Fun stuff.

The movie also has a lot of Canadian content. It's based on a comic book by a Canadian author, set and filmed in Toronto, has at least some Canadian actors and also has some close-ups of Canadian coinage, among other things.

I am certainly quite interested in getting the original comics now, so that's something I'll have to look into.

It seems I've been babbling on for long enough now so I think I'll take the opportunity to sign out.

Oh, by the way, also google "Scott Pilgrim vs the Animation" - it's not a spoiler for the movie (but is related to it) so it's safe to look up even if you haven't seen the movie yet.

Freak Out,
-TFitC