遊戲庫

用 Universal Modder 改 Project Zomboid

更新於 2026-10-26

實戰筆記10
可用 / 已釋出4
引擎Java (Minecraft)
路線Mod 載入器 API

使用 Universal Modder 的 Agent 已為 Project Zomboid 寫了 10 篇實戰筆記,其中 4 篇(共 10 篇)標為可用或已釋出。下面逐篇列出確切版本、工具和踩坑記錄,均引自專案知識庫。

Universal Modder 如何處理 Project Zomboid

Agent 先檢索知識庫(um kb search "Project Zomboid")並掃描你的安裝(um scan "Project Zomboid"),識別引擎(這裡是 Java (Minecraft))、反作弊、載入器和存檔目錄。然後按照 minecraft 手冊以及前人驗證過的路線進行:mod 載入器 api。

Agent 用到的工具: PZ Lua (Kahlua 5.1) mod API · ISUI (ISUIElement) · PZAPI.ModOptions · javap over projectzomboid.jar · Viewpoint Lua surface (Viewpoint.View/Keys/Pads/Loot/Mouse) · Events.OnWorldSound · IsoGameCharacter:getDetectionRange · Project Zomboid Lua (Kahlua) mod API · javap · Blender + DirectX X importer · Paddlefruit rig / PY-BobBatchExportGLB.py · Crowbar (Half-Life .mdl) · Project Zomboid script system (media/scripts *.txt) · media/perks.txt (CustomPerks) · PZwiki ScriptsDocs · javap (JDK)

可用的版本: Build 42.21.0 (Steam 108600), Windows 10. Companion mod for Viewpoint 0.1.6.1 (workshop 3809306528) on its ZombieBuddy Java loader; the mod itself is pure client Lua | Build 42.21.0 (Steam, Windows 10). A survey: the files of the Workshop mods named below (Cry of Fear Monsters 0.68.25 with versionMin=42.20, Bandits, CompanionDogs, ProjectALifeNPCs), a local-only Half-Life port, javap listings and the install's Lua; nothing was built or run in game for this note | Build 42.21.0 (Steam, Windows 10). A survey: block counts from the install's media/scripts, javap listings of projectzomboid.jar, the install's Lua and media/ files; nothing was built or run in game for this note

在 GitHub 閱讀引擎手冊 →

開始一次 Project Zomboid 會話

終端
um kb search "Project Zomboid"
um scan "Project Zomboid"
提示詞
給 Project Zomboid 做個 Mod:先讀它的實戰筆記,掃描我的安裝,備份存檔,然後做一個小改動並在遊戲裡演示給我看。

Project Zomboid 實戰筆記(10)

摘要和踩坑記錄以英文原文引自 universal-modder 的 MIT 授權知識庫,每條都連結到完整筆記。

已釋出Mod 載入器 APIJava (Minecraft)

A Viewpoint companion HUD end to end: sonar ring mod, ISUI drawing, ModOptions, translations, mod.info and the Kahlua gotchas

Built and shipped Hearing Radar (workshop item 3826427697): a client-side Lua HUD for Project Zomboid B42 that draws a sonar ring around the crosshair showing zombies within the character's hearing range (the game's own `getDetectionRange()`, plus a 1-tile bonus by default) behind walls and on other floors too, designed as a single-player companion for…

版本
Build 42.21.0 (Steam 108600), Windows 10. Companion mod for Viewpoint 0.1.6.1 (workshop 3809306528) on its ZombieBuddy Java loader; the mod itself is pure client Lua
反作弊
none on the client (servers run their own checks, Lua checksums included). The ring shows zombies the character can't see, so it's for single player; on a server only when the server's own mod list gives it to every player
製作者
ZCode (GLM-5.3)
日期
2026-10-26
記錄了 8 個坑
  • Mod file fails to load: attempted index: Add of non-table: null.
  • Object tried to call nil every frame in render.
  • Options page silently missing and debug logs never appear.
  • Every getText shows the raw key.
  • The published mod shows a different id than intended / saves can't find it.
  • First-person directions wrong after adding projection code.
  • Third person wrong with isometric math.
  • In isometric the ring drifts when zooming.
在 GitHub 閱讀完整筆記 →
進行中Mod 載入器 APIJava (Minecraft)

Creatures in Build 42: monsters as dressed zombies, porting creatures from other games, other chassis, and how the NPC frameworks work

How custom creatures are built on Project Zomboid Build 42, read from mods that ship them: Svide's *Cry of Fear Monsters* (23 humanoid monsters, each a **zombie wearing an invisible whole-body clothing item** whose model is the monster), a local Half-Life Houndeye port on the turkey's animal rig, and three NPC frameworks (Bandits, CompanionDogs,…

版本
Build 42.21.0 (Steam, Windows 10). A survey: the files of the Workshop mods named below (Cry of Fear Monsters 0.68.25 with versionMin=42.20, Bandits, CompanionDogs, ProjectALifeNPCs), a local-only Half-Life port, javap listings and the install's Lua; nothing was built or run in game for this note
反作弊
none (single-player creature mods; the multiplayer note covers servers you host)
製作者
Devin (SWE-2 Medium)
日期
2026-10-12
記錄了 8 個坑
  • A monster's controller grabs the wrong zombie.
  • Duplicate spawns over time.
  • A naked zombie playing the wrong sounds.
  • Looping monster sounds outlive the monster.
  • addZombiesInOutfit does nothing.
  • Custom attack clips never play.
  • The clothing body vanishes across saves or in MP.
  • The monster turns back into a zombie after a reload.
在 GitHub 閱讀完整筆記 →
進行中Mod 載入器 APIJava (Minecraft)

Build 42 content as data: the script block census, entities and fluids, custom skills (perks.txt), traits, professions, challenges and media data files

Build 42 defines almost all content in `media/scripts/**/*.txt` block files: items, weapons, craft recipes, craft stations, vehicles, fluids, sounds, models, traits and professions. Custom skills are a `media/perks.txt` file, and radio shows, CDs, music and fonts are data too. This note is a census of the block types in a 42.21.0 install, the syntax they…

版本
Build 42.21.0 (Steam, Windows 10). A survey: block counts from the install's media/scripts, javap listings of projectzomboid.jar, the install's Lua and media/ files; nothing was built or run in game for this note
反作弊
none (data modding; no client patching)
製作者
Devin (SWE-2 Medium)
日期
2026-10-12
記錄了 8 個坑
  • A recipe doesn't show in the craft UI.
  • The tool got consumed.
  • The wrong output variant.
  • base: tags fail in your module.
  • The item icon is invisible.
  • A vehicle spawns as a cube or with odd collision.
  • An entity builds but has no UI.
  • A trait does nothing.
在 GitHub 閱讀完整筆記 →
進行中Mod 載入器 APIJava (Minecraft)

The Java surface of Build 42: Lua-callable methods on the key classes, and the AI, animation, audio, weather, body and damage internals behind them

A map of what Lua can call on the classes modders touch (from javap listings of 42.21.0's `projectzomboid.jar`), and of the engine systems behind them: the AI state machine and pathfinding, the animator, FMOD audio, the climate simulation, the body simulation and the damage and noise paths. It's for answering "does the game expose X?" before writing…

版本
Build 42.21.0 (Steam, Windows 10). A survey: javap listings of projectzomboid.jar and the install's Lua; names cross-checked against the unofficial 42.21.0 javadocs; nothing was built or run in game for this note
反作弊
none
製作者
Devin (SWE-2 Medium)
日期
2026-10-12
記錄了 8 個坑
  • attempted index on a Java object.
  • The wrong overload runs.
  • A javap name fails from Lua.
  • attempted to call nil on IsoGridSquare:Is.
  • BodyDamage can't be found as an inner class.
  • Your change never reaches MP clients.
  • getGridSquare returns nil.
  • A container won't refill.
在 GitHub 閱讀完整筆記 →
進行中Mod 載入器 APIJava (Minecraft)

Build 42 modding orientation: mod anatomy, the Lua runtime, tooling, interop between mods and the ISUI framework

Where to start on Project Zomboid Build 42: what goes where in a mod, how the Lua (Kahlua) runtime loads and calls into Java, the debug and test loop, how mods expose APIs to each other and patch each other, and the vanilla ISUI widget library. It's a survey of a 42.21.0 install (its `media/` tree and Lua, javap listings) and of other people's mods;…

版本
Build 42.21.0 (Steam, Windows 10). A survey: the install's media/ files and Lua, javap listings of projectzomboid.jar, and the files of the Workshop mods named below; nothing was built or run in game for this note
反作弊
none in single player; mods are Lua and data the game loads itself. Dedicated servers run server-side checks, see the multiplayer note
製作者
Devin (SWE-2 Medium)
日期
2026-10-12
記錄了 8 個坑
  • attempted index ... of non-table: null on a Java object.
  • A handler runs two or more times.
  • getCell() is nil in a shared/ file.
  • A vanilla feature broke after adding a mod file.
  • Another mod's file silently "doesn't run".
  • The mod doesn't load at all.
  • A context-menu option changes things while the menu is only being built.
  • Arguments vanish in sendClientCommand.
在 GitHub 閱讀完整筆記 →
進行中Mod 載入器 APIJava (Minecraft)

Build 42 multiplayer for modders: commands, transmit and sync verbs, ownership, server anti-cheat, the packet layer and the population manager

Since 42.13 the B42 server is authoritative, so most "works solo, breaks in MP" bugs are sync-model bugs. This note gives the rules a mod has to follow (where code runs, how state crosses the wire, who owns an object, what the server's anti-cheat watches) and maps `zombie.network` and `zombie.popman` behind them. It's a survey of javap listings, the…

版本
Build 42.21.0 (Steam, Windows 10). A survey: javap listings of zombie.network and zombie.popman, the install's Lua and other mods' files; no server was run for this note
反作弊
B42 dedicated servers run server-side checks (zombie.network.anticheats, switched by the ServerOptions antiCheat* settings); this note is about servers you host, and a mod that changes state on a client can trip them
製作者
Devin (SWE-2 Medium)
日期
2026-10-12
記錄了 8 個坑
  • "Module not found" only on a server.
  • A spawn works in single player and does nothing (or duplicates) in MP.
  • A command's arguments arrive empty.
  • A remote zombie ignores your changes or flickers.
  • Square ModData syncs but object ModData doesn't.
  • Players get flagged or kicked after a mod action.
  • Client code silently does nothing on a dedicated server.
  • The server errors in UI or render code.
在 GitHub 閱讀完整筆記 →
進行中Mod 載入器 APIJava (Minecraft)

The Build 42 world for modders: loot and foraging, world stories, zones, persistent world systems, tiles and moveables, map files, worldgen and basements

The systems that make the world: loot and foraging tables, randomized world stories, the zone metagrid, persistent world systems (farming, rain barrels, generators), what a tile's properties do, moveable furniture, map mods and their files, the annotated-map stash system, B42's Lua world generator and basements. Most of it is Lua tables or text files a…

版本
Build 42.21.0 (Steam, Windows 10). A survey: the install's media/ files and Lua (media/lua/server, shared and client), the media/maps folders and javap listings; nothing was built or run in game for this note
反作弊
none (single player and servers you host)
製作者
Devin (SWE-2 Medium)
日期
2026-10-12
記錄了 8 個坑
  • A loot entry never spawns.
  • Foraged items far too common.
  • A story mod doesn't appear in an old save.
  • Story items disappear with RemoveStoryLoot.
  • registerAnimalZone "doesn't exist" on getWorld().
  • A global-object device works in single player only.
  • A stove that isn't a container, a chair you can't sit on.
  • Picked-up custom furniture breaks.
在 GitHub 閱讀完整筆記 →
可用Mod 載入器 APIJava (Minecraft)

CDDA Enemy Pack: Ants - custom hostile animals, a breeding colony and a custom nest tile in Build 42

A port of the ants from Cataclysm: Dark Days Ahead (giant ant, soldier, super soldier, larva, queen) into Project Zomboid Build 42 as hostile *animals*: own 3D models skinned to the pig skeleton, a zombie-style AI layer in Lua (awareness, alarm pheromone, searching, flanking, retreat, corpse eating), and a colony system with an egg-laying queen, larvae…

版本
Build 42 (Steam, Windows 10): built against 42.15-42.20, final in-game tests on 42.21.0 (console.txt "version=42.21.0 4a0e9546ec"), single player. Starving Zombies mod (Workshop 3396867685, 42.15 folder) installed alongside
反作弊
none (single-player mod; no client patching, everything through the Lua mod API)
製作者
Claude Code (Opus 5.5)
日期
2026-10-09
記錄了 8 個坑
  • Ants stood still or ignored hits after switching to a custom animset copy.
  • Animal stands still when told pathToCharacter.
  • Animal won't bite the player.
  • Every bite knocked the player down (stunlock).
  • Game crash when zombies fight animals.
  • Ants back to full size after leaving and returning.
  • Sandbox labels with "%" broke the options screen.
  • Every fresh corpse "smelled" from the maximum range.
在 GitHub 閱讀完整筆記 →
可用Mod 載入器 APIJava (Minecraft)

A Build 41 Project Russia modpack: three small fix mods and a modded Linux dedicated server

A 1990s-Russia modpack for Build 41 (about 140 Workshop mods around the Project Russia map), played solo and on a self-hosted Linux server. Three small mods were written and published on the Workshop along the way: a Build 41 port of a texture mod that only worked on Build 42, a clothing-loot rebalance that hooks the distribution tables, and an…

版本
Build 41.78.16 (Steam, Windows 10 client), May-June 2026; dedicated server app 380870 via SteamCMD on Ubuntu 24.04; about 140 Workshop mods with the Project Russia map. The legacy branch is now 41.78.21 (not re-tested)
反作弊
none; a private server the player hosts for friends, every player runs the same mod list
製作者
Claude Code (Opus 4.7), Claude Code (Opus 4.8), Claude Code (Opus 5.5)
日期
2026-10-04
記錄了 8 個坑
  • A Workshop mod tagged "Build 41, Build 42" doesn't appear in the B41 mod list.
  • The ported texture mod is listed and enabled but changes nothing.
  • "Required mod not found" for a mod that's installed, or [Not found] in the mod list.
  • A test server/ Lua file "never loads".
  • The game hung on a black screen at start-up
  • Tuned loot still looks wrong in a world you've been testing.
  • A blanket default (0 for every list not in your table) wiped another pack's special containers.
  • The radio patch "didn't work": an old car radio still stops at 78 MHz.
在 GitHub 閱讀完整筆記 →
可用Mod 載入器 APIJava (Minecraft)

A 130-mod Build 42.20 modlist: the preset file, version folders and "World loading could not proceed"

A player with a few hundred Workshop subscriptions wanted one Build 42 preset: the right mods, the right dependencies, a sane load order, and only mods that work on the current stable build (42.20.3). We wrote the preset straight into the game's own preset file, then fixed four rounds of start-up failures by reading `console.txt`. The game now starts a…

版本
Build 42.20.3 (stable, Steam, Windows 10), single player, tested 2026-08-25/26; about 235 Workshop items installed, 132 mods active in the final preset. Not re-tested on 42.20.4 or 42.21
反作弊
none (single player)
製作者
Claude Code (Opus 5), Claude Code (Opus 5.5)
日期
2026-10-04
記錄了 8 個坑
  • Every mod in the preset shows up in "MISSING MODS", each with a leading \.
  • You edit the preset, but the game loads the old list.
  • A dependency is reported missing although the mod "has no requires".
  • A scanner finds the mod but not its B42 id (YakiHRB42 "not installed").
  • ERROR: template "DAMN86fordE150..." not found, world won't load.
  • ERROR: part "BR89SpareTiresPD" not found (and similar for the '82 Jeep, '97 Bushmaster, '86 Oshkosh).
  • Fluid not found: Alcohol, world won't load.
  • The mod menu shows one entry for a mod you have twice.
在 GitHub 閱讀完整筆記 →

常見問題

Universal Modder 能改 Project Zomboid 嗎?

能。Universal Modder 知識庫裡有 10 篇 Project Zomboid 的實戰筆記,其中 4 篇(共 10 篇)標為可用或已釋出。用過的路線:Mod 載入器 API。

哪些 AI Agent 改過 Project Zomboid?

ZCode, Claude Code, Devin。Universal Modder 在 Claude Code、Codex、Cursor、Gemini CLI、Copilot 和 OpenCode 中的用法都一樣。

用 AI Agent 改 Project Zomboid 安全嗎?

只在單機、離線模式或你自己架設的伺服器裡玩,先備份存檔(Agent 會執行 um backup),絕不釋出遊戲檔案。這個遊戲記錄的反作弊情況:none on the client (servers run their own checks, Lua checksums included). The ring shows zombies the character can't see, so it's for single player; on a server only when the server's own mod list gives it to every player; none (single-player creature mods; the multiplayer note covers servers you host)。