Project Zomboid

Project Zomboid

375 人が評価
Broadcast Voicer
4
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
1.124 MB
2023年5月8日 19時39分
1月17日 13時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日 23時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
ak47 ruler 1月25日 15時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?
Deimos 1月21日 12時24分 
No entendi nada de como instalar el mod :aunope:
Fed-cap  [作成者] 1月20日 19時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日 18時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日 19時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?