Project Zomboid

Project Zomboid

527 ratings
PZNS NPC Framework
14
7
3
4
2
7
3
5
5
4
2
2
2
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.522 MB
Jul 9, 2023 @ 11:24pm
May 12, 2024 @ 4:58am
47 Change Notes ( view )

Subscribe to download
PZNS NPC Framework

Description
PZNS Framework (B41)

A new Lua based framework for managing, spawning, and directing NPCs in Project Zomboid

This is an effort to standardize NPC management and spawning while offering the flexibility to all modders the ability to create and modify NPCs to their content without worry about all the complicated issues such as AI behaviors, data management, and decompiling PZ source code.

THIS IS A PREVIEW WITH B41
- There are no Multiplayer Support planned
- Basically what I have learned to manage PZ game data.
- No promises on anything; if you want something, please contribute to the framework github.
- Join the Modding Community Discord to follow developments
- With the debugmode active (via sandbox-options), you can spawn up to 2 NPCs using the contextmenu PZNS Debug World

The outfits are NOT mine
They are both by Satispie, I only have the NPCs equipping them to showcase the possibilities.
- Chris - https://steamcommunity.com/sharedfiles/filedetails/?id=2903317798
- Jill - https://steamcommunity.com/sharedfiles/filedetails/?id=2903870282
- This is/was intended for testing NPC actions. In a a future update, they will be removed or toggled on/off as part of debugging. (Thanks to Tchernobill for reminding me).

There are no Multiplayer Support planned
- Technical reasons, in short:
  • TIS devs already have NPCs on their roadmap, this is a mod to get NPCs sooner for personal enjoyment.
  • I am not doubling/tripling my own workload to write server-side code and testing all that stuff.
  • If anyone else wants to try - go ahead, I am not stopping anyone from trying, the project's code is all there on github.
Cows: I will be blocking anyone requesting multiplayer support from me personally.

This mod is INCOMPATIBLE with SS/SSC
- In theory, it should be mostly compatible, but...
- For stability reasons (mostly OnRenderTicks cycles) and how poorly SS/SSC manages game data, I am declaring PZNS as incompatible.
- If you want to break your game with SS/SSC, I am not responsible for your choice.

For Other Modders
All functions in PZNS will have working examples for modders to follow so that they create and spawn their own NPC creations in-game.

If you can read, you can create a standalone NPC with less than 200 lines of code using this framework.

Workshop pages for examples
https://steamcommunity.com/sharedfiles/filedetails/?id=3001910188
https://steamcommunity.com/sharedfiles/filedetails/?id=3001909546

For Details
Main Project GitHub: https://github.com/shadowhunter100/PZNS
Example Group Github: https://github.com/shadowhunter100/PZNS_RosewoodPolice
Example Standalone Github: https://github.com/shadowhunter100/PZNS_AgentWong

Now go make your own NPCs and please contribute to the main project.

[discord.gg]

Please report your issues at the the github Issues page.
https://github.com/shadowhunter100/PZNS/issues

ko-fi
Support me (and feed my cat) on ko-fi!
https://ko-fi.com/cowswg

Workshop ID: 3001908830
Mod ID: PZNS_Framework
Popular Discussions View All (15)
16
1
Jul 15, 2024 @ 6:26am
PINNED: Technical Details: Why I no longer actively work on SS/SSC
{5LINE}Cows with Guns
7
Oct 30, 2023 @ 4:54pm
PINNED: SHARE YOUR NPC MODS
{5LINE}Cows with Guns
7
1
Aug 24, 2023 @ 9:51pm
PINNED: HELP WANTED!
{5LINE}Cows with Guns
305 Comments
®🍁kyi⭒˚。⋆ Apr 1 @ 5:04am 
B42 UPDATE PLS
Willi Mar 29 @ 9:05am 
Multiplayer ?
ANGLORD Mar 12 @ 2:57pm 
This will be legendary in B42.
Guns399 Mar 12 @ 12:29am 
Build 42 when?
VEXPZR Mar 4 @ 8:55am 
I love this mod, but for some reason it's messing with my cursor and the game in general now.
Shaggoth (Ищезаяц) Feb 27 @ 8:47am 
one question only. what the heck is ss/ssc?
𝓖𝓱𝓸𝓼𝓽 Jan 19 @ 12:09pm 
Npc Survivor keeps killing them when I spawn em.... They wont work together. almost like they see em as zombies
ryley2312 Jan 10 @ 10:02pm 
why does it take ten shots to kill a npc kills it for me
WTFłłVIPΣR Dec 31, 2024 @ 10:55pm 
Can you please add a way to teleport companions to myself. They get stuck in places sometimes.
斯文人 Dec 24, 2024 @ 11:35am 
B42 pls bro