Project Zomboid

Project Zomboid

Not enough ratings
Internet Radio
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
753.863 KB
18 Sep @ 3:11am
19 Sep @ 4:38pm
3 Change Notes ( view )

Subscribe to download
Internet Radio

Description
How to install
1. Subscribe to the mod
2. Open the mod location
SteamLibrary\steamapps\workshop\content\108600\3570220139\mods\InternetRadio
3. Copy the ProjectZomboid folder from the mod
4. Go to
SteamLibrary\steamapps\common
5. Paste the ProjectZomboid folder there. Overwrite the files.
6. Launch the game

What this mod does
This mod brings real-world internet radio stations into Project Zomboid. You can tune in to live streams directly in-game using custom frequencies.
It also adds options to configure:
- minimum and maximum frequencies available on radios
- minimum and maximum distance the radio sound can be heard

How to add new stations
There are two ways to add your own stations:

1. Through Mod Options / Sandbox
- Open Mod Options or Sandbox settings.
- Add your custom station entries there.

2. Through Lua modding
Video tutorial on how to add stations:
https://www.youtube.com/watch?v=LRSQTiiZ7nA

Use the Lua command:
InternetRadio:addStation(frequency, name, url)


Example:
InternetRadio:addStation(102.6, "Word of the LORD", "https://listen.radioking.com/radio/299755/stream/346354")


To add custom categories, use a fourth parameter:
InternetRadio:addStation(frequency, name, url, category)


Example:
InternetRadio:addStation(102.6, "Word of the LORD", "https://listen.radioking.com/radio/299755/stream/346354", "Christian")


Some examples can be found here:
WTOL: Word of the Lord
Public News
MANGORADIO
Vocaloid
Country Live New York

Important about stations
- Not every internet radio will work. Stations that require you to press "Play" on a website usually won’t function in-game.
- Stations that autoplay when opened in a browser have the best chance of working.

Important about frequencies
Project Zomboid radios only work on certain steps:
- Frequencies increase in increments of 0.2 (for example: 95.0 ? 95.2 ? 95.4).
- This means you cannot set arbitrary numbers like 95.1 or 95.3.
- If you set an odd frequency, it will automatically try to adjust to the nearest valid even step.
- In case two stations use the same frequency, the last one added will automatically shift up by +0.2.

To help you quickly find valid stations, it is highly recommended to use this mod:
Easy Frequency Preset

Recommended mod
To listen to radios without equipping them:
UAL - Unequip And Listen


Check out more of my QoL mods:
https://gtm.steamproxy.vip/profiles/76561198045899180/myworkshopfiles/?appid=108600

If you enjoy the mod, consider giving it a star on GitHub:
https://github.com/ribas89/project-zomboid-ribs-mods/



Workshop ID: 3570220139
Mod ID: InternetRadio
14 Comments
yustin 20 Sep @ 1:00am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
ribs  [author] 19 Sep @ 9:38pm 
I added a min/max distance feature to the mod. You can now control how far away radio sound can be heard.
To enable it, please resubscribe and overwrite the Java classes again.
ribs  [author] 19 Sep @ 9:36pm 
@FISH
Here is the tutorial video: https://www.youtube.com/watch?v=LRSQTiiZ7nA

@yustin
I added debug logs to the new stream function. Please resubscribe and overwrite the files so we can see exactly what happens.

@jacolito
Some update may have been missing. Sorry for the frequent updates, I am improving the framework to make them less common.
jacoolito 19 Sep @ 5:36pm 
@ribs Thanks for uploading a new vid. So far so good it's working on a normal unequiped radio after I did a full reinstall of your mods.
ribs  [author] 19 Sep @ 2:40pm 
@yustin
Can you share the error logs? I tested with soda bottles and cans but nothing happened.

@FISH
Sure. Once I update the mod I’ll upload the walkthrough.
yustin 19 Sep @ 2:17pm 
after 4 hours of testing, I discovered that the mod causes 200-300 errors in a row when the character drinks any soda from cans or bottles. The problem lies in the FMODSoundEmitter.class file, which is replaced in the fmod folder.
FISH 19 Sep @ 7:45am 
is there any chance you can upload a installation walkthrough for adding new radio frequencys
ribs  [author] 19 Sep @ 6:43am 
@jacolito

I updated the video showing the mod working with dual weapons equipped. Please check it out.
ribs  [author] 19 Sep @ 6:10am 
@jacoolito

I tested with crowbar and shotgun. Both worked fine. When you unequip the radio to equip a weapon, does it immediately stop? Do you have two radios on at the same time? If so, another mod may be conflicting. Try this:

Step 1: Resubscribe (unsubscribe then subscribe again) to all dependent mods like RIBs Framework, Radio TV Core, Internet Radio, etc. This refreshes their code.
Step 2: Overwrite all classes again. This mod and Radio TV Core share Java classes that must be replaced.
Step 3: Load a new game using only these mods in the load order.

If the issue continues, send me a video so I can follow your steps and track the bug.
If it stops, you likely have a conflict with UAL or Internet Radio. Then load your mods one by one, from least likely to most likely, until the problem appears. If you find the conflicting mod, send me the link so I can test and make a patch.
jacoolito 18 Sep @ 10:50pm 
@ribs thanks for the vid and pic. The internet radio only stops when I equip a weapon. It's odd because all other radio stations works fine. So far I'm still using it, I can equip the talkie as a secondary with internet radio on and just use a single hand primary weapon.