Project Zomboid

Project Zomboid

59 次評價
StatsAPI
2
   
獎勵
加入最愛
已加入最愛
移除最愛
檔案大小
發佈於
更新時間
133.814 KB
2023 年 7 月 2 日 上午 1:13
11 月 18 日 下午 3:29
20 項更新註記 (檢視)

訂閱以下載
StatsAPI

在 albion 的 1 個收藏中
Albion's PZ Mods
15 個項目
描述
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
熱門討論 檢視全部(1)
0
2023 年 12 月 2 日 上午 7:39
Error log
Technic235
53 則留言
albion  [作者] 11 月 18 日 下午 3: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 10 月 20 日 下午 6: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 6 月 12 日 下午 2:37 
ok! I'll try that instead, thank you!
albion  [作者] 6 月 12 日 上午 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 6 月 11 日 下午 10: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 6 月 11 日 下午 10: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  [作者] 3 月 18 日 下午 2:58 
sorry for the delay, but the update has been released now! i hope it helps
Revion 3 月 8 日 下午 9:20 
Oh cool! Looking forward to the release then!
albion  [作者] 3 月 8 日 下午 5:17 
think i found a solution, i only push updates to the workshop mon-thur so you'll have to wait until then
albion  [作者] 3 月 8 日 下午 4: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