Extract game files from .mhk ? (logical journey of the zoombinis)

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
yoshipower
Posts: 1
Joined: Tue Apr 27, 2021 11:19 am

Extract game files from .mhk ? (logical journey of the zoombinis)

Post by yoshipower »

Hello,

For a graphical project I'd like to extract sprites from the Zoombinis games. I'd like to know if there is a smart or automated way to do so.
I have a CS background but I have no experience in hex editing, and old files parsing...

- I have the .iso file from the game that I extracted into a folder containing several .mhk
- As I understand, .mhk is the format for the Mohawk game engine.

- From those .mhk files, i use the scummvm-tools package, and with the extract_mohawk command I get a bunch of other .bin files, such as :
0000_00_NODE_1000.bin
0002_00_tBMP_9000.bin
0044_00_.SND_1100.bin


With my little knowledge I guess that "tBMP" files are images (bitmaps) and "SND" refers to sound files.
But at that point I'm lost ! I've tried giving the tBMP file to an image converter, no good results.

I am doing it wrong? Is there a better way of approaching the problem?

Thanks!
skyboxeye
Posts: 1
Joined: Thu Oct 26, 2023 8:23 pm

Re: Extract game files from .mhk ? (logical journey of the zoombinis)

Post by skyboxeye »

The SND files are 8-bit unsigned PCM at 11025Hz. The first 40 samples can and should be thrown away. You can do this using Audacity's "Import Raw Data" function, or if you're more technical you can use vgmstream with the following TXTH file:

Code: Select all

codec = PCM8_U
sample_rate = 11025
channels = 1
interleave = 0
start_offset = 40
num_samples = data_size
loop_flag = auto
Post Reply