Int Tag Value Too Large

Discussion in 'Development' started by DiamondGamer30, Dec 29, 2019.

  1. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    177
    GitHub:
    diamondgamermcpe
    I’ve been experiencing this crash where a player had too much XP. Is there a way that I can prevent this crash.
     
  2. Rim

    Rim Silverfish

    Messages:
    15
    GitHub:
    boomyourbang
    Can you elaborate a bit?
     
  3. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    177
    GitHub:
    diamondgamermcpe
    When PMMP attempts to save a players data, the server crashes due to the total amount of xp a player has. It crashes because an Integer Tag can only contain such a large number. I tried to prevent this crash multiple ways but nothing seems o work. You got any idea for any potential fixes?
     
  4. HimbeersaftLP

    HimbeersaftLP Chicken

    Messages:
    1,886
    GitHub:
    HimbeersaftLP
    Have you tried limiting the amount of xp by listening for the PlayerExperienceChangeEvent and setting it to the max allowed value if it is above that?
     
    jasonwynn10 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.