ScummVM Tools: extract_mohawk

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
Arnand56
Posts: 3
Joined: Thu Feb 08, 2024 11:54 pm

ScummVM Tools: extract_mohawk

Post by Arnand56 »

Greetings,

I recently discovered ScummVM, it's a wonderful application!

ScummVM Tools is also very useful but I'm running into a problem with it.

"extract_mohawk" allows you to decompress MHK files but the encoding of tBMP files and the fact that they are separated from their palettes does not allow me to be used.

According to this link in the ScummVM Tools Github, it seems that the idea of ​​creating a program to decode them had been considered:
https://github.com/scummvm/scummvm-tool ... C1-L163C52

I am not a programmer and I would not know how to implement this code but it seems that it has already been done, in particular to read these files in ScummVM as demonstrated in this source code:
https://github.com/scummvm/scummvm/blob ... bitmap.cpp

I am aware of the scale of this project, the considerable work behind it and inevitably, there are priorities.

Could you tell me, if in the future "extract_mohawk" will be able to convert .BIN files from .MHK archives so that they are editable like regular images, PNG, BMP? That would be great!

I wish you a good day/evening
User avatar
sev
ScummVM Lead
Posts: 2265
Joined: Wed Sep 21, 2005 1:06 pm
Contact:

Re: ScummVM Tools: extract_mohawk

Post by sev »

I'd suggest checking with some of the numerous translation groups. Many of them develop tools for extracting and repacking game graphics so that they can be translated.

The chances that the extract_mohawk tool will be enhanced in ScummVM are not that high since no developer is currently requiring it. However, we will welcome a patch if someone outside of the project decides to implement it.


Eugene
Arnand56
Posts: 3
Joined: Thu Feb 08, 2024 11:54 pm

Re: ScummVM Tools: extract_mohawk

Post by Arnand56 »

Thank you for your answer, it's already a good lead. All I have to do now is find a translation group that works on the Mohawk engine (if it exists). My best hope was ScummVM but having no programming knowledge I'm stuck. My mod will wait.

I have never come across a single translation group on the internet. Are they present on Discord, Github or a specific platform?
User avatar
Praetorian
ScummVM Developer
Posts: 777
Joined: Tue May 08, 2007 8:54 am
Location: Greece
Contact:

Re: ScummVM Tools: extract_mohawk

Post by Praetorian »

We do have people that have active or past fan translation projects for classic point and click games in the forum here and on the ScummVM discord.

Their availability of course is not guaranteed, but perhaps they would notice the thread here or a post on Discord and repond on their leisure time, provided they can help.

A Google search also returns some results that could be useful, although I have not tested any of these myself.

First, there's mention of a "debug" mode for the original game (not via ScummVM -- I am unsure if recent ScummVM versions support this original debug mode, but probably not). This console mode allows some dump functionality as well as other developer debugging commands:
https://tcrf.net/Riven:_The_Sequel_to_M ... c)#Console

Then, there's a java utility called "Riveal", which apparently got its last version (1.11) released on 2014. It claims support for media extraction from many games (more than just Cyan/Presto games). But, it's on a non-secure (non-https) site, so I am not linking it here.

An open source tool is maintained on github, written in JAVA:
https://github.com/buildist/Riven-Image ... ree/master
The readme file points to pertinent useful documentation about the tBMP format specs:
https://insidethelink.ortiche.net/wiki/ ... wk_Bitmaps

There's also a quite older tool here (from 2005), claiming to support viewing and extracting every picture from Riven’s “Mohawk” (MHK) data files:
https://www.mystellany.com/riven/imageviewer/
Arnand56
Posts: 3
Joined: Thu Feb 08, 2024 11:54 pm

Re: ScummVM Tools: extract_mohawk

Post by Arnand56 »

Thank you “Praetorian” for your response. I'm trying to extract MHK from the game WarBreeds. Only ScummVM Tools achieves this. I have already tried all the tools you listed, even GameExtractor and Quick BMS, nothing works. There may be minor differences between Riven MHKs and WarBreeds MHKs.

I'll try my luck via the Discord servers, if that doesn't work I'll just give up. Thank you for the time you gave me. :)
Post Reply