Project Zomboid

Project Zomboid

Aoldri's Patch for Survivor Radio V3.6.1
Aoldri  [developer] 5 Feb, 2022 @ 1:27pm
Bug Reports
Post your bug reports in here and use the following format if you want me to see it.

Summary:

Steps to Reproduce:

Expected Result(s):

Actual Result(s):

Console Log:
Last edited by Aoldri; 5 Feb, 2022 @ 1:28pm
< >
Showing 1-5 of 5 comments
PonyKisser:3 6 Oct, 2022 @ 5:28pm 
Mod makes tv's and radios stutter audiowise, but without it subtitles duplicate and no audio plays on Dedicated Server

Simply load into a server and switch to tvm

TVM playing

TVM plays, but the music keeps stopping and buffering every few seconds
(console log after removing patch)
function: OnDeviceText -- file: RadioWavs.lua line # 471 | MOD: SurvivorRadioV3.4

ERROR: General , 1665102396449> 502,310,230> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getObjects of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1665102396449> 502,310,230> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getObjects of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:342)
at zombie.radio.devices.WaveSignalDevice.AddDeviceText(WaveSignalDevice.java:71)
at zombie.radio.ZomboidRadio.DistributeToPlayerInternal(ZomboidRadio.java:716)
at zombie.radio.ZomboidRadio.DistributeToPlayerOnClient(ZomboidRadio.java:657)
at zombie.radio.ZomboidRadio.DistributeTransmission(ZomboidRadio.java:735)
at zombie.radio.ZomboidRadio.ReceiveTransmission(ZomboidRadio.java:920)
at zombie.network.packets.WaveSignal.process(WaveSignal.java:95)
at zombie.network.GameClient.receiveWaveSignal(GameClient.java:5274)
at zombie.network.PacketTypes$PacketType.onMainLoopHandlePacketInternal(PacketTypes.java:1022)
at zombie.network.GameClient.mainLoopHandlePacketInternal(GameClient.java:634)
at zombie.network.GameClient.mainLoopDealWithNetData(GameClient.java:611)
at zombie.network.GameClient.update(GameClient.java:422)
at zombie.GameWindow.logic(GameWindow.java:231)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:764)
at zombie.GameWindow.run_ez(GameWindow.java:666)
at zombie.GameWindow.mainThread(GameWindow.java:494)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1665102396450> 502,310,232> -----------------------------------------
Aoldri  [developer] 9 Oct, 2022 @ 9:06am 
Is there an error in the console when using my patch? This log is not useful as it doesn't use this mod.
ArsonBoy5996 15 Oct, 2022 @ 1:05am 
Summary:
Not necessarily a bug, but this mod/ possibly the base survivor radio mod have an unfortunate interaction with certain Dynamic Traits mods, specifically those that handle Alchohol withdrawal by tracking the "Drunk" moodle effect.

Using the SOTO trait overhaul and taking on Alcoholic while also listening to the radio made it impossible to lose Alcoholic, since it tracks if you're consuming it by doing a check every 10 minutes for the "Drunk" moodle.

Is there anyway to either change the moodle of/ possibly remove any stations that use the "Drunk" moodle? We're able to remove traits via debug menu but it would be super nice if we could use Survivor Radio and withdrawal mods together out of the box!

Steps to Reproduce:
Listen to Survivor Radio for 35 Days (specifically KYZ Country, which gives the Drunk moodle) while also having the alcoholic trait, and not drinking any alcohol

Expected Result(s):
Alcoholic goes away on its own after a anywhere from 28-35 days

Actual Result(s):
You still go into withdrawal, but also don't lose the trait like you normally should

Console Log:
I didn't track logs since with certain mods you can see your moodle go up and down, BUT the SOMainFile.lua of the SOTO traits mod has multiple calls to check "if currentDrunkenness > 0" every 10 or so minutes

Thanks for reading if you did!
Aoldri  [developer] 15 Oct, 2022 @ 2:16pm 
Originally posted by ArsonBoy5996:
Summary:
Is there anyway to either change the moodle of/ possibly remove any stations that use the "Drunk" moodle?
So the unfortunate thing is that the drunkenness increase is necessary to play the sound files in the first place, since this is what determines when they play upon receiving the moodle from the radio broadcast.

You could theoretically amend this by replacing the drunkenness to another moodle and change the script to check for this new one accordingly.

This would require edits to every occurrence of ' codes="DRU+X" ', where DRU is the drunkeness tag, in each radio script in media/radio/*.xml. The script edit would be in media\lua\client\RadioCom\RadioWavs.lua, specifically line 507.
iLusioN 15 Oct, 2022 @ 6:11pm 
When using the patch, everytime that TV shows say something it cut the game music and bring it back again when the subtitles disappear. Any idea how to fix?
< >
Showing 1-5 of 5 comments
Per page: 1530 50