SofaROM 3.0 released

By Louthrax

Prophet (2172)

Louthrax's picture

25-01-2020, 23:17

Hi all,

SofaROM has been updated to version 3.0. Main changes are related to joystick handling:

  • JoySNES and FM-Towns pads are now supported.
  • "JoyMega" setting has in consequence been renamed to "Joy2Key".
  • The new "Joy2Key" code uses a driver-oriented approach. Adding other joystick types should be way easier now (let me know if you have any suggestions).
  • Display of the joystick buttons to keys associations before launching a ROM:
  • New "sync_row" parameter in Joy2Key configuration to update keyboard keys from joystick only for certain rows (you can gain some CPU cycles with that).
  • Fix "End of File" error message when checking last flashed ROM history."Joy2Key".
  • Restore muting of SCC and FM-PAC sound devices after a soft-reset. This is now done by SofaRun as I was running out of space in SofaROM "in-game" memory.

SofaRun has also changed to mute SCC and FM-PAC at start (version has been updated to 6.1).

Note that the syntax of the Joy2Key (ex JoyMega) section of the SROM.INI file has changed. I've updated the comments:

Everything can be downloaded from my website

Let me know if you encounter any issue. The JoySNES support is a bit "fresh" and required more tricks to work properly (re-routing the RDPSG function to disable the default A and B button remapping). The positive point of this is that the A and B buttons can also be mapped to keys JoySNES (this is not available for the other joystick types as RDPSG is not re-routed).

Also, the JoySNES is CPU speed dependent. It works on turboR and 3.58Mhz MSX, but will probably fail on overclocked machines.

Login or register to post comments

By gdx

Prophet (3320)

gdx's picture

26-01-2020, 14:46

I tried to run some Konami Games with parameters below but it backs to Sofarun menu instead of run the games.

ROM=%sSR.COM /J5 %f;Run with SofaRom (JoySNES)
ROM=%sSR.COM /J6 %f;Run with SofaRom (JoyMega)

The games runs when I remove the option.

By Louthrax

Prophet (2172)

Louthrax's picture

26-01-2020, 15:49

gdx wrote:

I tried to run some Konami Games with parameters below but it backs to Sofarun menu instead of run the games.

ROM=%sSR.COM /J5 %f;Run with SofaRom (JoySNES)
ROM=%sSR.COM /J6 %f;Run with SofaRom (JoyMega)

The games runs when I remove the option.

The syntax of the INI files has changed because of the new supported joystick models (check my previous post). Check the SROM.INI file, or just use the new provided one. You can also launch the command from DOS manually to see if you get an error message.

Also, the /J option refers to the entries in the SROM.INI file (0 for no patch, 1 for the 1st Joy2Key settings, 2 for the 2nd, etc...).

Let me know if that works.

By gdx

Prophet (3320)

gdx's picture

27-01-2020, 10:56

I tried again. I had edited the file on PC and the encoding was UTF-8.
Now I saved the file with Windows Latin 1 encoding and ran SROM under DOS. So the game starts but the keys do not match when it is the JoySNES.

I modified parameters as below.
Generic(S)=S;X060;Y057;A080;B04243;S07177;E065;L080;R04243;
but buttons react as this:
Up -> Up
Down -> F1
Left -> Left
Right -> Right+shoot
Start -> Shoot
Select -> F1

The other buttons do not respond.

No problem with the JoyMega.

By Louthrax

Prophet (2172)

Louthrax's picture

27-01-2020, 21:56

Are you sure you JoySNES is configured for Super Nintendo mode and not FM-Towns ? (keeping Y buttons pressed when powering up or something, check the documentation).

By gdx

Prophet (3320)

gdx's picture

28-01-2020, 01:30

Thanks, it works now. I had to keep X buttons pressed when powering up to enable the extended mode. I can't wait the Sofarun update for the support of this new Sofarom.

By Hydragon

Paladin (712)

Hydragon's picture

28-01-2020, 09:46

@Louthrax Is this new SofaRom also integrated in the SofaRun package, if I redownload that one?

By Louthrax

Prophet (2172)

Louthrax's picture

28-01-2020, 21:15

gdx wrote:

Thanks, it works now. I had to keep X buttons pressed when powering up to enable the extended mode. I can't wait the Sofarun update for the support of this new Sofarom.

Nice Smile SofaROM is now supporting the new settings (and also muting FM-PAC and SCC after a soft reset).

By Louthrax

Prophet (2172)

Louthrax's picture

28-01-2020, 21:16

Hydragon wrote:

@Louthrax Is this new SofaRom also integrated in the SofaRun package, if I redownload that one?

Yes, everything should be in sync in the SofaRun package.

By Louthrax

Prophet (2172)

Louthrax's picture

28-01-2020, 22:23

Could be nice to use the JoySNES to play the Super Mario World port on MSX (I have not tried yet) Smile ?