David Haywood's Homepage
MAME work and other stuff

A Month of XaviX progress

November 20, 2018 Haze Categories: General News. 3 Comments on A Month of XaviX progress

There’s been quite a lot of XaviX progress over the past month, including preliminary sound and a donation drive that allowed a whole bunch of e-kara cartridges to be acquired and dumped by both Sean and Team Europe.

The e-kara is an interesting little unit, with sequenced versions of songs contained in cartridges. It’s simple, and while there were only around 9 cartridges released in the US, and 7 in Europe (with a lot of repeated) it looks to have been a very popular system in Japan, with over 100 cartridges.

It also presents to us one of those interesting cases where world events caused a change in the software released for it. In most cases if a song appears in multiple cartridges it always uses the same background, however if you look at the US Starter cartridge, which is presumably the first US release, from the year 2000 you’ll see that Britney Spears “Stronger” contains a picture of the World Trade Center.


e-kara US Starter e-kara US Starter
e-kara US Starter e-kara US Starter
e-kara US Starter e-kara US Starter
e-kara US Starter e-kara US Starter
e-kara US Starter e-kara US Starter

By the time Volume 8 had been released, in 2002, that image was clearly deemed unsuitable, as the background was changed. The same changed background is used in the UK/EU Volume 3, also from 2002.


e-kara US Volume 8 e-kara US Volume 8
e-kara US Volume 8 e-kara US Volume 8

Interestingly the ‘Germany’ Starter pack, which contains the same songs as the US starter pack, but is from 2002, chose to use a different image again, so clearly Takara took some time to choose what they deemed was a suitable replacement. What’s also interesting about this starter pack is it’s the only cartridge we’ve seen specifically with a ‘GER’ code, so there might be a UK/EU sampler out there too that isn’t yet dumped. It’s possible the only change there will be the image used if that sampler was released slightly earlier, otherwise there doesn’t seem to be any reason to have a specific region here (unless the content of one of the other songs was deemed inappropriate and censored, I’ll have to check)


e-kara German Starter e-kara German Starter
e-kara German Starter e-kara German Starter

Emulation of the e-kara cartridges, while still preliminary, proved very useful in pointing me at a bug in my XaviX emulation that was causing some other stuff to fail during boot, of note, Star Wars. It also allowed Lord of the Rings to start playing music without crashing / filling the screen with garbage. I noticed this bug because while most e-kara cartridges ran though the songs just fine, a single Japanese one was just crashing, despite the code being nearly identical. This highlighted an error in the way data was being fetched in certain cases.

The e-kara cartridges also told me a bit about the timer hardware the XaviX has, because the UK and US/Japan cartridges use different timing methods to accomplish the same thing. While my timing is currently entirely incorrect, this at least has given me something to go on when I look at correcting it.

Neither Lord of the Rings or Star Wars gets past the ‘Swing Sword’ / ‘Swing Lightsaber’ screen, because those input devices aren’t yet mapped (it’s some kind of sensor array detecting the shiny surface of the controller to get a 3d space position and orientation, I not only need to get my head around how the game is reading the inputs, but how I’m going to map any conventional device to give it a signal that might make it somewhat usable on a PC)


Tiger Star Wars Tiger Star Wars Tiger Star Wars

Tiger Star Wars Tiger Star Wars Tiger Star Wars

Dirt Rebel MX also saw big improvements due to Lord of the Rings pointing me in the direction of some bugs with the new Super XaviX opcodes I’d implemented, with the road now being correctly rendered. It also told me that there were errors with the implementation of the math unit, which I then fixed. This also required raster interrupts, which I’d implemented for Snowboarder. The game is basically playable apart from the EEPROM saves not working correctly, looking at those is slowly becoming a top priority.


Dirt Rebel MX Dirt Rebel MX Dirt Rebel MX

I also spent some time looking at the background tilemap on Monster Truck, it uses an ‘indirect’ mode that so far nothing else does, where tile attributes (colour / flip) are stored right before the graphic data. I think I’ve got it figured out now, as all backgrounds render correctly. I also added preliminary analog steering controls (implementation needs to be improved still)


Play TV Monster Truck Play TV Monster Truck Play TV Monster Truck

After trying to work out x-coordinate handling for a while, I settled on a kludge that seems to work in all cases, meaning sprites wrap more correctly on many games, which is very noticeable in-game on Snowboarder, with the playfield looking more correct. The Nostalgia packs also benefited significantly from this.


Play TV Snowboarder Play TV Snowboarder Play TV Snowboarder

Play TV Rescue Heroes now boots too. This one was aimed at kids, so not much of a game. Strangely it’s the only XaviX product I’ve seen that fails to display either the XaviX logo or an SSD copyright anywhere; this might have been an oversight on the part of the developer as it looks very much like it was a license requirement. Some of the controls still need mapping. This also needed some sprite mode fixes as it uses a sprite mode nothing else does.


Play TV Rescue Heroes Play TV Rescue Heroes Play TV Rescue Heroes

Some addressing fixes when executing code from upper banks, and a cheap semi-random implementation of the ball controller allow both Football and Madden Football to get ingame without crashing, although without a more accurate emulation of the ball they’re not especially playable.


Play TV Football Play TV Football Play TV Football
Madden Football Madden Football Madden Football

Wild Adventure Mini-Golf can now be convinced to go ingame, although still lacks proper controls, so all shots have no power.


Wild Adventure Mini-Golf Wild Adventure Mini-Golf Wild Adventure Mini-Golf

Some tile addressing fixes solved a video problem in Ping Pong aka Table Tennis. Again no controls yet, but it’s closer to having them than it was.


connectv Table Tennis connectv Table Tennis connectv Table Tennis

The raster effects, math fixes and Super XaviX opcode fixes also helped with XaviXport Tennis. This is also the only game to be using some kind of Super XaviX bitmap mode, it uses it for the title screen and for some reason the bitmap is larger than the display. Either the game is meant to be in a higher resolution mode at this point, or it’s meant to scale down the bitmap, I need to figure out which. I know it’s in an Interlace mode, which would explain the vertical resolution, I probably have to skip lines, but the horizontal resolution difference is a mystery right now. Like the others, no controls yet, but the improvement in attract mode is significant, with the math fixes meaning the demo now plays properly.


XaviXport Tennis XaviXport Tennis XaviXport Tennis

Dragon Quest now boots to what seems to be a calibration screen due to the same fixes as Lord of the Rings and Star Wars


Dragon Quest Dragon Quest Dragon Quest

That just about covers improvements to the various XaviX based games, things like Card Night and Bass Fishing are pretty much how they were before (although the addressing bug that I fixed for e-kara etc. means Bass Fishing is now more stable and both have music that seems to play at 100x the expected speed) I’ll talk a little more about some e-kara stuff now.

While all of the regular Japanese e-kara carts (EC series, GC series) have the same basic presentation as the US / UK ones (see shots)..


e-kara Japan e-kara Japan
e-kara Japan e-kara Japan
e-kara Japan e-kara Japan
e-kara Japan e-kara Japan

..there were also some different cartridges for Japan (for example the MC and SC series) These had increasingly fancy menus, showing the full cartridge titles and custom menu presentation. There were also several other series of cartridges, some even designed for different hardware, or multiple types of hardware, but we don’t have any dumps of those.


e-kara Japan SC Series e-kara Japan SC Series e-kara Japan SC Series
e-kara Japan SC Series e-kara Japan SC Series e-kara Japan SC Series
e-kara Japan SC Series e-kara Japan SC Series e-kara Japan SC Series
e-kara Japan SC Series e-kara Japan SC Series e-kara Japan SC Series
e-kara Japan SC Series e-kara Japan SC Series e-kara Japan SC Series
e-kara Japan SC Series e-kara Japan SC Series e-kara Japan SC Series
e-kara Japan SC Series e-kara Japan SC Series e-kara Japan SC Series
e-kara Japan MC Series e-kara Japan MC Series e-kara Japan MC Series

That brings us on to some less positive news. While we can potentially dump and document all the released e-kara cartridges, and those for similar systems, assuming we can get hold of them there are some things that have likely already been lost to time. It seems that between 2003 and 2009 Takara sold an e-kara WEB unit. We picked up one of these and it’s a device, with an e-kara cartridge that connects to a PC. On the PC you downloaded (or it was supplied with, but we don’t have) a piece of software that connects to a web service in order to download songs and transfer them onto the e-kara WEB cartridge. Presumably copying them to Flash ROM as there doesn’t appear to be a battery. It looks like many hundreds of songs were released this way, but it also looks very much like the service no longer exists, so no songs can be downloaded.

The cartridge we picked up is apparently empty, most of the ROM is blank, and it shows no songs on either an e-kara unit, or under emulation.


e-kara Web cartridge e-kara Web cartridge e-kara Web cartridge

Now, assuming it is a flash mechanism, it’s possible there are cartridges out there where people have downloaded songs onto them, which could be dumped to preserve that data, but unless somebody knows what they have we can’t just start buying up random e-kara Web cartridges in the hope that they contain something. The sheer number of songs, and limited capacity of the cartridges also surely means some things are going to be lost even in the best case of people donating old cartridges to us. I could be wrong about the service no longer being available, but the website listed on the title screen no longer resolves, and I can’t find any software to attempt to connect.

The Internet Archive has various snapshots of the Takara sites right up to 2009, including the e-kara Web one, but there appear to be no downloads, presumably because you had to download through the software.

Sean even kindly scanned the e-kara Web manual, but it doesn’t seem to contain anything to help us here.
e-kara WEB manual 1
e-kara WEB manual 2
e-kara WEB manual 3
e-kara WEB manual 4
e-kara WEB manual 5
e-kara WEB manual 6
e-kara WEB manual 7
e-kara WEB manual 8

So it’s most likely we’re going to have to accept that a lot of content for this system has been lost, because it was download only, and that’s only going to become a bigger problem in the future with so many products switching to that model; it’s one of the biggest dangers to keeping our digital history alive, things are lost with the flip of a switch that could happen at any moment.

On a more positive note, we did pick up a few other XaviX things, and they’ve turned out to be easy enough looking cases for Sean (they have pads near the ROM to solder onto for dumping) so hopefully he’ll find time to dump them and we’ll have a little more evidence contributing to improving the emulation, so far everything that’s been dumped has helped tell us something about the platform.

— some videos of recent progress related to the article
https://www.youtube.com/watch?v=hSbDMOa7N7s Monster Truck
https://www.youtube.com/watch?v=3JulMHjbpIQ Namco Nostalgia 1
https://www.youtube.com/watch?v=Aj8Fyxmbbko e-kara (cartridge ‘SC0005-SAI’)
https://www.youtube.com/watch?v=rA_eWOeL9QE XaviX Tennis
https://www.youtube.com/watch?v=5jmR1fPWLao Dirt Rebel MX
https://www.youtube.com/watch?v=X43j8QJJR2U Lord of the Rings
https://www.youtube.com/watch?v=VMAf1H8uoZ4 Star Wars

Go to article.. »

Expanding the (emulated) Mappyverse

October 19, 2018 Haze Categories: General News. 10 Comments on Expanding the (emulated) Mappyverse

I’ve continued to poke around at the XaviX emulation and figured out what was preventing the Namco Nostalgia 1 TV game from running. Namco Nostalgia 1 contains Mappy, Xevious and arranged versions of said games.

(technical reason, the lda ($0a), y style instructions are expected to fetch the pointer from zero page ram, but the actual data pointed to needs to be fetched from ROM, at least for upper banks)

The Nostalgia collections also make aggressive use of the screen clipping registers, for whatever reason in the Mappy remix the developers decided to clip the house to a single pixel at each side of the playfield, even if the full house is present in the graphics. I implemented the clipping based on other games, but it seems like I was clipping a pixel too much off the left side, so in the video I recently uploaded the left border is missing. Not clipping that column of pixels does result in an unwanted space where you can see the background between the status bar and left edge in Snowboarder, but I have a feeling that would happen on hardware, and Mr. Do’s videos of the Nostalgia games are of far higher quality than any of the Snowboarder (non SSX version) so I’m going with what the better videos show as evidence.

Interestingly the high score handling on both the Mappy games in this collection appears to be broken, showing the high score as ’00’ or ‘000’ in / when the high score table is presented rather than the true high score. I thought this was an emulation bug, but again checking Mr Do’s original hardware videos the exact same thing happens there. I’m not sure what happens if you beat the real score, possibly that fixes it, unless high scores simply don’t work at all?

Below are some screenshots of the boot screens and the arranged Mappy game, which plays like an Arkanoid style game where holding the button down at the right time gives you extra jump height (but don’t do it 3 times in a row as your rope changes colour and will snap if you attempt to do a high jump while it’s red)


Namco Nostalgia 1 Namco Nostalgia 1
Namco Nostalgia 1 Namco Nostalgia 1
Namco Nostalgia 1 (Mappy) Namco Nostalgia 1 (Mappy)
Namco Nostalgia 1 (Mappy) Namco Nostalgia 1 (Mappy)
Namco Nostalgia 1 (Mappy) Namco Nostalgia 1 (Mappy)
Namco Nostalgia 1 (Mappy) Namco Nostalgia 1 (Mappy)

The Xevious arrangement takes the form of a flag collection / bombing run style game, where you’re rushing to the end of stages against a clock with various things slowing you down rather than outright killing you.


Namco Nostalgia 1 (Xevious) Namco Nostalgia 1 (Xevious)
Namco Nostalgia 1 (Xevious) Namco Nostalgia 1 (Xevious)
Namco Nostalgia 1 (Xevious) Namco Nostalgia 1 (Xevious)
Namco Nostalgia 1 (Xevious) Namco Nostalgia 1 (Xevious)
Namco Nostalgia 1 (Xevious) Namco Nostalgia 1 (Xevious)

The classic versions of each game run too


Namco Nostalgia 1 (Mappy) Namco Nostalgia 1 (Mappy)
Namco Nostalgia 1 (Mappy) Namco Nostalgia 1 (Mappy)
Namco Nostalgia 1 (Xevious) Namco Nostalgia 1 (Xevious)
Namco Nostalgia 1 (Xevious) Namco Nostalgia 1 (Xevious)

Fixing the bug that was causing Namco Nostalgia 1 to not boot also allowed Radica’s Baseball 2 to show some screens, although I haven’t got the analog inputs hooked up, so it isn’t yet playable.


Radica Baseball 2 Radica Baseball 2
Radica Baseball 2 Radica Baseball 2

Adding EE-PROM support allowed Excite Fishing to show a few more screens, before moaning about the EE-PROM again because presumably my hookup is still incorrect (the Nostalgia games no longer moan either, but don’t remember your changes properly even if they do write them to the EE-PROM)


excite fishing DX excite fishing DX

I also started looking at the Super XaviX a bit, which needed additional opcodes etc. implementing in the CPU core. The most impressive progress with that one is Dirt Rebel MX, where the menu screens are fully functional, and the game even seems to control, but graphics need work (definitely needs raster interrupts for the road rendering)


Dirt Rebel MX Dirt Rebel MX
Dirt Rebel MX Dirt Rebel MX
Dirt Rebel MX Dirt Rebel MX
Dirt Rebel MX Dirt Rebel MX

XaviXport Tennis also reaches ingame, although again probably needs raster interrupts to do the linescroll effect on the court, and also has no working controls other than a single button to advance through menus. This also runs in an interlace mode and sends the fields on alternating frames, which means the entire image shakes ups and down at the moment, I’ll probably have to figure out a ‘clean’ way to deinterlace and render in a higher resolution otherwise it’s migraine inducing.


XavixPort Tennis XavixPort Tennis
XavixPort Tennis XavixPort Tennis
XavixPort Tennis XavixPort Tennis
XavixPort Tennis XavixPort Tennis
XavixPort Tennis XavixPort Tennis

Lord of the Rings shows some stuff, but appears to use DMA in a strange way, and doesn’t transfer a valid palette (and goes no further than these screens)


Lord of the Rings Lord of the Rings

Dragon quest does similar also expecting a weird DMA behavior, but gets stuck on this screen instead (it does actually upload a palette, but I’d hacked up palette use for making the previous screenshots and not restored it)

Dragon Quest

Star Wars seems to make more extensive use of the custom opcodes and is currently not showing anything.

Go to article.. »

Slapping a Tiger would be a poor life choice

October 12, 2018 Haze Categories: General News. 13 Comments on Slapping a Tiger would be a poor life choice

I’ve been doing a bit of work on the XaviX emulation in MAME (technology used by a number of Plug and Play TV Games) and in that time I’ve made some decent progress with the emulation. While still far from perfect (some graphical problems, no sound, poor performance) I feel there has been enough progress to show some of it here. Some of the most noteworthy things using the hardware are the Taito / Namco Nostalgia collections which were released in Japan in 2006.

Taito Nostalgia 1 contains “Slap Fight” and “KiKi KaiKai” and remixed versions of them.
Below is the remix version of Slap Fight which mixes Slap Fight with another classic, Tiger Heli, giving you the Tiger Heli ship instead of the regular Slap Fight one. Due to the compressed screen size this version of the game is very difficult. The KiKi KaiKai allows you to play as the main character from Bonze Adventure instead.


Taito Nostalgia 2 Taito Nostalgia 2
Slap Fight Tiger Slap Fight Tiger
Slap Fight Tiger Slap Fight Tiger
Slap Fight Tiger Slap Fight Tiger

Namco Nostalgia 2 contains “Gaplus” and “Dragon Buster” again with remixed versions.
Below you can see the Gaplus remix “Gaplus Phalanx” where instead of shooting things you must capture the grey enemies while avoiding capturing the red ones (and not hitting anything in the process)

Namco Nostalgia 2 Namco Nostalgia 2
Gaplus Phalanx Gaplus Phalanx
Gaplus Phalanx Gaplus Phalanx
Gaplus Phalanx Gaplus Phalanx

Taito Nostalgia 1 contains “Legend of Kage” and “Gladiator” plus the usual remixes of them. Below is Amazones, the remix of Gladiator. Note, with current emulation missing the EEPROM support the key assignments are invalid by default and get lost every time you exit the game, but they can be assigned each time.

Taito Nostalgia 1 Taito Nostalgia 1
Amazones Amazones
Amazones Amazones
Amazones Amazones

Namco Nostalgia 1 still doesn’t run properly, so no shots from that one at the moment.

Outside of Japan the XaviX technology was used mostly by games with novelty controllers. Progress has been made on the emulation of some of those too.

Graphics were much improved in Radica’s Play TV Boxing, menus now look solid, priorities are correct, sprites fill the screen properly etc.


Radica Boxing Radica Boxing
Radica Boxing Radica Boxing

Radica’s Bass Fishing game no longer crashes when you enter gameplay, and no longer has corrupt text in the menus. Inputs aren’t fully mapped yet tho.


Radica Bass Fishing Radica Bass Fishing
Radica Bass Fishing Radica Bass Fishing

Radica’s Card Night no longer crashes upon reaching the main menu, and has more correct graphics. The glitch where it rendered a corrupt menu over the startup screens is gone too.


Radica Card Night Radica Card Night
Radica Card Night Radica Card Night

The Radica Madden & Football games now show their startup screens (EA license screen on Madden, Farsight developer screen on Football) and also prompt the player to throw the ball (not emulated) to start, rather than crashing at that point.


Radica Madden Radica Madden
Radica Football Radica Football

The e-kara things now have a scrolling screen and colours that aren’t garbage (although no inputs exist to get past this screen) and the Fisher Price ‘Rescue Heroes’ shows a startup screen now before crashing. Excite Fishing DX moans about the EEPROM.


e-kara Rescue Heroes
Excite Fishing DX

Wild Adventure Mini Golf shows some startup screens before getting to an animated display asking you to swing the club to start (not hooked up)


Wild Adventure Mini Golf Wild Adventure Mini Golf

Radica’s Baseball 2 shows it’s secret test menu, and also a startup screen, but crashes after showing the Radica Logo


Radica Baseball 2 Radica Baseball 2

Radica’s Ping Pong now boots, although you can’t serve.


Radica Ping Pong Radica Ping Pong
Radica Ping Pong

Radica’s Monster Truck has improved priorities (although controls still aren’t hooked up)


Radica Monster Truck Radica Monster Truck
Radica Monster Truck Radica Monster Truck

Snowboard has some minor improvements but still needs the raster interrupt hooking up for the ground


Radica Snowboarder Radica Snowboarder

While many of these still aren’t playable the progress over the last few days has taken most of them from doing almost nothing to looking much more like what they’re meant to be, and a much better picture of the overall hardware.

None of this would have been possible without Sean Riddle dumping the majority of these titles and Peter Wilhelmsen purchasing many of them for that purpose.

Go to article.. »

Little Changes (part 2)

October 2, 2018 Haze Categories: General News. 19 Comments on Little Changes (part 2)

The Steel Force changes mentioned in the previous update didn’t make 0.202, but should be in for 0.203, but I wanted to take this opporunitiy to highlight some more small changes that will be also be in 0.203.

I said before it’s not always ‘low profile’ titles that get fixes, and the last week or two has seen some bug fixes to better known titles that are just as important.

First I’ll start with CPS3, and a long-standing bug with the combo meters in JoJo’s Venture / JoJo’s Bizarre Adventure. This is one that back in the day I didn’t really put any research into due to unwanted attention and misuse of MAME for commercial bootlegs, but given that its been 10 years, the hype has died down and people still wanted to see it fixed, I decided to give it a look.

Actually a fairly simple problem. The game is only capable of displaying one Combo counter at a time, draws them off screen and uses ‘rowscroll’ to ‘bounce’ them into the display, so not only was the 2nd combo meter missing (because it never got scrolled on) but the ‘bounce’ on the Player 1 side was missing too, which was a dead giveaway for what the problem was. I was actually looking at CPS3 already with a view to fixing some of the palette manipulation effects in the later (P2 side) stages of Red Earth so fixing this was just sidetracking a bit. I might do an update about the palette stuff in Red Earth if I figure that out too.


JoJo's Venture
JoJo's Venture JoJo's Venture
JoJo's Bizarre Adventure
JoJo's Bizarre Adventure JoJo's Venture

The next piece of work isn’t mine, but that of Mooglyguy (Ryan Holtz) and happppp. This concerns the ‘Mirror Mode’ in Rave Racer (as well as the rear view mirror and a number of elements in other System 22 games)

To active mirror mode you should enter a code during the 3-2-1 countdown at the start of a race. Once this countdown appears, quickly turn the steering wheel RIGHT then RIGHT again, then press the BRAKE and GAS pedals together. If done correctly the display will instantly flip. To do it in MAME without analog controls you’ll want to set the digial speeds, sensitivity and auto-center speed on all the controls up high (100 did the trick for me)

Previously the mirror view did not properly flip the screen, but instead acted like the screen was flipped without showing the effect, meaning it basically just played with reversed controls and the speedometer needle in the incorrect position. Mooglyguy researched the issue, and happppp worked out how to implement it in the driver. Some optimizations were made at the same time meaning the driver also performs a bit better than it did before.


Rave Racer
Rave Racer Rave Racer
Rave Racer Rave Racer

So there you go, two fixes to the emulation of some better known platforms that will be in MAME 0.203 and higher.

Not covered here in pictures, but equally important are some changes smf has made to the Playstation GPU emulation, fixing bugs in Silent Hill (non-arcade) as well as Psyvariar, the latter which was rendering the game near unplayable on later levels due to intense flickering of the background graphics (that fix is in 0.202) Again this is a ‘higher profile’ change due to the popularity of the home system and because many popular arcade titles made use of Playstation based hardware. The Psyvariar fix is timely too because of the massive improvements in the sound emulation the driver received recently (far surpass anything that could be classed as ‘Little Changes’)

Go to article.. »

Little Changes

September 10, 2018 Haze Categories: General News. 22 Comments on Little Changes

It always annoys me when I read people making claims that there are only a ‘handful’ of fixes in the newer MAME versions compared to those that people are running on awfully underpowered devices like the Raspberry Pi; versions so old you’ll be stretched to find any active developer who even considers them to be the same project as MAME anymore.

Most of those versions are based on versions somewhere between 15 and 20 years old, and it would be more accurate to say there have been a handful of fixes every single week since then, many graphical, many directly affecting how the games play. The recent work done on the emulation of various protection chips is a good example of where the older versions are going to have fundamental gameplay flaws, with Operation Wolf in 0.201 being the latest in a long line of example.

The Super Shanghai Dragons Eye fixes mentioned in a previous post are also an example of an improvement that might otherwise slipped under the radar, and the post before that about Chrono Soldier shows how documentation of what’s what in those older versions is wrong too, with them presenting what turned out to be a prototype as the final game.

It doesn’t stop there tho, Steel Force is a game I emulated for MAME 0.58, which was released on 05 Feb 2002. I was watching one of LordBBH’s MAME Roulette streams where he ended up playing the game and noticed that on one of the levels there was a priority bug. I hadn’t noticed this issue before, so I’d never considered fixing it. Having noticed it, I decided to take a look at making a few improvement to the driver, and ended up fixing the priority bug while also improving some scene transitions I noticed were faulty too.

It’s subtle, and a lot more obvious when in motion because they move at a different speed, but the screenshot on the left has some ugly ‘oil’ bubbles over the ground, which should be part of the background and hidden under the ground layer.


Steel Force Steel Force

There are still potentially some alignment issues with the game, as a few scenes do still look a little rough at the edges of the screen, but such bugs are commonly found in games due to safe areas, overscan and the like. The ending text for example doesn’t quite fit with the current visible area / alignment. This may, or may not be a bug in the original game, it doesn’t look like a great deal of effort was put into this screen, the developers even managed to misspell the title of the game as ‘STEELF FORCE’ The problem is there are very few high quality original resources for these games to use as reference.

Steel Force

So, anyway should you want to experience this game without ugly scene transitions and without the priority bugs, 0.202 or higher is going to be required.

Other little changes have been made over the last week or so too. I emulated a game called Pitapat Puzzle (which I need to write about at some point) and that allowed me to fix some video banking issues in later levels of the ‘Die Break’ game in ‘Bestri’ which is actually one of the most genuinely enjoyable Korean breakout clones. The bonus stages take the form of a Space Invaders style round, and if the ‘Girls’ dipswitch is enabled, are meant to show some non-erotic artwork rather than the usual grassy fields etc. Not only was the banking incorrect, but the later graphic ROMs weren’t even being loaded correctly. This one has been incorrect since MAME 0.113u3 (22 March 2007) which is when it was first added, and I had no solution to the tile banking at the time.

Left is MAME 0.201 and below, right is what will be in MAME 0.202 and higher.


Die Break (Bestri)
Die Break (Bestri) Die Break (Bestri)
Die Break (Bestri) Die Break (Bestri)

Anyway, there’s a common theme with these things. On the surface the games appeared to be just fine, you could fire them up, and play them, with no obvious issues in the first 10 minutes of play, but once you started to get a bit further into the games you’d encounter an increasing number of problems.

For Super Shanghai you’d have to complete a handful of stages to get to the glitched cutscenes and priorities, for Steel Force you’d have to complete a bunch of levels to get to the broken priorities, for Die Break (Bestri) you’d have to complete 9 stages to see the issue. For Chrono Soldier you’d have to know about the game, and complete at least 3 stages for it to become apparent that the old version is massively incomplete. For Operation Wolf you’d have to play the game, possibly even reach right before the final boss to see it glitch out (although if you were using anything more than a year old the problems were significantly worse)

These are all little changes from an end user point of view, but when you consider that (aside from Operation Wolf) they’re things that a single developer has fixed in the space of roughly a week then multiple that by the number of developers, then further multiple by the number of weeks old each MAME version is and you can see how quickly the number of bug fixes adds up, and how it’s far more than a just a handful. The older versions aren’t “good enough” they’re downright awful for any serious use.

I get the novelty value of running the ancient versions on old devices, I get that it’s ‘cheaper’ etc. (although I find that debatable, as a Pi3 is 6 times slower in benchmarks than a throwaway 9 year old 3Ghz Core 2 Duo) but I still find it frustrating that people are recommending such versions and hardware for serious MAME builds. Once anybody starts playing on one, even running just the classics, you start to hit a mountain of bugs even if on the surface they look ‘good enough’

Sure there are regressions in new versions too, and some of those do frustrate me, but the overall trend is towards many more things working better, and regressions do get fixed.

A lot of the progress in MAME doesn’t get detailed writeups (because really, we’d rather be fixing things and improving the emulator) but it’s still there, happening all the time, just like the stuff I have covered here.

Go to article.. »

A Pile of Tiles, Correctly Ordered

September 5, 2018 Haze Categories: General News. 6 Comments on A Pile of Tiles, Correctly Ordered

Around 5 years ago MAME 0.150 was released (17 September 2013) and in this release was a rewrite of the Data East protection chip handling, which allowed many previously problematic games that ran on Data East hardware to run without hitting protection related issues. To me it was one of the biggest advances in emulation at the time because quite a number of games made very devious use of the protection.

At that time there were two sets of Super Shanghai Dragon’s Eye dumped. The first was an English language bootleg that partially worked, but appeared to have buggy code where the bootleggers had missed protection checks and not reworked certain elements for the bootleg hardware properly. The emulation was imperfect, and trying to figure it out wasn’t helped by being unsure which bugs were emulation bugs and which were errors that would happen in the actual bootleg.

The second set was a Japanese set of the original game, which prior to the Data East protection work previously mentioned, had not worked properly either as various protection checks were failing.

Once the new protection code was in the Japanese set became playable, but had a number of graphical problems, and it wasn’t 100% clear how things hooked up because the existing hookups in the driver were based around the bootleg, which wasn’t quite the same as the original hardware, and some bad assumptions had been made.

While the game worked well enough to be marked as ‘Working’ in MAME the palette and priority issues were annoying, however, due to interests wavering, the driver got put on the back-burner and remained there ever since.

A recent dump of the original, non-bootleg English language set however prompted me to go back and look at the driver, and looking at it with fresh eyes I was able to spot some really quite obvious errors and reimplement the priority and mixing in a way that actually works for all situations.


Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye

Left old emulation, Right new emulation

MAME 0.201 and below MAME 0.202 and above
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye
Super Shanghai Dragon's Eye Super Shanghai Dragon's Eye

The emulation of the bootleg was also improved, and benefits from the priority fixes, however there are still a number of other glitches, such as it not clearing the text in certain situations, and hanging at the end of the intro text until you press a button in quest mode. These appear to be cares where the bootleggers failed to deal with the protection properly as previously mentioned, so very likely happen on the bootleg hardware too.

Interesting note unrelated to the emulation: using the infinite ‘helper’ cheat isn’t actually very useful as the game always ends up recommending the first pair it finds, not the best, which inevitably leads to you failing levels.

and yeah, I know it’s a Shanghai tile matching game, and everybody seems to hate those these days, but all drivers need attention :-)

Go to article.. »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close