Lucas Arts .SAN-file encoding?

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
Ergonpandilus
Posts: 1
Joined: Sat Nov 27, 2021 6:25 pm

Lucas Arts .SAN-file encoding?

Post by Ergonpandilus »

Is it possible to create a new .SAN (Smush Animation Format) file? I'm doing a mod for a LA game, but so far I haven't found any information on how to create a new SAN file from eg. MP4 -> SAN.

SAN is explained here
https://wiki.multimedia.cx/index.php/SAN

Does anybody have information regarding this? Ideally I'm looking for a code snipper, a converter or an encoder software for SAN files.
User avatar
criezy
ScummVM Developer
Posts: 955
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Re: Lucas Arts .SAN-file encoding?

Post by criezy »

Our compress_scumm_san tool could be of interest to you.
It will not allow to generate a .SAN file directly from your MP4 file, but could be a starting point. It was designed to work with games supported by ScummVM though, and other games may have slightly different formats that are not supported. Also if you want to generate a file that works with the original game executable, you need to generate an uncompressed .san file (so the reverse of what the tool is doing) as compressed ones only work with ScummVM. But the code to extract the data from the SAN file and then regenerate the SAN file could still be useful.
The source code is available at https://github.com/scummvm/scummvm-tool ... mm_san.cpp
rzil
Posts: 31
Joined: Wed Aug 17, 2016 12:56 pm

Re: Lucas Arts .SAN-file encoding?

Post by rzil »

You can take a look at these tools:
https://github.com/BLooperZ/nutcracker
They can already decode/re-encode SAN videos for FT, DIG, COMI and Outlaws.

please feel free to contact me for further help
Post Reply