• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

only one file per ".unity3d" file ?

Daimonicon

Refugee
Can I only store one wave file, for example, in one ‘xyz.unity3d’ file ?

I exported two wave files as resources. 1x Nailgun.wav, 1x Rifle.wav. Unity 2022.3.50f1: XYTH Exportscript

I then wanted to embed them in different places (blocks.xml and sounds or items.xml for the Weapon) using:
#@modfolder:Resources/MyWav1.unity3d?~
Nailgun.wav or Rifle.wav

7 Days then displays an error message (content): Error: Resource file already loaded
 
That's not how you reference sounds for weapons/items. Make a new entry in sounds.xml, add two, one for each of your wav files, and then reference the name you choose in the sounds.xml, look up how things are done in vanilla already for other weapons for more guidance :)
 
That's not how you reference sounds for weapons/items. Make a new entry in sounds.xml, add two, one for each of your wav files, and then reference the name you choose in the sounds.xml, look up how things are done in vanilla already for other weapons for more guidance :)
Thanks, a single reference is much more practical. It will then surely no longer output any errors, and I can export all new WAV files to one .unity3d file.
 
Integrating it as you described works well. However, it still does not accept a second reference to the .unity3d asset file.

Error: Asset already loaded.

I have created two new ‘SoundDataNode’ files. One for the nail gun – works great. When I create another new one for the “TacticalAR” which points to the same ‘MYNewResource.unity3d’, 7Days refuses to load it.

My new SoundDataNode Names are:
nailgun_place_quieter // MYNewResource.unity3d?nailgun-upgrade_1.wav
tacticalar_fire_quieter // MYNewResource.unity3d?ARifle_singleshot.wav
 
Back
Top