Posted: Fri May 13, 2022 5:39 am Post subject:
Anyone feel like making a dedicated audio.bag/idx tool?
To preface: I suspect some of my glitches are related to sound, that is when playing a long game, often one or more sound will not play. Today's example, I made a helicopter late game to get engineers past an army, but the rotor sound effect didn't play at all. I added a bunch of new sounds today before my test game, so it might be related, or it might be a glitch elsewhere that manifested by screwing up sound playback on this particular unit. This has happened before, where I've edited or just compacted the sounds with XCC Mixer, only to be greeted with weird game behaviour after.
I also noticed that a missing wave in the audio.bag can result in graphical glitches, like a referenced resource that isn't there, shifts other resources incorrectly in memory. The common result in my mod is that something will display snow art on a non-snow map, sometimes the building, sometimes an animation on the building. Missing files isn't generally a problem, since my SoundCheck script will find those, but it can't tell me if the audio.bag has all the correct contents/headers/offsets/etc.
Anyway, I'm beginning to think XCC Mixer's sound editor is as flawed as the mix editing code. Since I know no one wants to touch XCC's codebase, the best would be an independent tool... who knows maybe a new implementation will actually discover flaws in XCC's method?
Something similar to XCC Mix Editor would be a good start, provided the creation of audio.bag is flawless, but ultimately there's a whole lot that could be done with the tool. Aside from sanity checking, it could load the contents of sound.ini and give you an easy way to list sounds used by the object, and automatically select them in the .bag for you to rename or delete as you need. Automatically grouping the wave files so you could listen to them all with an integrated player would be awesome, instead of having to find the files by their ID. Another great option would be the ability to re-encode a wave to say IMA 4-bit 44khz from whatever bitrate it is, meaning extract and re-insert the new wave, without going through file manager and external wave editor.
I dunno, I still see a proper editor with more managerial ability over the resources as being valuable. It really comes down to how powerful and intuitive it can be, it might actually encourage people to use it.
As I said in my scripts thread, my SoundCheck helped me delete like 10mb off the audio.bag, and if I was willing to remove more unused WW sounds, I could shave even more. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
Ideally with a built-in sound.ini editor, so that you could create a new object, drag some waves into it, and have it fill out the code with the Sounds= list automatically, plus some default values. _________________ http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum