Skip to content

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

PZ Lua API Viewer

A static web app for browsing the Project Zomboid Lua API extracted from decompiled Java sources. https://geromet.github.io/PZJavaDocs/

Files

  • index.html — the viewer app
  • lua_api.json — extracted API data (generated by extract_lua_api.py)

Hosting on GitHub Pages

  1. Create a new GitHub repository (e.g. PZJavaDocs)
  2. Push the contents of this folder:
    git init
    git add index.html lua_api.json README.md
    git commit -m "Initial commit"
    git remote add origin https://github.com/YOUR_USERNAME/PZJavaDocs.git
    git push -u origin main
    
  3. Go to the repo on GitHub → Settings → Pages
  4. Under Source, select Deploy from a branch, choose main / (root)
  5. Click Save — your site will be live at https://YOUR_USERNAME.github.io/PZJavaDocs/

Regenerating the API data

Run extract_lua_api.py from the projectzomboid/ source directory. It writes lua_api.json directly into this folder.

Comparing API snapshots

compare_api.py compares two generated lua_api.json snapshots without reparsing Java sources. Snapshot identities are required explicitly so reports never guess a Project Zomboid version from timestamps or paths:

python compare_api.py old/lua_api.json new/lua_api.json \
  --old-id 42.19 --new-id 42.20 --out api_diff.json

The canonical JSON report has stable ordering and reports class/inheritance/exposure, field, method/overload, and global-function additions, removals, and structural changes. Run its dependency-free regression suite with:

python -m unittest discover -s tests -p "test_compare_api.py" -v

Features

  • Browse 900+ exposed Java classes callable from Lua
  • Search classes, methods, and fields
  • Filter by @UsedFromLua annotation, enums, or classes with methods
  • Browse 745 global Lua functions
  • URL hash navigation (shareable links to specific classes)
  • Press / to focus the search box

Project Zomboid Terms-Conditions

https://projectzomboid.com/blog/support/terms-conditions/

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages