Project Zomboid

Project Zomboid

评价数不足
UAL - Unequip And Listen
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
292.439 KB
9 月 14 日 下午 4:59
9 月 14 日 下午 5:48
2 项改动说明 ( 查看 )

订阅以下载
UAL - Unequip And Listen

描述
Keep listening to radios without holding them




Features
- Radio Texts: Show broadcast text even when the radio is unequipped.
- Radio Sound: Play broadcast audio without having the radio in your hands.

All features can be customized in the sandbox options.
Mod options mirror sandbox settings and cannot override multiplayer server configurations.




Important Requirement
This mod WILL NOT WORK if the required compiled Java classes are not replaced.
To replace them, install:

Radio TV - Core
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3568442599

Follow the installation instructions on the Steam mod page.




Tested mods
These mods are tested and are working with UAL:

- True Music B42 - works without a patch
- TV & Radio ReInvented - works without a patch
- Survivor Radio V3.7.0 - Needs "UAL - Broadcast Voicer" patch
- Voiced Radio and TVs - Needs "UAL - Broadcast Voicer" patch




Additional Compatibility
To patch the vanilla behavior of turning off the radio when unequipped, install:
Keep That Radio On - Mod Friendly
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3558422176

Some other mods also can turn off the radio, if that is your case you can install the patches for those mods:
UAL - Broadcast Voicer
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3568467372

New compatibility mods will be added over time. Please comment if you encounter incompatibilities with other mods.




Check out more of my QoL mods:
https://psteamcommunity.yuanyoumao.com/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: 3568445867
Mod ID: UALUnequipAndListen
22 条留言
ribs  [作者] 9 月 18 日 上午 3:07 
@DOG1804

I double-checked and found the issue. I’ve uploaded an update to the mod, please resubscribe and reapply the class file overrides.
ribs  [作者] 9 月 17 日 上午 10:32 
@skakk
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3569873370

I tested with both mods. In week one I was getting some errors but the radio was still playing even when unequipped.

I checked the code of both mods and there are some instances where the radio gets turned off, but they are tied to item creation and task handling, not directly to unequipping or sound control. Maybe it was just a bug. The tricky part is that we cannot reproduce the exact steps that caused it.

@DOG1804
The behavior you mentioned is definitely strange. I have never run into that myself. Try starting a new game with no mods enabled except UAL and test again. At least now we know it is a mod incompatibility and the next step is figuring out which mod is responsible.
DOG1804 9 月 16 日 下午 4:59 
Well, I rearranged the loading order and the radios stay on so it works fine, now the problem is that it doesn't show me the texts and the radio sound doesn't follow me, it stays fixed on the world
Skakk 9 月 16 日 下午 3:54 
Its possible that I didn't have the Broadcast Voicer mod activated, although I am subscribed to it and believe it was enabled.
Sorry I can't help you confirm my issue, as I now have a different load order so can't check what it was.
Yes that mod you linked and this one;
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3403180543

Again I don't know if these mods were the issue, I just suspected it may have compatibility issues due to the Week One mod having its own voiced broadcast on the tv on day 1.
ribs  [作者] 9 月 16 日 下午 12:20 
@Skak

All KTRO mods do is bypass the Lua-side function ISRadioWindow:update , which turns off the radio in vanilla. They do not keep radio stations on, since that part is handled on the Java side. That is why the Radio TV - Core mod and UAL mod exist, to remove the Java code that disables sound and chat when unequipped.

The Survivor Radio mod uses Broadcast Voicer as a base. When Broadcast Voicer is enabled, a function called RadioWavs.adjustSounds runs every tick and turns the radio off. This is not part of the vanilla ISRadioWindow:update method, which is why it needs patching.

I asked for the links because there are several Week One and Bandits mods. If you share the exact ones, I can test them directly. Having the links would save me the time of searching through every Bandits mod. I guess you might be referring to this one: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3268487204 but I am not sure.
Skakk 9 月 16 日 下午 12:02 
@ribs - I potentially had issues with your previous mods(KTRO) not allowing Survivor Radio audio to work, although you never confirmed if they would allow it or that they were just to prevent walkies from turning off when unequipped.
I think my load order and/or 'Week One' mod were interfering with Survivor radio not having audio.

I am relatively new to B42 version of the game, and i didn't do much troubleshooting, so can't say if your mod was actually the issue.

Since deactivating only Bandits2 and Week One mods and using your new mods in the order you posted, I now have audio for Survivor Radio.
ribs  [作者] 9 月 16 日 上午 10:47 
@Skakk could you please send me the links to the mods you suspect disable the radio? I can test them here.
ribs  [作者] 9 月 16 日 上午 10:37 
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3569345562

It works for the Alice webbing slot when you unequip it. Do you suspect any other special slot or mod might be causing it?

Please try equipping the radio again. Does it turn off every time you unequip it, or does it stay on?

If it stays on, the Lua part is working and you need to properly install the core mod:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3568442599

If it turns off, then the Lua part is shutting down. Try loading a new game without any other mods and check if it works. I also uploaded a mod load order for you to see how the mods should be loaded for it to work. Try the vanilla radios first.
DOG1804 9 月 16 日 上午 7:21 
You can add support for special slots, they don't work as they should https://imgur.com/a/jsKJuwp
Skakk 9 月 15 日 下午 9:21 
Cheers ribs,
Survivor Radio has audio for me again.

Not sure on the load order I had, but either the load order was off or 'Week One' mod was incompatible. I removed Bandits & Week One due to lag issues, and tweaked load order to your sequence and now it works.
Thanks for everything.