The ansiFormat and defaultAnsiFormat xml attributes. What were they intended for? The current code doesn't seem to use them.
They are there to color log lines in console.
Aw, I'm sorry.
I have somehow overlooked output/sound/SoundProcesor.java:64, and now it all makes sense.
Besides, I've written a
python-lxml-based convertor for the SoundSense-format packs, which catches some inconsistensies and thus can be useful while editing the xml.
For example, with current soundpack it gives:
lxnt@bigbox:~/00DFGL/rendumper/misc$ ./flatten-soundsense.py ../../SoundSense/packs/
../../SoundSense/packs/default/sample.xml:46: warning: bogus loop setting of 'true', ignoring
../../SoundSense/packs/adventurer/enviroment.xml:9: warning: sound for channel 'weather' without loop and no soundfiles, ignoring.
and with verbose option:
lxnt@bigbox:~/00DFGL/rendumper/misc$ ./flatten-soundsense.py -v ../../SoundSense/packs/
../../SoundSense/packs/moods/moods.xml:4: warning: sound with no channel and no soundfiles
../../SoundSense/packs/moods/moods.xml:73: warning: sound with no channel and no soundfiles
../../SoundSense/packs/battle/status.xml:4: warning: sound with no channel and no soundfiles
... etc, there's a load of them
Currently it will catch bad-formed xml, wrong paths, typoes in some attribute names. With time coverage should extend.
I hope it can be useful for (semi-automated) checking up after editing the xml. Just ignore the statistics it prints and the file it generates.