Project Zomboid

Project Zomboid

373 个评价
Broadcast Voicer
3
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.124 MB
2023 年 5 月 8 日 下午 7:39
1 月 17 日 下午 1:05
9 项改动说明 ( 查看 )

订阅以下载
Broadcast Voicer

描述
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 条留言
RamG 7 月 11 日 上午 7:55 
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 月 6 日 上午 9:06 
GOATED. I plan to contribute to this project whil i have my summer vacation.
ankle toe sac 2 月 23 日 下午 11:05 
@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 1 月 25 日 下午 3:43 
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?
iddle 1 月 21 日 下午 12:24 
No entendi nada de como instalar el mod :aunope:
Fed-cap  [作者] 1 月 20 日 下午 7:55 
@FrenchGamer What do you need? do you have a radio .xml you want to add and voice to the game?
Sleepy Bella 1 月 20 日 下午 6:59 
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 2024 年 11 月 24 日 上午 5:38 
I need help trying to get this mod work
Dere 2024 年 11 月 7 日 下午 7:02 
@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  [作者] 2024 年 11 月 7 日 上午 8:51 
@Dere tenes un .xml de radio que funcione?