Project Zomboid

Project Zomboid

Reactive Zombies
 Tämä aihe on kiinnitetty, joten se on todennäköisesti tärkeä
JulianFVM  [kehittäjä] 3.5.2023 klo 16.01
Bugs & Errors Fixing
If your game is popping up a red square in the bottom right corner of your screen, maybe this mod is the one causing the problem. Please, go to C:\Users\%Username%\Zomboid\Logs, find the DebugLog file (named NUMBERS_DebugLog), and share it down below
Viimeisin muokkaaja on JulianFVM; 3.5.2023 klo 21.35
< >
Näytetään 1-13 / 13 kommentista
This error pops when I start a new game and a new world:

`attempted index: StartDayOne of non-table: null function: setSandboxVars -- file: ReactiveZombies_CDDAZomboid.lua line # 258 | MOD: Reactive Zombies - CDDA Zomboid Patch function: initReactiveZombies -- file: ReactiveZombies_CDDAZomboid.lua line # 886 | MOD: Reactive Zombies - CDDA Zomboid Patch java.lang.RuntimeException: attempted index: StartDayOne of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492) 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:65) at zombie.gameStates.IngameState.enter(IngameState.java:737) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145) at zombie.GameWindow.logic(GameWindow.java:298) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:667) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source) `

It happens even with only CDDA and your mod enabled.
JulianFVM  [kehittäjä] 3.5.2023 klo 16.38 
Daevinski lähetti viestin:
This error pops when I start a new game and a new world:

`attempted index: StartDayOne of non-table: null function: setSandboxVars -- file: ReactiveZombies_CDDAZomboid.lua line # 258 | MOD: Reactive Zombies - CDDA Zomboid Patch function: initReactiveZombies -- file: ReactiveZombies_CDDAZomboid.lua line # 886 | MOD: Reactive Zombies - CDDA Zomboid Patch java.lang.RuntimeException: attempted index: StartDayOne of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:492) 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:65) at zombie.gameStates.IngameState.enter(IngameState.java:737) at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145) at zombie.GameWindow.logic(GameWindow.java:298) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:765) at zombie.GameWindow.run_ez(GameWindow.java:667) at zombie.GameWindow.mainThread(GameWindow.java:495) at java.base/java.lang.Thread.run(Unknown Source) `

It happens even with only CDDA and your mod enabled.

I found the problem. When I locally hotfixed a problem before uploading the patch, I forgot to rename a couple of things for it. Will test for a bit, but that should fix it (hopefully)
LOG : General , 1683390682173> 19,403,233,433> -----------------------------------------
STACK TRACE
-----------------------------------------
function: isStartDay -- file: ReactiveZombies.lua line # 143 | MOD: Reactive Zombies
function: checkHitZombie -- file: ReactiveZombies.lua line # 990 | MOD: Reactive Zombies

LOG : General , 1683390683321> 19,403,234,581> -----------------------------------------
STACK TRACE
-----------------------------------------
function: isStartDay -- file: ReactiveZombies.lua line # 143 | MOD: Reactive Zombies
function: checkHitZombie -- file: ReactiveZombies.lua line # 990 | MOD: Reactive Zombies

ERROR: General , 1683390683322> 19,403,234,581> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: __le not defined for operand at KahluaUtil.fail line:82.
ERROR: General , 1683390683322> 19,403,234,582> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: __le not defined for operand
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:900)
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:214)
at zombie.characters.IsoZombie.Hit(IsoZombie.java:926)
at zombie.network.packets.hit.WeaponHit.process(WeaponHit.java:58)
at zombie.network.packets.hit.PlayerHitZombiePacket.process(PlayerHitZombiePacket.java:76)
at zombie.network.packets.hit.HitCharacterPacket.tryProcessInternal(HitCharacterPacket.java:78)
at zombie.network.packets.hit.HitCharacterPacket.tryProcess(HitCharacterPacket.java:70)
at zombie.network.GameServer.receiveHitCharacter(GameServer.java:6634)
at zombie.network.PacketTypes$PacketType.onServerPacket(PacketTypes.java:1022)
at zombie.network.GameServer.mainLoopDealWithNetData(GameServer.java:1532)
at zombie.network.GameServer.main(GameServer.java:800)
LOG : General , 1683390683322> 19,403,234,582> -----------------------------------------
STACK TRACE
JulianFVM  [kehittäjä] 6.5.2023 klo 11.42 
@Praisedelx, hey men! give me some context please
1) Are you using CDDA_Zomboid?
2) If yes, have you enabled only the CDDA_Zomboid Patch?
3) Are you using ModManager as I advice?
4) Are you in singleplayer, dedicated or MP? Mod works in SP only.
In the meantime, I'll check if I can reproduce the error.
Hi JulianFVM, my server send me this:
LOG : General , 1683894288506> 20а528а417> Reactive Zombies: modData still not set
JulianFVM  [kehittäjä] 12.5.2023 klo 5.43 
@Alximik, hey! Currently, the mod is SP-only. MP compatibility will come some day, currently I don't have much time to work on something that big (it requires a lot of testing, which means it requires time, which I have limited right now). Sorry!
`function: setBehavior -- file: ReactiveZombies.lua line # 350 | MOD: Reactive Zombies
function: makeSmarter -- file: ReactiveZombies.lua line # 523 | MOD: Reactive Zombies
function: checkZombieStats -- file: ReactiveZombies.lua line # 759 | MOD: Reactive Zombies
function: onEveryDays -- file: ReactiveZombies.lua line # 989 | MOD: Reactive Zombies
java.lang.RuntimeException: __lt not defined for operand
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:900)
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:65)
at zombie.GameTime.update(GameTime.java:637)
at zombie.gameStates.IngameState.UpdateStuff(IngameState.java:566)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1623)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`

not sure what's the problem here. It was working in a previous older game play. Not working in a new game. CDDA is disabled. Only RZ and Darkness is enabled (but with Zombie Lore disabled). Reactive (NOT CDDA version) + Reactive Sounds is placed at the bottom of the list. Been switching those 2 around but does not seem to resolve the problem. And yes reactive is not functioning
JulianFVM  [kehittäjä] 5.7.2023 klo 18.44 
@Blackcain, that's very weird. I've checked and the line that's causing you troubles hasn't been touched since the first update xd. It's been working until now. Seems like I need more info. Has the problem gone away on its own? What other mods are you using apart from the Darkness is Coming?
JulianFVM lähetti viestin:
@Blackcain, that's very weird. I've checked and the line that's causing you troubles hasn't been touched since the first update xd. It's been working until now. Seems like I need more info. Has the problem gone away on its own? What other mods are you using apart from the Darkness is Coming?

I have tons of mods, probably in the hundreds. Oddly enough I no longer see the error as of today.

What I did though was set Reactive right at the bottom so it has highest priority load. Another thing was to completely disable Darkness's Zombie Lore (every checkbox) with the logic I only wanted one rule to be active. It seems to work, and now I can see the zombie behavior as expected from the mod :D

Thanks for the response regardless!
`function: setBehavior -- file: ReactiveZombies.lua line # 350 | MOD: Reactive Zombies
function: makeSmarter -- file: ReactiveZombies.lua line # 534 | MOD: Reactive Zombies
function: checkZombieStats -- file: ReactiveZombies.lua line # 759 | MOD: Reactive Zombies
function: onEveryDays -- file: ReactiveZombies.lua line # 989 | MOD: Reactive Zombies
java.lang.RuntimeException: __lt not defined for operand
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:900)
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:65)
at zombie.GameTime.update(GameTime.java:637)
at zombie.gameStates.IngameState.UpdateStuff(IngameState.java:566)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1623)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`

Hi !
I go this error too. I'm only use your mod.

I notice that this error happens a few minutes after a fight with a group and when calm returns.

I may be wrong but I have the impression that the remaining zombies (for those who haven't spotted me) around should change their behavior in your code and this error occurs.
Mikado lähetti viestin:
`function: setBehavior -- file: ReactiveZombies.lua line # 350 | MOD: Reactive Zombies
function: makeSmarter -- file: ReactiveZombies.lua line # 534 | MOD: Reactive Zombies
function: checkZombieStats -- file: ReactiveZombies.lua line # 759 | MOD: Reactive Zombies
function: onEveryDays -- file: ReactiveZombies.lua line # 989 | MOD: Reactive Zombies
java.lang.RuntimeException: __lt not defined for operand
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:900)
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:65)
at zombie.GameTime.update(GameTime.java:637)
at zombie.gameStates.IngameState.UpdateStuff(IngameState.java:566)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1623)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
`

Hi !
I go this error too. I'm only use your mod.

I notice that this error happens a few minutes after a fight with a group and when calm returns.

I may be wrong but I have the impression that the remaining zombies (for those who haven't spotted me) around should change their behavior in your code and this error occurs.


Same error without any zombie around when a new day arrives.
JulianFVM  [kehittäjä] 17.7.2023 klo 21.16 
I think I found the problem you guys are having. Your zombies are just too damn smart, and the mod goes crazy trying to make them even smarter and they can't!. In other words, I can't do math xd. I'll be testing this and launching the fix as soon as everything works as it should. Hopefully next weekend. Your saves shouldn't be affected, the error will keep popping up for now. Sorry for this, and thank you for your feedback!
hey there, I think the tooltip for the group size sandbox option is flipped between min and max or is it supposed to be like that?

also, is it possible to add compatibility with occult zombies mod so that, the more the zombies evolve (more tough, smarter, resists fire more), the higher the spawn chance of the special zombies?
< >
Näytetään 1-13 / 13 kommentista
Sivua kohden: 1530 50