Project Zomboid

Project Zomboid

Music for the End of the World [True Music]
 This topic has been pinned, so it's probably important
batsonline.ttv  [developer] 16 Jan, 2023 @ 11:47pm
INFO: The Tutorials
OUR TUTORIALS
Music for the End adds a few new systems that other mod authors and end users might want to build upon. These tutorials will run you through how to do so.

MAKING YOUR OWN RADIO STATION
Ah, the big one! Let's get into constructing your own bespoke radio station, you Kentucky high-roller you!

A music station requires the following:
- A set of valid .ogg files, as used in True Music packs.
- Associated sound scripts like those generated by True Music under media/scripts/TCGSoundsTCBoombox. This is the only part of True Music that the radio system needs; you don't need to implement a radio station song as an item if you don't want to.

Python
Installing and running Python for the trackgen tutorial goes here.

Tracks
Here is where I'd talk about generating tracks when I care enough to finish this.

Dialogue
Here is where I'd talk about adding dialogue and how to use all the dialogue features when I care enough to finish this.

Other
Here is where we talk about setting frequencies, setting up sandbox settings, etcetera.

MODIFYING EXISTING STATIONS
Annoyed that the hosts won't play your favorite songs? Call in and yell at them about it! This tutorial will teach you how to modify the contents of existing stations including dialogue, advertisements and track listings!

MUSICAL ZOMBIES
Music for the End has a system that allows zombies to play their own music. The system that defines this also has a few other useful features for making custom zombies, such as a quick and easy way to set zombie skin textures and define texture options for clothing items that appear in zombie outfits. It is quite easy.

Navigate to our Templates folder at the following address:
steamapps/workshop/content/108600/OURID/mods/Music for the End of the World/mods/Music for the End of the World - Core/common/media/templates

Here, you will find a folder called 'Musical Zombies' and a file called zombiesTEMPLATE.lua. Take this file and use a text editor such as Notepad to edit it according to your needs. Then, place it in your mod under 42/media/lua/client.

Congratulations, you now have a custom musical zombie or several!

SUPPORT FOR ALTERNATIVE MODELS
Music for the End introduces a feature that allows you to decide how you want to display vinyls when placing them. You can support this feature in your own mod using this tutorial.

ADDING EASTER EGGS
You can add your own items to Music for the End of the World's easter egg pool, if you want to distribute extremely rare cassettes or vinyls in the same way. It is very simple.

In order to make an Easter Egg, all you need to do is navigate to the item script typically found in TCGMusicScript files under media/scripts. At the bottom of each relevant item's script, add the following line:
Tags = MFTEOTW_EasterEgg,

As long as our system picks up the item, it will automatically remove it from normal circulation and add it to the easter egg pool.

MOD-SIDE EXCLUSIONS
In-game, you can exclude entire mods or items via the sandbox settings. However, mod authors may desire to innately exclude certain items from our distribution pool because they have their own methods. If you wish to do this, simply follow the above tutorial but add the following tag instead:
Tags = MFTEOTW_LOOT_EXCLUDE,
Last edited by batsonline.ttv; 21 Aug @ 8:59pm