Page 51 of 99

Coding after midnight. Rockin to the dawn.

The Short Version:

     I wrote an application for OS X 10.3+ that rips the audio from DVD’s to your iTunes / iPod. I use it to listen to commentary tracks – it could concievably be used as a language-learning tool (Listening to the alternate language audio streams from familiar movies). You can download the application here. Feedback and / or donations (if you find it useful) are appreciated.

The Long Version (Nerd alert):

     I’ve always been a huge fan of DVD commentary tracks, primarily because I’m obsessed with all things “Behind the Scenes.” A few weeks ago I noted that lately I just don’t have the time to watch all the movies I’d like to see, let alone rewatch them with the commentary track. What I do have time for, however, is portable audio. Every so often I’ll hit a stretch in a project where I’m doing something relatively mechanical, and having narrative audio like This American Life to follow help make the time melt away. I duly filed the idea in the back of my brain.

     Roughly a week later, this tutorial popped up on Lifehacker. Basically, it details ripping the audio track from a DVD using command line options and Open Source video player VLC. This got me playing with VLC, but I was unable to find a command line option to switch the audio stream to grab (Though I did find some discussion of adding it as a feature). I posted this ask.metafilter thread looking for leads, and someone suggested MPlayer.

     After wrestling with getting fink up to date on my Mac, and then compiling MPlayer and LAME, I had the basics. I devised a command line program that will take the output of Mplayer and feed it in to LAME, resulting in an easily portable MP3.

     For some reason, I decided I would learn how to make this into an application for others to use. When I described this idea to my girlfriend, Sarah, she said:

     “You have completely lost your mind this time.”

     Which clearly means I’m on to something. So I set about learning the joys of Interface Builder and Applescript Studio during the wee hours of the past week or so. I now have what I think is a functional version of the application I set out to create. It will even take the MP3 it spits out and add it to a playlist in iTunes. You can download it here.

Video Games that break the fourth wall in interesting ways

     I’ve recently come across references to two video games that interacted with the player in a pretty unique way. I’ve never experienced either of these first hand, but I’m intrigued, and curious if other such examples exist.

     The first example I’ve seen referenced is 1993’s ‘X-Men’ for the Sega Genesis. I’ve read incomplete accounts of what exactly this ‘breaking of the fourth wall’ entailed in a few different places, but this is the most complete account I’ve found:

     “At the end of the level “Mojo’s Crunch,” you will be in a room surrounded by tv screens with Prof. X’s face on them. When the timer starts to run out, Prof. X will tell you to reset the computer. At this point press the RESET button on your Sega’s Genesis. You will see a screen that looks like binary code. After this fades out, You will then move on to the last level, Asteroid M.”

     AT least that’s the most coherent description I found of the goings-on. Anyone who grew up with the NES and it’s successors can relate to the horror of a mid-game resetting, which is why I was particularly enamored with this bit of ingenuity on the part of the developers.

     Ever vigilant in my efforts to be both nerdy AND thorough, I was curious how this oddity had been handled in the various Genesis emulators, so I did a bit of googling. It looks like it hasn’t been handled at all: “Sadly – emulators can’t emulate the soft reset function.”

     The other example of such weirdness involves a recurring character in the ‘Metal Gear Solid’ line of games – a character called ‘Psycho Mantis.’ From the wikipedia entry on Mr. Psycho Mantis:

     “When Solid Snake faces Mantis, Mantis demonstrates his psychic powers by breaking the fourth wall. In the pre-battle cut-scene, he activates the controller’s rumble feature, then reads the player’s memory card. Then, at the begining of the actual battle, Mantis yells “Blackout!” and causes the screen to go completely black except for the words Hideo (a reference to the director Hideo Kojima) in green all capital text in the top right corner of the screen, much like TV or VCR on-screen-displays. Many players mistook this to be a glitch in the game, while it was supposed to trick the player into thinking that he or someone else changed the TV or VCR input, as a slight attempt to throw the player off.

     The reading of the player’s memory card involves checking how often they’ve saved their game in reaching the battle with Mr. Mantis, and commenting on the relative wisdom or recklessness that this symbolizes. The card is also examined for specific game saves which are then commented on (“I can see into your mind. You like Castlevania, don’t you?”).

     According to various sources, the best method for defeating Mr. Matis involves configuring your memory card and controller connections, mid-game. Again, from the wikipedia entry:

     “The easiest way to defeat Psycho Mantis is to for the player to remove the memory card, plug the controller into the Player Two portal (which prevents The Parasite from predicting your battle moves) and equip both the FA-MAS and the Thermal Goggles (FA-MAS is useful for attacking Mantis with speed and power, while the Thermal Goggles prevent him from turning invisible on Snake [by detecting his body heat] and making Mantis unable to hide from your attacks). The battle should be a lot easier now, if not impossible to lose (on easier difficulties).”

     So, looking at this from a game design / programming perspective, we have the following: Leaving your controller in port 1 during the battle passes your button presses onto the logic code that controls Psycho Mantis — So he’s ‘reading your mind.’ The game will accept controls from the player 2 port without passing them on to the enemy’s artificial intelligence logic.

     This means that the designers assumed that the player would mentally extend the scope of the game they were playing to the physical space around them, based on nothing but subtle contextual hints.

     Crazy. And awesome.

Motorcyclists and Me

Scene: A few years ago, driving on I-96 towards Detroit.

     Motorcycle comes screaming up behind me on the left. Swerves into my lane, cutting me off in ridiculously-close, Hollywood-novelty style. Is that enough? No, that is not enough. Said motorcyclist proceeds to POP A WHEELIE, and stand on his back pegs. This pose is maintained for the better part of a minute. Doing 80. On the freeway. I thought I was being attacked by Ghost Rider or something.

Scene: A few days ago, driving on a main road in Ann Arbor.

     Motorcyclist swerves from behind me, presumably because I was moving too slowly for him. Upon passing me on the left, motorcyclist appears to jump off the bike proper and SIT ON HIS HANDLEBARS for several seconds, before remounting his motorcycle. How is that even possible?! Don’t you have to have your foot on a pedal or something?!

     So: for some reason, my mere presence on the road apparently compels motorcyclists to do ‘tricks.’ Needless to say, this is extremely weird. Is this some sort of “You got served!” thing that motorcyclists do? Like “I just passed you! Here’s a trick to remember me by! I served you!” Perhaps.

Playback Device within a CD Case

     A Link to Tristan Perich’s forthcoming ‘One Bit Music‘ project made the rounds of the nerdy music blogs last week. If you mouse over the image below, you can see my assumptions as to the basic breakdown of the circuit — it’s nearly identical to a circuit I used in a music box two years ago, though the IC doesn’t appear to be one of the ISD series of Record / Playback chips I’m familiar with.

     It seems this concept could easily be expanded into an even more self-contained object by enclosing some ultra-thin speakers in all that open space.

     Perich plans to release the objects with his music encoded onto the IC’s, you can sign up for his mailing list at the link above for more information.

UPDATE

     Yep, those are volume potentiometers. More here.

     MP3’s of the music accompany this Wired article about the project.