Coder Social home page Coder Social logo

Health being reset to 5 about habitica HOT 15 CLOSED

habitrpg avatar habitrpg commented on July 18, 2024
Health being reset to 5

from habitica.

Comments (15)

lefnire avatar lefnire commented on July 18, 2024

Hey @vewong, I think I know exactly what's happening - which is definitely a bug. Where heavy data manipulation in the browser is present, Derby takes a bit (as in like 5s, which is a lot) to sync the data to the server. This happens for example when "cron" is run on the browser (1s after a refresh), leveling up, etc. It takes time for that data to sync up to the server, and if any actions are performed between that phase it causes wonky data screwup. My solution will be to perform complex data manipulation on the server using racer-server-request

In the meantime, the janky solution is to wait a good 5 seconds to make sure big changes get synced to the server (reviving, leveling up, loosing points at the beginning of each day, etc)

from habitica.

lefnire avatar lefnire commented on July 18, 2024

I think Racer has undergone some major improvements to mitigate this issue, tell me if it's still having issues. Otherwise, my notes here on the progress.

from habitica.

lefnire avatar lefnire commented on July 18, 2024

ok, this should be fixed now. if not, reopen

from habitica.

demizach avatar demizach commented on July 18, 2024

I'm not sure if this is the same problem, but it seems like it.

When I leveled up to Level 4, my hit points momentarily went to 50/50, but then a few seconds later dropped (I don't remember exactly to what value, as it caught me off guard). I just leveled up to Level 5. This time, same thing...hit points momentarily went 50/50, then immediately dropped to 35/50. What was even weirder though, is that my experience jumped to 70 something/100.

Again, not sure if this is the same problem, or something new.

from habitica.

Pandoro avatar Pandoro commented on July 18, 2024

Do these numbers correspond to the values before leveling up? Or are they
random?

Have you tried refreshing the site? If so what happened then?

On Sat, Feb 2, 2013 at 1:25 PM, demizach [email protected] wrote:

I'm not sure if this is the same problem, but it seems like it.

When I leveled up to Level 4, my hit points momentarily went to 50/50, but
then a few seconds later dropped (I don't remember exactly to what value,
as it caught me off guard). I just leveled up to Level 5. This time, same
thing...hit points momentarily went 50/50, then immediately dropped to
35/50. What was even weirder though, is that my experience jumped to 70
something/100.

Again, not sure if this is the same problem, or something new.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-13028604.

from habitica.

demizach avatar demizach commented on July 18, 2024

Now that you mention it, those numbers "may" correspond to the previous values before I leveled up. I've refreshed multiple times, and the numbers remain at the current values (currently 35/50, 78/100...I completed a couple of tasks).

from habitica.

Pandoro avatar Pandoro commented on July 18, 2024

I'll reopen this then, so that @lefnire can take a look at it.

from habitica.

horusofoz avatar horusofoz commented on July 18, 2024

@demizach Their has been some code pushed so can you advise if this is still an issue at your end?

from habitica.

demizach avatar demizach commented on July 18, 2024

It's still being a bit erratic. I leveled up yesterday, and my HPs stayed at 39/50, which I believe was the level before leveling up. So, as of yesterday, it would appear that the problem is still occurring.

from habitica.

Pandoro avatar Pandoro commented on July 18, 2024

@demizach I'm really sorry for the continuing frustration on this one :( You haven't been forgotten though! Did it occur again? There have again been major changes, so I am not sure if that might have changed something for you as well?

from habitica.

demizach avatar demizach commented on July 18, 2024

Thanks for the follow up. No worries...fully understand that this is in the "testing" stage, and as such, there will be bugs to be worked out.

Haven't leveled up for a while. Should level up in a day or two. Will let you know who it goes.

Cheers!

from habitica.

horusofoz avatar horusofoz commented on July 18, 2024

@demizach How did things go?

from habitica.

demizach avatar demizach commented on July 18, 2024

Just leveled up yesterday. So far, so good. Nothing wacky going on with hit points. Only losing points for uncompleted dailies. Looks like the latest changes did it. Cheers!

from habitica.

unaimed avatar unaimed commented on July 18, 2024

I think I am experiencing a related bug. After login, my health drops (as it should, because I have unfinished tasks) by 19 HP. After you see the animation it "resets" to the value before the substraction; in my case it is 40.
And this phenomenon has now occurred for 2 day in a row .

So I am invincible; but I really don't think it should be this way.

(User ID a404a7b2-e38f-4a57-9735-e6317bf3385e )

edit:
Today everything went back to normal without leveling up. I am happy 👍

from habitica.

PhilipHow avatar PhilipHow commented on July 18, 2024

Closing this for now to clean up the list. Feel free to comment if the bug crops up again!

from habitica.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.