XML:SNDD: Difference between revisions

686 bytes added ,  24 April 2011
m
no edit summary
mNo edit summary
mNo edit summary
Line 26: Line 26:
: compressed (ima4)
: compressed (ima4)
|}
|}


==Helpful conversion tools==
==Helpful conversion tools==
===for PC===
===for PC===
To create suitable files you could use this tool: [http://www.riverpast.com/en/prod/audioconverter/download/ River Past Audio Converter 7.8]. (Also mirrored [http://dl.dropbox.com/u/139715/modding_tools/audioconverter_wmf_setup.exe here].) The trail version let you convert sounds that are up to 4 minutes long.
To create suitable files you could use this tool: [http://www.riverpast.com/en/prod/audioconverter/download/ River Past Audio Converter 7.8]. (Also mirrored [http://dl.dropbox.com/u/139715/modding_tools/audioconverter_wmf_setup.exe here].) The trail version let you convert sounds that are up to 4 minutes long.


In order to make your sounds available on both sides - pc and mac - you need to create them twice (one time from a wav source and another time from an aif/aifc/afc source).
In order to make your sounds available on both sides - pc and mac - you need to create them twice (one time from a wav source and another time from an aif/aifc/afc source).
Line 36: Line 36:
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_aif.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_aif_tn.png] [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_wav.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_wav_tn.png]
[http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_aif.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_aif_tn.png] [http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_wav.png http://i305.photobucket.com/albums/nn207/unknownfuture/Oni_Galore_Images/XML_modding/mp3_to_compressed_wav_tn.png]


 
When you're done you can use [http://mods.oni2.net/node/72 Onisplit GUI] to convert OSBDyourfile.grp.xml and OSBDyourfile.amb.xml to the .oni-file formate. Use the "manual command input":
When you're done you can use Onisplit GUI to convert two extra .xml to .oni files. Use the manuel input:
: -create output_directory input_directory/OSBD*.xml
: -create output_directory input_directory/OSBD*.xml
Make it that way they all have the same name:
* <font color=#AAAAAA>SNDD</font>yourfile<font color=#AAAAAA>.oni</font>
* <font color=#AAAAAA>OSBD</font>yourfile<font color=#AAAAAA>'''.grp'''.oni</font>
* <font color=#AAAAAA>OSBD</font>yourfile<font color=#AAAAAA>'''.amb'''.oni</font>


For more information about OSBD see [[#OSBD information|here]].
Music tracks can be split into several parts. However, I'd say do that only if you know what you are doing. If you are going to split music track look [[#OSBD information|here]].




Line 48: Line 51:


==OSBD information==
==OSBD information==
: OSBD_newmusic.amb.oni (The main file, links to the group, intro and ending files)
: OSBD_newmusic.amb.oni (The main file, links to the group, intro and ending files)
: OSBD_newmusic.grp.oni (Contain links to the music files)
: OSBD_newmusic.grp.oni (Contain links to the music files)
Line 59: Line 61:
In case you want to create a simple sound file you can basically copy the code and change the red marked stuff.
In case you want to create a simple sound file you can basically copy the code and change the red marked stuff.
* <Oni Version="      "> - self-explanatory, isn't it?
* <Oni Version="      "> - self-explanatory, isn't it?
* <NumberOfChannels> - here you tell Oni if your sound file is mono (1) or stereo (2)
* <NumberOfChannels> - here you tell Oni if your sound file is mono (1) or stereo (2), if you set the wrong value the music will sound distorted
* <Sound> - this is the sound file (for example: <font color=#AAAAAA>SNDD</font>nyan<font color=#AAAAAA>.oni</font>), file prefix and suffix aren't used
* <Sound> - this is the sound file (for example: <font color=#AAAAAA>SNDD</font>nyan<font color=#AAAAAA>.oni</font>), file prefix and suffix aren't used


Line 94: Line 96:
* <Flags> - use "PlayOnce" if you don't want your sound to be repeated automatically
* <Flags> - use "PlayOnce" if you don't want your sound to be repeated automatically
* <BaseTrack1> - this is the grp sound file (for example: <font color=#AAAAAA>SNDD</font>nyan<font color=#AAAAAA>.grp.oni</font>), file prefix and suffix aren't used
* <BaseTrack1> - this is the grp sound file (for example: <font color=#AAAAAA>SNDD</font>nyan<font color=#AAAAAA>.grp.oni</font>), file prefix and suffix aren't used
(sample file)


  <?xml version="1.0" encoding="utf-8"?>
  <?xml version="1.0" encoding="utf-8"?>
Line 126: Line 130:
==BINACJBOSound.xml==
==BINACJBOSound.xml==
* <Class> - this is the amb sound file (for example: <font color=#AAAAAA>SNDD</font>nyan<font color=#AAAAAA>.amb.oni</font>), file prefix and suffix aren't used
* <Class> - this is the amb sound file (for example: <font color=#AAAAAA>SNDD</font>nyan<font color=#AAAAAA>.amb.oni</font>), file prefix and suffix aren't used
* <MinRadius> - between min radius and sound origin (<Position>) is the sound voulume equally strong
* <MinRadius> - between min radius and sound origin (<Position>) is the sound volume equally strong
* <MaxRadius> - between max and min radius is a transition of the sound volume
* <MaxRadius> - between max and min radius is a transition of the sound volume
(A block ("object") of sample code.)
(A block ("object") of sample code.)
Line 146: Line 150:
             </OSD>
             </OSD>
         </Object>
         </Object>
==sound-related BSL commands==
* [[BSL:Functions#sound|on this wiki]]
* [http://ssg.oni2.net/commands.htm#sound on ssg's website]




==[http://oni.bungie.org/community/forum/viewtopic.php?id=798 OCF thread about new music]==
==[http://oni.bungie.org/community/forum/viewtopic.php?id=798 OCF thread about new music]==
^
^
8,230

edits