Rants of a madman » games

Category: ‘games’

Dec
14

Oh rejoice!

I just found out today (December 2009), that my patch from 2005 actually got included in the main Linux kernel back in Oct. 2007.

http://www.mail-archive.com/git-commits-head@vger.kernel.org/msg22779.html

This is great news and quite fun too.. Look ma’, my initials are in the kernel!

kernel patch source

Its pretty cool to see my ~150 lines of codes inside the official Linux Kernel. What is also really cool to see, is that someone (Jeff Garzik) actually read and checked all my work, and even fixed up comments and some code standard issues. This just showed that all the FUD about “any one can stick code into the kernel” and “4 geeks in a basement dont have time to check everything” is definently disproved.
A few examples:

Original: /*We have a copper wire (or a couple of copperwires at least…. hopefully)*/
Changed to: /* We have copper */

Original: /*we have optical thingie-majiggy*/
Changed to: /* we have optical interface */

Common for both theese examples is, that my blatant attempt to sneak in comment-humor, is gunned down :). Also notice that a space is added after /* and before */, which is the coding standard (which i apparently didnt read well enough).

Also my highly advanced “ternary-in-ternary” statement:


cmd->speed     = (
        ((cfg / CFG_SPDSTS0) & 3) >= 2 ? SPEED_1000 :
        (((cfg / CFG_SPDSTS0) & 3) == 1 ? SPEED_100  : SPEED_10 )
);

is replaced with the simple equivalent:


switch (cfg / CFG_SPDSTS0 & 3) {
     case 2:
         cmd->speed = SPEED_1000;
         break;
     case 1:
         cmd->speed = SPEED_100;
         break;
     default:
         cmd->speed = SPEED_10;
         break;
}

So ive learned that Linux-Kernel coders do not appreciate unreadable one-liners as much as the perl community. (and i was just getting good at unreadable one-liners).



  - Dan
Aug
18

We’re back from HAR2009.. It was a blast :)..

You can see all our photos on our danish blog camp.hacker.dk



  - Dan
Jul
2

Mortal Combat vs. DC Univese is just SO much brainless fun! :)

Mortal Combat vs. DC Universe

I was looking for a list of the “finishing moves” (those funny/cool moves to when you end a battle) and i found this this link.

http://videogamecentral.com/gamersvoice/index.php/2008/mk-vs-dc-fatality-finishing-moves-list-360-ps3/

However the page is dead (Jul 2 2009). The page displays a default page for a newly bought domain, so i pulled the old page from google’s cache. I copied the moves from the cached page to here to preserve them.  Its a bit strangely written, but youre a big boy, so figure it out ;)
Read the rest of this entry »



  - Dan
Dec
6

OMG im such a nerd. I cant sit down and enjoy a game, without ending up programming something related to it.

The latest thing i couldnt leave alone, was the Computer Terminals in FallOut 3. After understanding the logic behind it, i had to code a script that would calculate the correct word to enter.

fallout3_computer_screen.jpg

After telling my collegues about it, they asked if i could make it webbased and i said yes.

3 weeks of not keeping my promise, here it finally is :)..

http://perl.hacker.dk/cgi-bin/fallout_hack.pl



  - Dan