1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Int Tag Value Too Large

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

  1. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    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 Spider Jockey

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

    DiamondGamer30 Baby Zombie

    Messages:
    175
    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 Fish

    Messages:
    2,402
    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.
  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.