Project Zomboid

Project Zomboid

59 ratings
StatsAPI
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
133.814 KB
2 Jul, 2023 @ 1:13am
18 Nov @ 3:29pm
20 Change Notes ( view )

Subscribe to download
StatsAPI

In 1 collection by albion
Albion's PZ Mods
15 items
Description
StatsAPI is a library for other mods to use, it doesn't do anything on its own. As an end user, you don't have any reason to install this unless a mod you use requires it.

A Lua reimplementation of Project Zomboid's stat calculations and moodles, finally allowing modders to modify them easily. The goal of this project is to evolve with the needs of modders, so feel free to open feature requests on the issues page[github.com].
Usage
To see API usage with examples, visit the github page[github.com]. Use the issues page[github.com] to report any bugs or request features.
No permission is granted to redistribute the mod, in part or in whole, without the express written permission of the copyright holder (albion). That means no modpacks and no including the API as part of your mod.

Workshop ID: 2997722072
Mod ID: StatsAPI
Popular Discussions View All (1)
0
2 Dec, 2023 @ 7:39am
Error log
Technic235
53 Comments
albion  [author] 18 Nov @ 3:29pm 
0.4.15
-Fixed a bug where the hover area for moodle tooltips was too small.
-Potential fix for the invisible moodle bug.
-Minor internal restructuring.
Rusty #DopeRust 20 Oct @ 6:27pm 
Hey @albion!

I just reported something on the github page, just wanted to let you know.

Thank you in advance from the bottom of my heart for all your work and time spent improving the community of PZ.

Cheers.
quinn 12 Jun @ 2:37pm 
ok! I'll try that instead, thank you!
albion  [author] 12 Jun @ 9:26am 
unfortunately this api doesn't actually reimplement the heat mechanics yet, the code you're seeing is just for displaying the correct moodle level (to make them moddable we hide the real moodles and render fake ones that look the same) but the actual calculations of heat and the moodle's effects aren't covered yet

for your case, i think from looking briefly that it may be possible to just check the character's temperature every tick and clamp it to a certain range - the game will try to fight this, but since temperature changes are gradual, i don't think it will matter?
quinn 11 Jun @ 10:38pm 
(realized I can't edit comments and also realized I missed something:) I'm thinking that the best way to implement these traits would be to remove the hypothermia/hyperthermia moodles and effects for that player, I found where this mod applies them but I'm not sure how/if I can edit them in an outside mod
quinn 11 Jun @ 10:31pm 
hey, I'd like to make a mod for cold/heat immunity traits, would I be able to use this to pull that off? (I am very new to modding!)
albion  [author] 18 Mar @ 2:58pm 
sorry for the delay, but the update has been released now! i hope it helps
Revion 8 Mar @ 9:20pm 
Oh cool! Looking forward to the release then!
albion  [author] 8 Mar @ 5:17pm 
think i found a solution, i only push updates to the workshop mon-thur so you'll have to wait until then
albion  [author] 8 Mar @ 4:45pm 
yeah, looks like i hardcoded for 32x32, didn't consider mods might use other sized textures, i'll look into what can be done