SceneGraph Plus V2 - Sounds Updated
While working with @morepopcorn to make linking sound resources easier, it was discovered that neither HLS (UNK 0x7B1ACFCD) nor TRKS resources are needed to play custom sounds from BHAVs. (It was not investigated if they are still needed for custom sounds references from animations to play.) See their post about it.
This means that the Sound ID text resource (STR# 0x4132) entries can link directly to audio (MP3/XA) resources.
Audio resources do not have a name (unlike object, coding, scenegraph, etc resources) - just a TGIR value.
When working in SimPe, without a name to "Fix TGI" with, it is necessary to manually generate the I and R values and enter them via the Resource tab.
SceneGraph Plus (prior to V2.7) does make this slightly easier, in that you can select the Audio resource and enter a unique name in the Name: text area and it will automatically fix the I and R values. It is however open to mistakes, as there is no easy way to copy the required names from the STR# 0x4132 (Sounds ID) text resource.
SceneGraph Plus V2.7 adds a new way of working with sound resources. To enable this, from the Mode menu make sure Advanced is checked, then, with no files open, from the Options menu check the "Sounds skip TRKS and HLS" item.
Opening a .package file containing a STR# 0x4132 (Sounds ID) resource will now show it linking directly to audio resources.
Normally when shift-dragging a resource over a missing resource, the link in the parent to the missing resource is changed to the TGRI/name of the dropped resource. However, as audio resources do not have a name, this behaviour has been changed.
When dropping an audio (MP3/XA) resource onto a missing child of a STR# 0x4132 (Sounds ID) resource, the sound name in the STR# entry is used to rename (and automatically fix the I and R values of) the dropped resource.
As there is no easy way to disambiguate multiple audio resources in the same .package file, it is probably best to keep each audio resource in its own .package file, as then the name of the file can be used to identify each MP3/XA sound.