Project Zomboid

Project Zomboid

Ocen: 59
StatsAPI
2
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Rozmiar pliku
Zamieszczono
Zaktualizowano
133.814 KB
2 lipca 2023 o 1:13
18 listopada o 15:29
Listy zmian: 20 ( zobacz )

Zasubskrybuj, aby pobrać
StatsAPI

W 1 kolekcji stworzonej przez albion
Albion's PZ Mods
Przedmioty: 15
Opis
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
Popularne dyskusje Zobacz wszystkie (1)
0
2 grudnia 2023 o 7:39
Error log
Technic235
Komentarzy: 53
albion  [autor] 18 listopada o 15:29 
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 października o 18:27 
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 czerwca o 14:37 
ok! I'll try that instead, thank you!
albion  [autor] 12 czerwca o 9:26 
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 czerwca o 22:38 
(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 czerwca o 22:31 
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  [autor] 18 marca o 14:58 
sorry for the delay, but the update has been released now! i hope it helps
Revion 8 marca o 21:20 
Oh cool! Looking forward to the release then!
albion  [autor] 8 marca o 17:17 
think i found a solution, i only push updates to the workshop mon-thur so you'll have to wait until then
albion  [autor] 8 marca o 16:45 
yeah, looks like i hardcoded for 32x32, didn't consider mods might use other sized textures, i'll look into what can be done