Keen:Planet Modding/Ambient sounds: Difference between revisions
CptTwinkie (talk | contribs) mNo edit summary |
CptTwinkie (talk | contribs) mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>{{SEO|image_url=http://www.medievalengineerswiki.com/images/ | <noinclude>{{SEO|image_url=http://www.medievalengineerswiki.com/images/b/b7/KeenLogoBig.png|description=How to implement custom ambient sound. If you want your own sounds, they should be a loop sound, and on average should not be bigger than +-5 MB.}} | ||
{{: | {{Keen:OCH}} | ||
Line 6: | Line 6: | ||
|release=0|major=4|minor=X|suppress=true}} | |release=0|major=4|minor=X|suppress=true}} | ||
[[Category:Keen_Modding_Guides]]</noinclude> | [[Category:Keen_Modding_Guides]]</noinclude> | ||
==[[ | ==[[Keen:Planet Modding/Ambient sounds|Ambient sounds - day/night biome sounds]]== | ||
Sound rules are in the Content\Data\PlanetGeneratorDefinitions.sbc file. Here you can set different sounds based on player’s location or daytime on the planet. | Sound rules are in the Content\Data\PlanetGeneratorDefinitions.sbc file. Here you can set different sounds based on player’s location or daytime on the planet. | ||
< | <syntaxhighlight lang="xml" line> | ||
<SoundRule> | <SoundRule> | ||
<Height Min="0" Max="0.5"/> | <Height Min="0" Max="0.5"/> | ||
Line 16: | Line 16: | ||
<EnvironmentSound>AmbIcelandDay</EnvironmentSound> | <EnvironmentSound>AmbIcelandDay</EnvironmentSound> | ||
</SoundRule> | </SoundRule> | ||
</ | </syntaxhighlight> | ||
Height stands for where you want the sound to play at the height of the heightmap (0-7200m). It is always +12% of the planet's diameter. 0 is from the the lowest start of the surface to 1.0 which is 100% of the surface (maximum height). | Height stands for where you want the sound to play at the height of the heightmap (0-7200m). It is always +12% of the planet's diameter. 0 is from the the lowest start of the surface to 1.0 which is 100% of the surface (maximum height). | ||
Latitude means angle from the equator. Therefore 0 to 20 will mean that this sound will mostly play in the desert area, 20-50 is mostly the green forest area, and so on. | Latitude means angle from the equator. Therefore 0 to 20 will mean that this sound will mostly play in the desert area, 20-50 is mostly the green forest area, and so on. | ||
Line 36: | Line 36: | ||
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Data\Audio.sbc | C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Data\Audio.sbc | ||
< | <syntaxhighlight lang="xml" line> | ||
<Sound> | <Sound> | ||
<Id Type="MyObjectBuilder_AudioDefinition" Subtype="AmbAlienForestDay" /> | <Id Type="MyObjectBuilder_AudioDefinition" Subtype="AmbAlienForestDay" /> | ||
Line 49: | Line 49: | ||
</Waves> | </Waves> | ||
</Sound> | </Sound> | ||
</ | </syntaxhighlight> | ||
Here edit only what is highlighted, otherwise I cannot guarantee that it will work properly! | Here edit only what is highlighted, otherwise I cannot guarantee that it will work properly! | ||
<SubtypeId> This is how you will name your AMB sound, keeping in mind upper and lower case letters. Do not use _ or other special characters! | <SubtypeId> This is how you will name your AMB sound, keeping in mind upper and lower case letters. Do not use _ or other special characters! | ||
Line 57: | Line 57: | ||
<noinclude>View the full [[ | <noinclude>View the full [[Keen:Planet Modding - Full Guide|Planet Modding Guide]]</noinclude> |
Latest revision as of 20:22, 18 July 2022
OFFICIAL CONTENT NOTICE |
---|
OFFICIAL CONTENT This article contains official content from or verified by the developers at Keen Software House. This information is intended to be accurate at the time it is posted, but may become obsolete over time. If you find errors in this article please describe the errors in the Discussion Page. |
Version: | 0.4 |
Ambient sounds - day/night biome sounds
Sound rules are in the Content\Data\PlanetGeneratorDefinitions.sbc file. Here you can set different sounds based on player’s location or daytime on the planet.
<SoundRule>
<Height Min="0" Max="0.5"/>
<Latitude Min="55" Max="80"/>
<SunAngleFromZenith Min="0" Max="180"/>
<EnvironmentSound>AmbIcelandDay</EnvironmentSound>
</SoundRule>
Height stands for where you want the sound to play at the height of the heightmap (0-7200m). It is always +12% of the planet's diameter. 0 is from the the lowest start of the surface to 1.0 which is 100% of the surface (maximum height). Latitude means angle from the equator. Therefore 0 to 20 will mean that this sound will mostly play in the desert area, 20-50 is mostly the green forest area, and so on. SunAngleFromZenith NEEDS MORE INFO!!! EnvironmentSound this is the name of the sound you want to use.
You can find all available sounds in Audio.sbc (location shown below) Here you will also put your own ambient sound with your own custom name.
How to implement custom ambient sound
All Ambient sounds are stored here:
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Audio\ARC\AMB\
If you want your own sounds, they should be a loop sound, and on average should not be bigger than +-5 MB. The supported format is: .xwm but .wav can also work, even though its file size is usually a lot bigger (not recommended).
Once your audio is done, implement it here in this file:
C:\Program Files (x86)\Steam\steamapps\common\SpaceEngineers\Content\Data\Audio.sbc
<Sound>
<Id Type="MyObjectBuilder_AudioDefinition" Subtype="AmbAlienForestDay" />
<Category>AMB</Category>
<MaxDistance>100</MaxDistance>
<Volume>0.2</Volume>
<Loopable>true</Loopable>
<Waves>
<Wave Type="D2">
<Loop>ARC\AMB\AmbAlienForestDayLoop2d.xwm</Loop>
</Wave>
</Waves>
</Sound>
Here edit only what is highlighted, otherwise I cannot guarantee that it will work properly! <SubtypeId> This is how you will name your AMB sound, keeping in mind upper and lower case letters. Do not use _ or other special characters! <Volume> This is self explanatory I hope. <Loop> Here you just need to lead the definition to your file. ARC/AMB/ is the default location, so do not change that. But if you want, you can make another folder in AMB for your custom ambient sounds for better organisation.
View the full Planet Modding Guide