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

Solved entity texture problem!

Discussion in 'Development' started by 7awariGamer, Jul 21, 2019.

  1. 7awariGamer

    7awariGamer Baby Zombie

    Messages:
    120
    GitHub:
    7awariGamer
    why this error appears?
    Code:
    21:32:06] [Server thread/CRITICAL]: InvalidArgumentException: "Invalid skin data size 32768 bytes (allowed sizes: 8192, 16384, 65536)" (EXCEPTION) in "src/pocketmine/entity/Skin" at line 80
    plz solution...
    this is the texture :
     

    Attached Files:

    • Ak.png
      Ak.png
      File size:
      815 bytes
      Views:
      11
  2. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Either it's a bad texture or you're parsing the png to skin bytes incorrectly.
     
    KielKing likes this.
  3. 7awariGamer

    7awariGamer Baby Zombie

    Messages:
    120
    GitHub:
    7awariGamer
    I made this texture using blockbench + Adobe Photoshop ...
    Maybe my code has a mistake with calc ?
    What should I do? Send the code?
     
  4. 7awariGamer

    7awariGamer Baby Zombie

    Messages:
    120
    GitHub:
    7awariGamer
    After thinking, I was calculating bytes then i found out that I should do 64x * 64x texture...
    Thx anyway
     
    HimbeersaftLP 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.