Project Zomboid

Project Zomboid

543 ratings
PZNS NPC Framework
15
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
9 Jul, 2023 @ 4:24pm
11 May, 2024 @ 9:58pm
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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2903317798
- Jill - https://steamhost.cn/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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3001910188
https://steamhost.cn/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
14 Jul, 2024 @ 11:26pm
PINNED: Technical Details: Why I no longer actively work on SS/SSC
{5LINE}Cows with Guns
7
30 Oct, 2023 @ 10:54am
PINNED: SHARE YOUR NPC MODS
{5LINE}Cows with Guns
7
1
24 Aug, 2023 @ 2:51pm
PINNED: HELP WANTED!
{5LINE}Cows with Guns
310 Comments
Krazium VR 22 Jun @ 9:56am 
plz dont stop your SS mod is the best and this mod your making could turn into something big!
Yumi OWO 12 Jun @ 9:25am 
There is no way to give them guns or armor. They are just stuck with bats. Download Supurb Survivors. This is stupid
Uncle Igor (No Relation) 4 Jun @ 1:38pm 
All these people bitching about no multiplayer support should maybe take the time to open their eyes and fucking read, and maybe you will understand why there is no multiplayer support, I can tell the creator must be getting tired of illiterate bums constantly still asking for multiplayer support even way after the creator himself has said they're NOT going to do it themselves, and that they're even going as far a blocking people who keep asking them for it (Understandably), If you want a multiplayer sipport for it MAKE IT YOUR OWN FUCKING SELF or shut the fuck up for once:steamfacepalm:
Jebus 4 Jun @ 11:35am 
WHY Do none of the Modders ever consider Multiplayer its so god damn lame like wanting to fight stuff other than zombies with friends? WHY, why does it have to be a straight up No to Multiplayer man :/
number1millipedefan 10 May @ 11:39am 
Shaggoth Supurb Survivors/Supurb Survivors Continued
®🍁kyi⭒˚。⋆ 31 Mar @ 10:04pm 
B42 UPDATE PLS
Willi 29 Mar @ 3:05am 
Multiplayer ?
ANGLORD 12 Mar @ 8:57am 
This will be legendary in B42.
Guns399 11 Mar @ 6:29pm 
Build 42 when?
VEXPZR 4 Mar @ 1:55am 
I love this mod, but for some reason it's messing with my cursor and the game in general now.