►Arcade Emulation or a quick time travel to 90’s video game world

I’ve always been a fan of those arcade games from the old days (you know, those big game consoles from mid-90’s you used to see in many bars where you’d insert a coin and play one of many games? I’ve spent quite a few great moments with these consoles when I was younger… Now they are beginning to get rare, unfortunately…).

So, I wanted to be able to play them on my computer, especially now that I have a new laptop and a nice Ubuntu 12.04 install already tweaked “al gusto”. I’d already done it once, some years ago, so I knew the basics about arcade emulation and even remembered the names of some programs. Then I updated my operating system, changed the pc, so I lost all of it. But in the world of technology, things progress very fast, so when I first started looking again, it wasn’t easy to find. It took a little research, especially because the first program I found (and works quite well) is not able to play one of my favourite games (normally each emulator has a list of compatible games – that often grows over time but almost never reaches the total of all games ever created for certain arcade platform). That’s why I wanted to share my findings, so I might make life a little easier for someone having the same interest.

First, a little about the arcade platform for which I was looking for emulation:

It is a ROM-cartridge based arcade board called NeoGeo and was made by japanese company SNK and was produced from 1990 until about 1996 when it was substituted by more modern products. Many popular games were released for this platform.Here’s the Wikipedia article.

NeoGeo Arcade Machine
NeoGeo Arcade Machine

The first program I found was gngeo (http://gngeo.berlios.de/), it is quite well known in the Linux emulation world and quite mature and easy to install (some distros even have it in their repositories, that’s how I installed it – along with the graphical frontend xgngeo which makes this emulator very nice and easy to use). I especially like the ease of installation and usage aswell as the graphical frontend. It also is light-weight and seems to work quite well (until now only tested with two games, though), supporting quite a few configurations without getting too complicated.

Unfortunately, it doesn’t run SuperPang, though. Not even the “normal” Pang. Tried to create rom driver files for it (without knowing much, obviously failed…). You don’t know Pang? It’s that great little game where you have to split some “colourful objects” (normally spheres) until they can’t be splitted anymore and disappear. When all objects have been splitted and disappeared, you go to the next level. But if you’re hit by one of them, you lose a life…

Super Pang (game flyer)
Super Pang (game flyer)


I continued my research and found (or “re-discovered”, because I had used it before but didn’t remember) MAME (http://mamedev.org/) and its “derivatives” or ports or whatever you want to call them. This program is a large project (at least regarding number of code lines) because the acronym stands for Multiple Arcade Machine Emulator. One of them is the NeoGeo platform.

The first port I installed (can be found in Ubuntu’s repositories) was the sdlmame port. It does work, and runs Super Pang. But it does NOT feature any of the scale improvement filters which I really, really wanted to have (and which gngeo does feature and I also remembered them from first time I explored the world of emulation). They come with names like hq2x, scale, hq3x, lq2x, etc., and they work by interpolating the image when scaled, thus improving quality (=less rasterization) like explained in this Wikipedia article.

This is very important for me, because most arcade games were made with very low resolutions and today’s screens have high resolutions, so the only choice would be to play a tiny windowed game or to scale with full rasterization (which looks awful).

So I thought: I have to find a emulator capable of playing SuperPang but also of rendering video with a high quality scale improvement filter.

After some research, and having discovered that the xmame port (which I had used some years ago) had died a slow death (and wasn’t mantained anymore), I stumbled on AdvanceMAME ( http://advancemame.sourceforge.net  – also not very active nor mantained, but still very available and quite mature).

This is a port optimized and changed so that it supports many, many video modes, even totally weird ones, designed to drive directly real arcade CRT monitors. Or anything you like. And it also has the hqx algorithms, aswell as many other filters, included by default. All this, obviously, makes the program quite complicated to configure. It’s not in any modern distro’s repositories, AFAIK. But fortunately, it is easily available and compiles without hassles and doesn’t need too much support libraries. So I managed to install it with success. But then I still had to figure out configuration. After reading through lots of documentation and searching the net, I found the necessary options (for the config file which is – at least on my system – located in .advance/advmame.rc in my home directory) and list them here, for your delight (:D) :

To get sound working, I had to use these options:

device_alsa_device dmix
device_sound sdl

Video options (I have a widescreen laptop):

device_video_output fullscreen
device_video sdl
display_aspectx 16
display_aspecty 9
display_expand 1.2
display_magnify 2
display_mode sdl_1366x768

And finally, for the hqx filter to work correctly, I have to use this:

display_resize integer
display_resizeeffect hq

Image format is a little bit distorted (the display_expand tries to correct this, but 1.2 isn’t the 100% correct value, although close), but quality is great, emulation works fine and quick and games are totally playable.

Success! 😀

Another great game I like to play, by the way, is Metal Slug. Here, you are the hero who has to progress in a virtual world full of unfriendly (though stupid) soldiers and their tanks, machines, buildings, planes, etc, all of them being the army of some crazy dictator inspired by Adolf Hitler and you have to kill them all – with obviously extremely powerful weapons and fantastic little funny details in the middle.

Metal Slug
Metal Slug (game flyer)

This is also the game I used for comparing the emulation of gngeo and mame. This is what I found:

Sound is much better in Advancemame.

Video performance is similar in both.

Image quality is also very similar, although gngeo seems to have a tiny bug: about 10% of the image on the left and right side is cut away.

Screenshots (made with digicam because I couldn’t take real screenshots):

Metal Slug (under AdvanceMAME)
Metal Slug (under AdvanceMAME)
Metal Slug (under gngeo)
Metal Slug (under gngeo)


Super Pang (AdvanceMAME)
Super Pang (AdvanceMAME)

(just a final notice: for those who don’t know arcade emulation, you might have been wondering how and in which form you get the games themselves. They come in so called “ROM-dumps”, normally in zip files, which is basically a dump read from the original ROM cartridges. They can be found on the internet, but due to their “slightly dubious” legal status (remember they are “copies” of original, paid and copyrighted products) I can’t give you any direct links. Try searching for neogeo roms in google.)


►FMM Sines 2012 – the aftermath

First of all: the few (but invaluable) fellow readers of my blog might have been wondering if this blog has died a premature death. No, not at all, fortunately I can assure you, my friends, that it is not dead. This post can be taken as a factual proof, right?

On a more serious note, I can explain the long absence from posting (two months): in July I had to take care of the last (but most complicated and most stressing) tasks related to my job as a music teacher in public school, like preparing exams, watching some more exams and judging some more exams, again. And add to this the usual meetings. On the other hand, me and my wife had to take care of moving out of our (temporary – that is, for one school year) home. At the beginning of this year, we promised each other we would NOT take more stuff than we needed into this home, but I guess we failed a little. About three cars went full with stuff. In the meantime, the month was coming to an end and finally, we had some (very) deserved holidays, of which we spent two days at Sines.

Sines is a rather smallish town at the portuguese west coast, something like mid-way between Algarve and Lisbon. Normally it is known for its very important international harbour and its petrol raffineries. On another hand it also has a nice beach and pitoresque streets and houses, as well as an old castle to offer. But more important than all this (at least for me):

It is the setting of FMM (“Festival de Músicas de Mundo“: something like World Music Festival).

I’ve already been there two years ago and became instant fan. Absolutely great venue, very nice atmosphere, nice people, no stress or hectic masses of audiences (although it does get really crowded) and fantastic choice of bands and musicians from all around the globe. So, I had to come back this year, and will try to go almost every year, too.

This edition, I managed to attend the following concerts:

Portuguese traditional music meets the classics from Brazil with the very musical and alternative interpretation of two brazilians who came to Portugal:  Luanda Cozetti (vocals) and Norton Daiello (bass) with the help of Ruca Rebordão (percussion) and José Peixoto (guitar) recreate their own versions of all-time classics and also some originals of their own, where they play from soul to jazz-funk.

Bosnian band emerging from the ashes of civil war and becoming one of the most popular projects in eastern europe, mixing folclore with reggae, hiphop and plain, hard and noisy rock. Original and interventional lyrics paired with strong rhythms.

This promising project from Argentina might be one of the best examples for the modern state of Tango, aware of the traditions but inspired by the crowded and uncensored life on the streets of Buenos Aires, taking their tools from Jazz, Rock and even contemporary instrumental composition.

A very talented lady from Mali who grew up with the ancestral blues music from the Wassolou region and although having started as an actress, never stopped believing in herself and made her dream come true: become an internationally known singer.

All members of this ensemble from Republic of Congo have some kind of physical handicap, in fact most of them appear on stage in wheel chairs, making this project a great demonstration of courage and winning the most difficult adversities in life.  Their music, pairing traditional rhythms with Funk and Rumba, won’t leave anybody indifferent.

A portuguese Folk-Rock project with unusual compositions and also a unusual line-up: from a Hurdy-Gurdy (strange instrument, but sounds great… look here if you don’t know what it is: http://en.wikipedia.org/wiki/Hurdy_gurdy) to traditional flutes, bagpipes, concertinas, mandolin and “cavaquinho“.

Definitely the best concert of all, and one of the greatest I’ve ever been at. Absolutely soberb performance, great musicianship and perfect sound. Stunning. I’ve already dedicated one chapter of my series “Alternative Music Lounge” to Dhafer, check it out here for more details. That’s also why I include the video-report of the actual concert he gave at FMM Sines 2012, rather than one of his music videos, those you can find on the article or directly on youtube.

In 2010 (at FMM as well) I heard for the first time one of the very special “throat-singers” of the Norwegian Swami people (Wimme), now it was time to hear Mari Boine, also representing these unique Shaman music traditions.


And that’s it. I wish I could have stayed longer… See you next year, FMM Sines!