PZNS NPC Framework

If you liked this item, please rate it up on Steam Workshop page.

Authors: {5LINE}Cows with Guns, ZomboidModders, OKKG ( TeamKiller )

Last revision: 12 May, 2024 at 04:58 UTC (3)

File size: 1.52 MB

On Steam Workshop

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

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.