Automated JoyMega patching of disk games

By Louthrax

Prophet (2084)

Аватар пользователя Louthrax

28-07-2019, 11:42

Hi all,

I'm considering adding an automated JoyMega patching feature in SofaRunIt. Same thing as on SofaROM: you select your JoyMega to Keyboard mapping in SofaRun or command line, and the game is patched when sectors are read.

I'm not so sure about the interest of that feature. Which disk games would be interested to patch ? I see mainly Aleste 2 for the Stop/Pause button in order to select ship's speed.

I'm also curious to know if I can find consistent patch patterns for disk games compared to ROM games.

Let me know what you think (which games you think are interesting to work with JoyMega) ?

Для того, чтобы оставить комментарий, необходимо регистрация или !login

By gdx

Prophet (3046)

Аватар пользователя gdx

28-07-2019, 12:14

I think it would be better to make specific patches that will be better suited, much like those made for JoySNES.

By Louthrax

Prophet (2084)

Аватар пользователя Louthrax

28-07-2019, 15:19

gdx wrote:

I think it would be better to make specific patches that will be better suited, much like those made for JoySNES.

Let me disagree with that. The patch method used by SofaRom works with a lot of Konami an Compile games, out of the box. Plus you can map every JoyMega button to any keyboard key. So I do not really understand why “better suited”? Not mentioning the fact that you also have to retrieve and patch the games manually?

Also, making specific patches involves lot more work (need to install joymega handler routines in the game itself...).

But, yeah, of course, games have to be launched with SofaROM or SofaRunIt !

By gdx

Prophet (3046)

Аватар пользователя gdx

28-07-2019, 16:57

Louthrax wrote:

Let me disagree with that. The patch method used by SofaRom works with a lot of Konami an Compile games, out of the box. Plus you can map every JoyMega button to any keyboard key.

Yes, it works with a lot of Konami and Compile games. It's a nice feature for them but with the others it works a lot less. I think this will also be the case for games on floppy disks. I think there are more interesting things to do on Sofarun.

For example, improve sorting speed of files and fix some issues. (I have problems allocating commands based on extensions. I have not spoken yet because I can not define what happens. I did not have time to look at that.)

By Louthrax

Prophet (2084)

Аватар пользователя Louthrax

06-08-2019, 21:28

Hi GDX,

Let me know if you can reproduce the file association problem you have. Fixing bugs in Sofa tools is always my top-priority (I just need a somehow detailed descrption of the bug).

About the sorting speed, maybe something can be done, but it will take more time (I'm currently using C standard qsort function, which can maybe be optimized a bit by switching to assembly, but I do not hope too much gain. I also personally prefer using ZIP files for all disk and ROM images, which are sorted by default, and show long file names...).

By Louthrax

Prophet (2084)

Аватар пользователя Louthrax

06-08-2019, 21:27

Back to the original subject of this thread: the JoyMega patching for ROM games works with the Aleste 2 ROM conversion from RicBit Running Naked in a Field of Flowers So I can now pause the game and change the ship speed with Megadrive pad's Start button, and also assign C button to Select key to access the game difficulty setting screen.

That proves that at least some Compile disk games could be patched the same way as ROMs (I'd just need to copy the patching code from SofaRom to SofaRunIt).

Problem is, now that I can play Aleste 2 using the ROM version, I'm happy and do not need to code anything Smile So that idea might go into stand-by mode for a while, unless someone convinces me that some other disk games would really benefit from this.

By sd_snatcher

Prophet (3070)

Аватар пользователя sd_snatcher

07-08-2019, 01:26

Quote:

Let me know what you think

Personally, I think it would be wonderful to be able to play Xaks, Fray, Illusion City, Ys games, etc etc etc without having to leave the sofa to change items or save/load games. Big smile

By raulsantacruz

Hero (532)

Аватар пользователя raulsantacruz

07-08-2019, 15:09

Indeed,

And when you use a a multidisk dsk in flash cartridges, it will be very usefull to have a button to increase number disk and decrease number of disk.

in any case and whatever what you decide, thank you very much Louthrax by your incredible Sofarun!.

Regards

By Louthrax

Prophet (2084)

Аватар пользователя Louthrax

07-08-2019, 19:34

sd_snatcher wrote:
Quote:

Let me know what you think

Personally, I think it would be wonderful to be able to play Xaks, Fray, Illusion City, Ys games, etc etc etc without having to leave the sofa to change items or save/load games. Big smile

I'm pretty sure Xak 1 does not need any mapping (you can access the menus with button B, or by pressing 2 buttons simultaneously). But I'm not sure anymore about the Falcom games ? I'll give them a try again to check.

By Louthrax

Prophet (2084)

Аватар пользователя Louthrax

07-08-2019, 19:33

raulsantacruz wrote:

Indeed,
And when you use a a multidisk dsk in flash cartridges, it will be very usefull to have a button to increase number disk and decrease number of disk.

That already works (since 2015 Smile). You just need to keep button A or B when disk is accessed, and press the other button X time to select disk number. Check that video.