Add ambient sound and music

This commit is contained in:
Simon Brodtmann 2025-02-05 13:19:47 +01:00
parent 819bf6e26b
commit 9f97212ea4
8 changed files with 54 additions and 4 deletions

View file

@ -145,3 +145,15 @@ If your modded lab is special and it should not support these science packs, use
[_CodeGreen](https://mods.factorio.com/user/_CodeGreen) [_CodeGreen](https://mods.factorio.com/user/_CodeGreen)
- Lignumis as starting planet inspired by [Any Planet Start](https://mods.factorio.com/mod/any-planet-start) - Lignumis as starting planet inspired by [Any Planet Start](https://mods.factorio.com/mod/any-planet-start)
[Free Music Archive](https://freemusicarchive.org)
- [The Owl: telescope](https://freemusicarchive.org/music/The_Owl/Fairy_Forest/the_owl_-_fairy_forest_-_04_the_owl_-_telescope/) (CC BY-NC-ND)
- [malictusmusic: Forest Heartbeat](https://freemusicarchive.org/music/malictusmusic/free-cinematic-goodies/forest-heartbeat/) (CC BY)
- [Meydän: Surreal Forest](https://freemusicarchive.org/music/Meydan/Havor/4-_Surreal_Forest_1541/) (CC BY)
- [HoliznaCC0: Dark Forest](https://freemusicarchive.org/music/holiznacc0/retro-gamer-soundtrack/dark-forest/) (CC0)
- [Aaron Mist: Burning Forest](https://freemusicarchive.org/music/Aaron_Mist/Unnecessary_City/Aaron_Mist_-_Unnecessary_City_-_04_Burning_Forest/) (CC BY-NC)
[Pixabay](https://pixabay.com)
- [AudioPapkin: Forest ambience](https://pixabay.com/sound-effects/forest-ambience-296528/)

View file

@ -60,7 +60,7 @@ PlanetsLib:extend({
clouds = effects.default_clouds_effect_properties() clouds = effects.default_clouds_effect_properties()
}, },
persistent_ambient_sounds = { persistent_ambient_sounds = {
base_ambience = { filename = "__base__/sound/world/world_base_wind.ogg", volume = 0.3 }, base_ambience = { filename = "__lignumis__/sound/ambient/forest-ambience.ogg", volume = 0.1 },
wind = { filename = "__base__/sound/wind/wind.ogg", volume = 0.8 }, wind = { filename = "__base__/sound/wind/wind.ogg", volume = 0.8 },
crossfade = { crossfade = {
order = { "wind", "base_ambience" }, order = { "wind", "base_ambience" },
@ -110,8 +110,6 @@ PlanetsLib:extend({
} }
}) })
PlanetsLib.borrow_music(data.raw.planet["nauvis"], data.raw.planet["lignumis"])
data:extend({ data:extend({
{ {
type = "space-connection", type = "space-connection",
@ -123,4 +121,44 @@ data:extend({
length = 2000, length = 2000,
asteroid_spawn_definitions = asteroid_util.spawn_definitions(nauvis_lignumis) asteroid_spawn_definitions = asteroid_util.spawn_definitions(nauvis_lignumis)
}, },
{
type = "ambient-sound",
name = "lignumis-1",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-1.ogg",
weight = 10
},
{
type = "ambient-sound",
name = "lignumis-2",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-2.ogg",
weight = 10
},
{
type = "ambient-sound",
name = "lignumis-3",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-3.ogg",
weight = 7
},
{
type = "ambient-sound",
name = "lignumis-4",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-4.ogg",
weight = 8
},
{
type = "ambient-sound",
name = "lignumis-5",
track_type = "main-track",
planet = "lignumis",
sound = "__lignumis__/sound/music/lignumis-5.ogg",
weight = 4
}
}) })

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.