VOGONS


Reply 20 of 22, by RyanRX7

User metadata
Rank Newbie
Rank
Newbie
realnc wrote on 2022-07-09, 05:00:
OK, so the above method doesn't work. The game hangs when trying to play that MIDI file. […]
Show full quote

OK, so the above method doesn't work. The game hangs when trying to play that MIDI file.

The way I fixed it is by merging the MIDI events from track 8, which contains only 3 notes and 16 events, into track 6, which didn't play any notes at the time the other track did. So track 6 now switches the instrument to what track 8 wanted, plays the note, then switches back to the instrument track 6 normally plays. I then deleted track 8. I kept the copyright tracks intact instead of removing them and simply hex edited the track count to 8 so they get ignored.

But the resulting midi file was too large, because I had to use another MIDI editor to do it instead of QTractor, because it can't cope with the instrument switching of track 6:

https://github.com/markusschwenk/midieditor

What you need to do in that editor, is hide all tracks except Track 7 ("Timp"), then select that track and select all events (ctrl+a), copy them (ctrl+c), then select Track 5 ("Xylo"), made it visible, and then paste the events with ctrl+v at the exact same position they are in Track 7. After pasting, if they are not at the correct position, you can grab one of the notes with the mouse and drag them to the correct position. They will all be draged together since are all selected due to having pasted them. Now delete Track 7. Do not delete the copyright tracks. Save the file.

But that editor generates MIDI data that is too large. It doesn't optimize the MIDI data. So I had to find and download an old DOS utility called MIDCOMPR.EXE (it's shareware,) and run it in dosbox on the MIDI file.

https://www.softpedia.com/get/Multimedia/Audi … /MIDCOMPR.shtml

This will reduce the size so it fits into the HOBO_01.MUS file. It's smaller than the required size, so you need to run "truncate -s 19835" on it. Then open it in a hex editor and change the 12th byte (that's position 0x0b) from 0C to 08. Now put it in HOBO_01.MUS with "dd conv=notrunc bs=1 if=fixed.mid of=HOBO_01.MUS seek=377543" (if that is the correct decimal offset of the "Fight 3" MIDI file inside HOBO_01.MUS of your version of the game. If not, adapt as needed.)

The music now correctly plays in-game and sounds exactly the same as when playing the original, unmodified MIDI file in Munt's MIDI player.

Really solid bit of leg work you put in, and I personally appreciate the effort. I'm currently using the original hack that loses the drum track on Fight3 but your guide is a little beyond my skill level. Shame the company releasing the game back on GOG didn't take care of this beforehand. If there is ever a way I could acquire the patched MUS file that'd be awesome.

Reply 21 of 22, by DOStopic

User metadata
Rank Newbie
Rank
Newbie
RyanRX7 wrote on 2022-08-18, 15:23:

If there is ever a way I could acquire the patched MUS file that'd be awesome.

Good day! Great work, realnc but ... I've the same RyanRX7 request: is it possible to obtain a copy of this patched HOBO_01.MUS file? This is the only forum where this problem is faced and resolved (sorry for my bad english)!
P.S. Hope I haven't broken any forum rules! 😜

Reply 22 of 22, by Vivid Warthog

User metadata
Rank Newbie
Rank
Newbie

Hello 👋

(TL:DR - Patch at the bottom, no copyrighted data)

I've recently bought the Superhero League of Hoboken on GOG after instantly falling in love with the game (mainly thanks to the Base theme music 😜).

Having a real MT-32, I decided to play the game on the real computer, but the enjoyment was not long.

I've immediately gone to the nearest city (mentioned in the first post) and I've encountered the issue. But on the real hardware the issue is way worse: The game completely freezes (in real DOS mode) or freezes the mouse (in W9X).

If just the music were just missing in that area, I'd probably not even notice it.

Fortunately, I've found this thread.

Since the patched file is unavailable and the patch instructions did not work for me (some issues with the linked editing tools) I've decided to retrace the described changes using other tools available.

During the process, I've found out that there are actually three track that cause the game to hang (due to >8 "tracks"): Fight 1, Fight 2 and Fight 3, but only Fight 3 needed note-merging.

I've removed/merged all excessive tracks to the 8-track limit and the game started to work for me - with the music playing in the marketplace 😄

---

Because uploading a patched file may breach copyrites (spelling as used in the game itself 😄) I'm attaching a patch file in BPS format (since I'm familiar with it).

You can apply the patch online in-browser (e.g. on https://www.marcrobledo.com/RomPatcher.js/) or offline using any BPS-compatible patcher (e.g. Unipatcher)

You need to provide the original HOBO_01.MUS file and the patch file I've attached.