- 0 replies
- 1,720 views
- Add Reply
- 1 reply
- 1,456 views
- Add Reply
- 0 replies
- 1,938 views
- Add Reply
Haze WIP

Simple Bugs..It amazes me sometimes how much users of MAME moan and complain about certain bugs, when if they simply put a fraction of the effort they do complaining into trying to fix the bug then they’d almost certainly be able to fix it.
Mysterious Stones has been broken since around MAME 0.77u2. There are a few bad tiles near the start of the first levels, and by the 2nd level it’s apparently unplayable.
I took a quick glance at the vidhrdw/mystston.c file in MAME and saw the following code.
WRITE8_HANDLER( mystston_videoram_w )
{
if (videoram[offset] != data)
{
videoram[offset] = data;
tilemap_mark_tile_dirty(fg_tilemap, offset & 0×3ff);
}
}
WRITE8_HANDLER( mystston_videoram2_w )
{
if (videoram[offset] != data)
{
mystston_videoram2[offset] = data;
tilemap_mark_tile_dirty(bg_tilemap, offset & 0×1ff);
}
}
the error stands out a mile, even if you’re not a programmer an error like that shouldn’t be too hard to fix. The mystston_videoram2_w handler is broken. As an optimization the code is meant to check if the contents of videoram is the same as the value being written to it, and then only write it if it isn’t the same. The mystston_videoram2_w handler is checking the wrong video ram. The bug was obviously introduced as the result of a simple copy & paste error.
fixing the bug simply involved changing
if (videoram[offset] != data)
to
if (mystston_videoram2[offset] != data)
in WRITE8_HANDLER( mystston_videoram2_w )
A _very_ simple one line fix. The source is available so people can make fixes like this.
>> Before and After pictures HERE.
GameEx 5.96 released
Dualis 20.1 released

2006-04-21
* GPU: Fixed some texture transparency problems
* GPU: Fixed some bugs when rendering 16-color rotoscale OBJs
* GPU: Fixed some bugs when rendering extended palette rotoscale BGs
* MMU: Added experimental SPI touchscreen handling
* MMU: Fixed some bugs in the handling of long filenames in the FAT
* GUI: Improved timer event handling a bit
* GUI: Fixed .zip loading
* GUI: Added support for .7z loading
The SPI touchscreen handling is not perfect yet and only works somewhat, so the old faked method is still used as a fallback for homebrew ROMs using libnds.
>> Get it HERE.
MAME dats for 0.105u2

Mameinfo.dat v0.105u2 -> http://www.mameworld.net/mameinfo/
History.dat 1.06k -> http://www.arcade-history.com/
Info.dat.105u2 -> http://www.hawq.dsl.pipex.com/mame32Hp4.htm
Story.dat and Mamescore.ini -> http://www.arcadehits.net/mamescore/home.php?show=files
Wayder cheat file 0.105u2 -> http://wayder.hp.infoseek.co.jp/cheat/index.html