TchernoLib

TchernoLib

Unlock New Possibilities with TchernoLib for Project Zomboid

For the dedicated survivors and world-builders of Project Zomboid, the introduction of TchernoLib marks a significant expansion of modding capabilities. This powerful library is designed to provide developers with a robust set of tools, offering high reuse potential for a multitude of future mods. Whether you’re looking to add intricate new gameplay mechanics or refine existing systems, TchernoLib lays the groundwork for extensive customization.

Core Features and Tools

TchernoLib is not a standalone gameplay mod; rather, it’s a foundational toolkit that empowers other mod creators. Its various modules offer elegant solutions for complex modding challenges, making it an essential addition for anyone serious about extending their Project Zomboid experience.

  • Global Object System: Easily integrate custom global objects into the game world with a straightforward interface, offering detailed documentation for implementation.
  • Advanced Spawning: Implement specific item spawning within designated containers or directly onto map squares via contextual actions.
  • Enhanced Sandbox Options: Provides tools for managing sandbox color selections more effectively, using an enum structure for cleaner code.
  • Player Variable Management: Streamline the distribution of player variables across multiplayer sessions, including essential IsoPlayer Flags crucial for animations. It also introduces a reliable `isCmdReady()` function for safe multiplayer command execution.
  • Movement Control Utilities: Offers a flexible interface for custom movement control and teleportation, alongside features to recompute vanilla movement speeds using Lua, with tunable options available.
  • World Object Interaction: Enables any world object to engage in dialogue, featuring a detailed interface for creating interactive elements.
  • UI Enhancements: Add new tabs to the Character Info window, integrate player mod data debugging, and improve the visual representation of world elements with custom drawing functions for circles and lines.
  • Geometry and Targeting Tools: Includes essential functions for geometric calculations like point-in-triangle and segment intersection, alongside a `getPlayerMouseSquare` function that accurately detects the player’s cursor position, even across different levels.
  • Lua Utility Functions: Provides deep table copying, square-to-table transformation for data storage, and formatting utilities for debugging Lua tables, squares, and player data.

Compatibility and Usage

TchernoLib is designed to be safe to add mid-game, though removing it might result in lost items. It is actively supported for Project Zomboid version B42 and beyond, with a separate version available for B41 and earlier. This mod functions seamlessly in both single-player and multiplayer environments, though its compatibility with splitscreen and controller input remains untested. For those seeking further assistance or wishing to engage with the development community, the official Project Zomboid Discord’s mod support channel is the place to go.

Leave a Reply