Stamina Problem

Post Reply
Nota
Member
Posts: 37
Joined: Wed Feb 14, 2018 07:49

Stamina Problem

by Nota » Post

So when I start my server up, Stamina is working fine. But after a while, the clock speeds up or something. Suddently you lose food MUCH quicker and when you are at 1, you start losing health VERY fast, like 2 per second, even though it's supposed to be 1 per 4 seconds according to the code.

Sorry if this is in the wrong forum!

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Stamina Problem

by sofar » Post

which stamina mod are you using?

Nota
Member
Posts: 37
Joined: Wed Feb 14, 2018 07:49

Re: Stamina Problem

by Nota » Post

https://github.com/minetest-mods/stamina

I'm not sure the version though

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Stamina Problem

by sofar » Post

The right place for bugs for this mod is on the github project. Seems I never made a forum post about this mod. Oops :).

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Stamina Problem

by sofar » Post

Forum thread for the minetest-mods/stamina mod:

viewtopic.php?f=9&t=19675

Nota
Member
Posts: 37
Joined: Wed Feb 14, 2018 07:49

Re: Stamina Problem

by Nota » Post

Ok, so I should use that mod instead of the one I am using?

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Stamina Problem

by sofar » Post

Nota wrote:Ok, so I should use that mod instead of the one I am using?
That IS the stamina mod you're using.

Nota
Member
Posts: 37
Joined: Wed Feb 14, 2018 07:49

Re: Stamina Problem

by Nota » Post

Yep, that one then :)

I've temporarily fixed the problem by doubling some of the time values, so now when it messes up it's manageable.

sofar
Developer
Posts: 2146
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Stamina Problem

by sofar » Post

I've looked at the code again and I can't see any issues with it... you'd have to debug why the timer stuff is running too often. I wonder if you have some weird platform with a broken clock, or some other mod is modifying timer values. Almost impossible for me to debug without reproducing it, and I don't see it happen myself.

Nota
Member
Posts: 37
Joined: Wed Feb 14, 2018 07:49

Re: Stamina Problem

by Nota » Post

Yeah I'm running a bunch of mods, customizing the crap out of them, and forking an existing project, all at the same time :) Probably something else messed up the clock. I'm using HUDbars, maybe it's that somehow.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests