Kawa-oneechan / SCICompanion

SCI Companion - an editor for Sierra SCI games, altered.
18 stars 7 forks source link

Mass Message audio importing? #27

Closed cdb-boop closed 1 month ago

cdb-boop commented 1 month ago

I'm aware that resource files can be extracted in bulk, however, is there a way to import multiple resource files? I'm particularly interested in importing multiple Message audio files for existing Message entries, but importing them manually one-by-one is non-trivial, as there are over a thousand.

cdb-boop commented 1 month ago

I put together something locally that worked.

I strictly required WAV files be labeled with a base 36 resource ID (the same one used in exporting). It lacked a way to validate the message resource existed (I think the program does a check and silently rejects it) or import deferring (which it does internally, and which not having makes it slow), as it appeared to me that updates were intended to be tightly coupled to the UI for the currently selected message.

As I am unsure of how to address these snags to make the code changes up to my standards of quality, and my use case has been addressed, I will not look into making a pull request.