Project Zomboid

Project Zomboid

Take No Prisoners (Hostile NPC's with PZNS framework)
 This topic has been pinned, so it's probably important
oZumbiAnalitico  [developer] 1 Nov, 2023 @ 7:04am
BUG REPORT
Please, don't be shy !!! Let me know if you find some bug, issue or incompatibility.
I believe that the mod don't have any big issue, at least no "Red Boxeses". But for strange or unintended behavior, this kind of bug are more difficult to catch, so if you find it just tell me.
If possible:
1. Send a video link.
2. Describe the steps to trigger the bug, so I can reproduce myself.
3. Send the list of mods used along side.
< >
Showing 1-15 of 19 comments
0kamiKaiju 2 Nov, 2023 @ 6:24pm 
function: hardytrait -- file: MoreTraits.lua line # 1604 | MOD: More Traits
function: MainPlayerUpdate -- file: MoreTraits.lua line # 4323 | MOD: More Traits.
[02-11-23 16:42:46.305] LOG : General , 1698957766305> -----------------------------------------
STACK TRACE

Seems to only happen with NPCs spawned by this mod and not ones spawned through the debug settings for the framework itself when used alongside "More Traits" (Dynamic version)

Though I could very likely guess this being an issue on the Dynamic more traits mod rather than yours
oZumbiAnalitico  [developer] 2 Nov, 2023 @ 6:41pm 
Thx @0kamiKaiju for reporting, must be an incompatibility, i will look into it.
oZumbiAnalitico  [developer] 2 Nov, 2023 @ 6:52pm 
@0kamiKaiju , can you share the link of this mod? The steam search engine isn't reliable ...
0kamiKaiju 3 Nov, 2023 @ 9:46am 
Gotcha https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1299328280&searchtext=more+traits

Sidenote, editing the lua myself for the more traits, removing the "Hardy" trait entirely seems to get rid of these errors. as for the performance impact caused by these two together, assuming it is just those errors, I have yet to further test
oZumbiAnalitico  [developer] 4 Nov, 2023 @ 7:50am 
@0kamiKaiju
Indeed is a incompatibility, which I believe comes from some event related to player update (high error count), as that event applies for any IsoPlayer objects the event will process the npc objects too.
I see if I can solve it, but the error seems to point out to MoreTraits files, so could be necessary to make a patch on MoreTraits.
oZumbiAnalitico  [developer] 4 Nov, 2023 @ 3:20pm 
@0kamiKaiju
I just overrided the HardyTrait function to avoid processing npcs, and seems to be fine now, at least I don't see any red boxes. For a better compatibility, should ask for the MoreTraits creator, as I don't want to know the details of MoreTraits functions.

Tell me if it worked, bye.

(The steam are bit lazy to update, so unsubscribe and subscribe to force the update of the mod)
0kamiKaiju 4 Nov, 2023 @ 5:09pm 
Gotcha! thanks for the response!
ceropegia 13 Dec, 2023 @ 11:34am 
Hi! Awesome mod, thanks for all your work!
I've used this in the past with little issues. But now I'm using the collection Vanilla++ Collection 'Sophie' and I can aim at the NPC, it seems to work (the outline appears as green) but no bullets hit them.
I've tried with my character being with the highest aim possible from start and still nothing. Being that I used the mod before and it worked, I'm pretty sure is nothing I'm doing mecanically incorrect, thouht it could be wrong, I guess.
Anyway, if I can do anything to help debug this, please tell me.
EDIT: The collection link is this: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2992074819
I know it's a lot of mods and anything could be interfering, but well, let's see.
Last edited by ceropegia; 13 Dec, 2023 @ 11:37am
oZumbiAnalitico  [developer] 17 Dec, 2023 @ 8:26pm 
@ceropegia
Sorry for the late response, it's difficult to guess which mod is interfering though, I will see it tomorrow.
Last edited by oZumbiAnalitico; 17 Dec, 2023 @ 8:27pm
ceropegia 6 Jan, 2024 @ 10:03am 
Originally posted by oZumbiAnalitico:
@ceropegia
Sorry for the late response, it's difficult to guess which mod is interfering though, I will see it tomorrow.
No problem, I know it's difficult. Thanks for the dedication anyway.
oZumbiAnalitico  [developer] 22 Jan, 2024 @ 9:24am 
@ceropegia
Mods that change the weapon damage can trigger that issue, an example is the Improved Projectile, which is already compatible. Are you using any other weapon mod?
Street Bum 3 Feb, 2024 @ 5:19pm 
Is it normal for hostile NPC to be naked when they are killed? Cause it happened in my game, i dont know if it's intentional or some bug or mod incompatibilities
oZumbiAnalitico  [developer] 4 Feb, 2024 @ 7:17pm 
@Street Bum
sometimes happens, it's caused by how the npcs load and unload from world which uses the event EveryOneMinute, actually isn't my issue, it's how the framework works, changing this event to OnTick or OnRenderTick could solve, but with performance impact, so I will not try to mess with it ... tell me if happens too often
Street Bum 5 Feb, 2024 @ 6:01pm 
Actually in my playthrough it happened all the time, and i just realized even friendly NPC from random NPC mod become naked when they died. Is it an incompatibility with other mods that i use?

Also, what type of mod that could cause this? I have tons of mods, it would be tiring to do trial and error....
oZumbiAnalitico  [developer] 11 Feb, 2024 @ 4:17pm 
@Street Bum
I aware it could happen without any mod, but isn't often as it seems to be in your gameplay.

In order to avoid sync issues you can limit the framerate (I believe the ~240 fps limit is enough) because the mod uses OnRenderTick.

You can disable the raider mod at any time, so you can test if the problem is on PZNS Framework, which I believe is.

You can look for mods which uses OnPlayerDeath event, any mod which change something about the Player will conflict with NPC's mod, because the NPC's are created with the same object class for Player. Although that could be time consuming.

If you list the mods you are using, I can search for such events directly (I already have a script to join .lua files from a folder, so it is easier than it seems), but no promises for compatibility patches, I will try to point out which mods conflicts with.
< >
Showing 1-15 of 19 comments
Per page: 1530 50