Adding custom music and disable original music
Adding custom music and disable original music
Hey,
So i want to add my own custom music to the game.
With this lua code it is possible:
https://github.com/db48x/original-music ... c/data.lua
but there is one problem. It ADDS music, but doesnt disable the old original music.
So how can i disable the original music that allows me to play only my custom music.
it would be nice if anyone has a solution
So i want to add my own custom music to the game.
With this lua code it is possible:
https://github.com/db48x/original-music ... c/data.lua
but there is one problem. It ADDS music, but doesnt disable the old original music.
So how can i disable the original music that allows me to play only my custom music.
it would be nice if anyone has a solution
Re: Adding custom music and disable original music
This in front of the data:extend should do it, i think:
Code: Select all
data.raw["ambient-sound"] = {}
Re: Adding custom music and disable original music
So,Choumiko wrote:This in front of the data:extend should do it
Code: Select all
data:extend(
Code: Select all
data.raw["ambient-sound"] = {}
data:extend(
.....
(I'm sorry, I don't know a lot in this kind of things, but would be very interested too)
Re: Adding custom music and disable original music
Ok ! Thank you !
May I ask what are the differences between "early-game" and "main-track" ?
May I ask what are the differences between "early-game" and "main-track" ?
Re: Adding custom music and disable original music
Not sure, my guess would be that songs under "early-game" are only played for a certain time after the start of the map?Yaua wrote:Ok ! Thank you !
May I ask what are the differences between "early-game" and "main-track" ?
Re: Adding custom music and disable original music
So, I tried to add the line at the beginning as you advised :Choumiko wrote:Not sure, my guess would be that songs under "early-game" are only played for a certain time after the start of the map?Yaua wrote:Ok ! Thank you !
May I ask what are the differences between "early-game" and "main-track" ?
Code: Select all
data.raw["ambient-sound"] = {}
This will may be be a dumb remark, but... can't this be related to the fact the track specified in custom file are labelled ""ambient-sound" ?
Example :
Code: Select all
{
type = "ambient-sound",
name = "Original Factorio Haluzsqua (HD)",
track_type = "main-track",
sound =
{
filename = "__original-music-hd__/FactorioHaluzsqua.ogg"
}
Re: Adding custom music and disable original music
I'm not sure how Factorio decides what to play. In the data file i noticed 3 different track_types:
early game
main-track
interlude
Maybe try making it interlude for all. Or wait for someone to answer who knows it
early game
main-track
interlude
Maybe try making it interlude for all. Or wait for someone to answer who knows it
Re: Adding custom music and disable original music
Ahah, thanks !Choumiko wrote: Maybe try making it interlude for all. Or wait for someone to answer who knows it
Well, unfortunately, it didn't solved the problem. So for now, I simply disabled the music, and I'm using winamp in random and repeat mode (not the ideal but well...). Thank you very much for your help !
But if someone has the answer, please tell us !
Re: Adding custom music and disable original music
where do i have to copy the lua code?GaXyLa wrote: So i want to add my own custom music to the game.
With this lua code it is possible:
https://github.com/db48x/original-music ... c/data.lua