Project Zomboid

Project Zomboid

363 ratings
Broadcast Voicer
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.124 MB
8 May, 2023 @ 7:39pm
17 Jan @ 1:05pm
9 Change Notes ( view )

Subscribe to download
Broadcast Voicer

Description
Broadcast Voicer

This is a framework mod I made, to make my mod Voiced Radios & TVs compatible with Survivors Radio.

This mod is perfect for adding ambiance and realism to the game. For instance, if you wanted to make a custom scenario and had a custom radio or tv program for worldbuilding, you could voice the lines and add them with this mod.

How To Use

To use this mod, you'll have to make at least 4 files on media folder:

  • lua/client/RadioCom/{Mod}_SoundTable.lua --A file that links the guid of an entry line to a sound of the game
  • radio/{Your_Radio}.xml --Your radio or TV lines
  • scripts/sounds_{Mod}.txt --A file that associates .ogg sounds to InGame sounds
  • sound/{SoundName}.ogg --Your sounds, can be music or voice lines.

The names of the files are just a convention to avoid compatibility issues with other developers who might want to use this framework, I'll advice to name your files with your mod's name.

First, add .ogg sounds to the sound folder, for instance news-1.ogg

Then, add the sound to the game in the scripts folder.

The mod does not align the audio to the text, so If you want the text and audio to sync, you will have to go to your lines in media/radio/{Your_radio}.xml, and add time tags ( ${t=3.00}) like this:

<EntryLine ID=abcd ...>${1.00}This Line lasts 1 second</EntryLine>

I recommend using an audio editor like audacity to get the duration of the lines in seconds.

Next, make the sound table.lua file. It should look like this:
local RadioWavs=require "RadioCom/RadioWavs"
RadioWavs.addSongs("abcd","news-1")

Where abcd is the ID of the entry line, and news-1 is the name of the sound in the game.

Finally, run the .py script. It should copy the GUID from the lua to the codes attribute (needed to work,don't worry, it doesn't affect the codes)

In mod.info, you should add a require=VOICE_FRAMEWORK line.

VHS Supported, although text can't be synced

Mod Info

Workshop ID: 2973493897
Mod ID: VOICE_FRAMEWORK
64 Comments
RamG 11 Jul @ 7:55am 
When I use that mod in version B42, I can't select all start places except Rosewood and Eric. Because it crash while only showing black screen. When I check console.txt, It`s spouting 'ERROR: mods isn't a valid worksheet ID'. I have no idea why Rosewood and Eric start normally and others can't.
theviolentsleeper 6 Jun @ 9:06am 
GOATED. I plan to contribute to this project whil i have my summer vacation.
ankle toe sac 23 Feb @ 11:05pm 
@Fed-cap I believe this mod conflicts with Bandits Week One, specifically during the party event. Once I turned off this mod and Voiced Radio and TVs, the errors no longer persisted. Something happens during the party code, specifically radiowavs
chicken_soup124 25 Jan @ 3:43pm 
I'm not sure if this is another mod, but you'll hear the default radio voice and the modded voice in the radio (and possibly the TV. I'm not sure). do you know if there's any way to fix that?
Deimos 21 Jan @ 12:24pm 
No entendi nada de como instalar el mod :aunope:
Fed-cap  [author] 20 Jan @ 7:55pm 
@FrenchGamer What do you need? do you have a radio .xml you want to add and voice to the game?
Sleepy Bella 20 Jan @ 6:59pm 
Fun fact: If you enable this mod alongside the Week One mod, you can actually hear the NPC's car radios as they pass you by. Neat little detail.
FrenchGamer 24 Nov, 2024 @ 5:38am 
I need help trying to get this mod work
Dere 7 Nov, 2024 @ 7:02pm 
@Fed-Cap la verdad estaba intentando entender como funciona el tema de los mods que tienen que ver con las radios y tv¿s del juego ya que quiero hacer uno propio pero no entendi na.
Fed-cap  [author] 7 Nov, 2024 @ 8:51am 
@Dere tenes un .xml de radio que funcione?