Bug identified in MFR/DSK2ROM

Por shram86

Expert (95)

Imagen del shram86

01-06-2019, 20:04

If anybody knows how to get in touch with Manuel or Vincent van Dam, please let them know.

I have a Sony HB-F1XD (MSX2, not the -J 2+ model) and have been running everything from a MFR SCC+ SD w/ 512kb expander and FM-PAC for music.

I noticed quite a few issues loading dsk files using opfxsd, so I've been using SofaRun as my primary loader. This was working fine until I started developing my own music for my own game, using MoonBlaster, and also attempted to play a) Awakening and b) every game by Kai Magazine -- none of them loaded and with bizarre errors.

By pure coincidence, the only version of MoonBlaster that works on my unit using MFR on a .dsk is the 1.4 BASIC version available from this website. The newer updated version from MSX-Banzai does not work at all, unless I keep the files in a folder (without a dsk image), disable the mapping using MAP.COM from A:\BIN\, and then run them after returning to BASIC.

I'm told the dsk emulation by MFR is based on DSK2ROM. All of Kai's games use DSK2ROM, which is obviously why they are having the same issue - there has to be a conflict somewhere.

If any of you have had trouble running homebrew games using the MFR, or loading .dsk images period, then it's more than likely due to this glitch. The only way to bypass it afaik is by using the steps above - extract the files to a folder on the SD card, run MAP.COM, and then exit to basic and load the files normally without the mapper.

(huge thanks to Discode @ the MSX development discord for working with me to identify this issue.)

Login sesión o register para postear comentarios

Por Hydragon

Paladin (697)

Imagen del Hydragon

01-06-2019, 21:29

I almost never use opfxsd for loading dsk images, sofarun also has a lot of issues with several disks, but that's fine since alternatively I use emufile. you might want to take a look into that one as well Wink it's in the root of the MFR folder normally.
I mainly use opfxsd for rom loading if sofarun doesn't work.

Por shram86

Expert (95)

Imagen del shram86

01-06-2019, 21:54

Hydragon wrote:

I almost never use opfxsd for loading dsk images, sofarun also has a lot of issues with several disks, but that's fine since alternatively I use emufile. you might want to take a look into that one as well Wink it's in the root of the MFR folder normally.
I mainly use opfxsd for rom loading if sofarun doesn't work.

That's good to know, thanks Smile

Por Meits

Scribe (5650)

Imagen del Meits

02-06-2019, 01:37

The Kai games should work if you flash the game like this:
opfxsd FILE.DSK /k5 /u

As for map.com. That only applies to run (a lot of) software that is not DOS2 (that goes for Nextor as well) compatible.

Por shram86

Expert (95)

Imagen del shram86

02-06-2019, 02:00

Meits wrote:

The Kai games should work if you flash the game like this:
opfxsd FILE.DSK /k5 /u

As for map.com. That only applies to run (a lot of) software that is not DOS2 (that goes for Nextor as well) compatible.

No, that's not the issue.

The issue is not the manner in which they are loaded by opfxsd, but rather a conflict with MFR (which uses a derivative of DSK2ROM) and the apparatus used to load the game, which itself is DSK2ROM. Hear tell it possibly has something to do with reading the IO ports, which should not be done as I'm told it is unreliable, but more than likely its a glitch in disk emulation.

Of the six Kai games I tried, only three of them boot at all. Once I select FM music, they crash.

This issue is easily reproducible on my hardware by loading BASIC.BIN from the updated MoonBlaster driver onto a .dsk image, flashing it to the MFR, and attempting to load any mbm file. Here's a video of what happens:
https://streamable.com/cvx29

In contrast, performing the steps mentioned in the OP loads the music fine.

Por Guillian

Prophet (3233)

Imagen del Guillian

02-06-2019, 21:40

MFR SD does not use DSK2ROM by default since 4 years or so. It uses Nextor's EMUFILE.
So perhaps the problem is related to MoonBlaster reading mapper ports (Kai Magazine games use it for playing musics) and/or the Sony setting some bits of the mapper readback.

AFAIK, others MFR SD users can play KAI games without problem.

Por Manel46

Champion (462)

Imagen del Manel46

02-06-2019, 22:04

shram86 wrote:

I'm told the dsk emulation by MFR is based on DSK2ROM. All of Kai's games use DSK2ROM, which is obviously why they are having the same issue - there has to be a conflict somewhere.

think you have a comfusion. I think that with DSK2ROM, it refers to the conversion system, from a program on disk, written in basic, to ROM.
The resulting rom is konami, which therefore has to be loaded to the MFR with /k5

Por shram86

Expert (95)

Imagen del shram86

02-06-2019, 22:16

I'm not confused.

I have several binaries here, about 7 examples at this point, that give "bad file mode error" when loading via bload (without 'r') from .dsk emulation, but which load and execute fine when running from folders where I've copied the files directly to my SD card (using the map.com trick mentioned above).

Thanks for clearing up that MFR doesn't use DSK2ROM anymore, but now it appears the bug is with EMUFILE. However, it is clearly a bug. How else is this possible?

I'm sure there are _some_ people that don't have issues, but check again my setup. I have a F1XD, and newest MFR SCC+ SD with newest kernel.

Thanks

Por Guillian

Prophet (3233)

Imagen del Guillian

03-06-2019, 09:13

Are the DSKs unfragmented in the SD card?
EMUFILE needs the DSKs unfragmented in order to work.

Can you share a DSK so we can test it?
Perhaps someone with a HB-F1XD can reproduce the problem, or verify it works fine.