Sunday, May 20, 2018

Week 1 -- MIDI files and basic plumbing

The first week is already over and brought up some quite interesting problems. Here is a short list of what has been done.
  • Decoding EALIB files (1)
  • Converting audio files (1,2)
  • Rendering .BM (fullscreen) images (1)




The game's assets are LZSS encoded in two libraries, imm1.lib and imm2.lib.
The header starts with a 5 byte long signature "EALIB" and an uint16LE of the number of files encoded. The following table consists of 18 byte entries per file and a list terminator (flag x00) as its last entry.

Fullscreen image files like the title screen and the screen frame are stored linearly so that each nibble that represents one of the 16 possible colors just need to be written in its own byte.

Music files are stored as .BIN and consist of a custom header as colorfully shown above, followed by MIDI data. The header appears to be similar to Ski or Die but there are still questions open. This shows my best guess at what it could be + lots of googling

It is worth mentioning that the first MIDI event is missing its delta time, that I append as I convert the header to a type-0 MIDI header. (code)
Audio effects have not been implemented yet. Unfortunately they are generated directly by calling into the sound driver that stills need to be reverse engineered.

Next Week

Although the audio is not yet done, I will leave it for now and implement handling of .ANM files and sprite rendering next.

Tuesday, May 1, 2018

Introducing -- The Immortal

Feels good to be back :)

I was one of the lucky four students to participate in GSoC under ScummVM.
For a more thourough introduction of myself see my post from last year.
Over the course of this summer I will be porting The Immortal, a dungeon crawling adventure with difficult puzzles and cruel battles waiting within.

So far I have written the extractor and decoder for the library files of the DOS version, what will be the base for this port.
You can follow the progress by either keeping an eye on this blog or my working branch