broken sword 1 (was Re: Fwd: Re: Yaml)

Alexandre Detiste alexandre.detiste at gmail.com
Fri Apr 24 10:28:20 UTC 2015


Hi,

2015-04-24 10:07 GMT+02:00 Simon McVittie <smcv at debian.org>:
> For FLAC specifically, we could actually avoid this, because FLAC
> metadata includes the md5sum of the raw audio samples:
>
> smcv at testament% metaflac --list 03\ Only\ Happy\ When\ It\ Rains.flac
> ...
>
> I *think* that "MD5 signature" is invariant across different encodes of
> the same raw samples (i.e. the actual data payload of a .wav, without
> headers).

Indeed, these MD5 can be computed with avconv.

$ ln -s /usr/share/sounds/alsa/Front_Center.wav
$ flac Front_Center.wav
$ metaflac --show-md5sum Front_Center.flac
e63509859133f0e08c8e43b5a1d183bb
$ avconv -i Front_Center.wav -map 0:a -f md5 - 2>&1 | grep MD5
MD5=e63509859133f0e08c8e43b5a1d183bb

For mp3 & ogg files there is fpcalc from libchromaprint-tools
that computes a fingerprint.


speech1.clf & speech2.clf uses a custom container with a one-off
encoding program,
as does monster.sof in tentacle.yaml :-( :

http://wiki.scummvm.org/index.php/User_Manual/Appendix:_Tools#compress_sword1
https://github.com/scummvm/scummvm-tools/blob/master/engines/sword1/compress_sword1.cpp
https://github.com/scummvm/scummvm-tools/blob/master/compress.cpp#L519

> Templates attached.
Thanks

> This is the full CD contents, except the files that
> g-d-p make-template automatically excludes, so they will need some
> pruning. Perhaps we should exclude directories named /directx or
> /data.now by default?

Fixed for now, I had an other game with a /directx/ folder full of .cab's

>> There also exists various addons:
>> http://www.scummvm.org/games/#sword1
>
> If they're very small we could just bundle them in with the game data as
> if they were required (even though strictly speaking they aren't), like
> I do for the ioRTCW unofficial patch for RTCW.

They are translations packs, I guess an english
speaking user don't want to download 100mb of translations;

This can be handled in the language detection-code.

> we fix the bug where g-d-p is too eager to download optional bits
> just because they're available.
... without fixing this bug, maybe a solution is making GDP
ask interactive questions like apt-get or a checkbox in a gui.

>> Fot the rest, g-d-p is in releasable state.
>
> I'll try to get round to doing a round of review + upload soon.

Ok thanks



More information about the Pkg-games-devel mailing list