Project Zomboid

Project Zomboid

路易斯维尔音乐节
 此主题已被置顶,因此可能具有重要性
Braven  [开发者] 2022 年 8 月 28 日 上午 9:39
Adding Custom Music
This mod is easily customizable, allowing you to add/remove any songs you wish.
Just follow these simple steps! :spiffo:
< >
正在显示第 1 - 1 条,共 1 条留言
Braven  [开发者] 2022 年 8 月 28 日 上午 9:50 
Adding your music files
Go to
C:\Program Files (x86)\Steam\steamapps\workshop\content\108600\2855127106\mods\LouisvilleMusicFestival\media\sound
Paste all your music files here, or delete the ones you don't want.
They can be .mp3, .wav, .ogg, etc.

Setting up sounds.txt
Go to
LouisvilleMusicFestival\media\scripts\LMF_Sound.txt

Open this file with any editor you want. I recommend VS Code but you can use even Notepad if you wish. This file specifies all the music we use in the mod. Here's an example of one of them:

sound Sample01 { category = Braven, loop = false, is3D = true, clip { file = media/sound/Rage.mp3, distanceMax = 200, volume = 1, } }

Copy this and edit it with the music you added in the previous step.
Sample01
is the ID of the sound.
file = media/sound/Rage.mp3
is the path of the music file.

Load it on the mod
Go to
LouisvilleMusicFestival\media\lua\client\LouisvilleMusicFestival\LMFMain.lua

In here you will find a list that's written as such:
local availableMusic = { -- "DisplayName,SoundName" "Rage (Metal),Sample01", "No Limits (Metal),Sample02", "Dark Matter (Metal),Sample03", "Knockout Blow (Dubstep),Sample04", "Aggressive (Dubstep),Sample05", "Devil Flames (Dubstep),Sample06", "Funk It (Funk),Sample07", "Fun Disco (Funk),Sample08", "Country Fiddle (Country),Sample09", "Joker Boy (Bright),Sample10", }

As you can see, this is a list of the available music. Simply update this with the music you added/removed. It must be written like this:
"Music name,Sound ID",

That's it!
If you did all the steps correctly, the next time you open the game and load your save, the music will be available in the festival's PC. It's quite easy, just a bit annoying.
If you need help just let me know.
最后由 Braven 编辑于; 2022 年 8 月 28 日 上午 9:53
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50