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

Solved error?

Discussion in 'Development' started by KHAV, May 9, 2018.

  1. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    how i can fix this?

    PHP:
    [21:15:53] [Server thread/CRITICAL]: RuntimeException"Dynamic field access on pocketmine\nbt\tag\CompoundTag is no longer supported" (EXCEPTIONin "vendor/pocketmine/nbt/src/tag/NoDynamicFieldsTrait" at line 29
     
  2. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    why nobody answered on my error?:/
     
  3. HyperxXxHound

    HyperxXxHound Creeper

    Messages:
    2
    Show you code:facepalm: how else will anyone give you some assistance? how are we supposed to know what line 29 is?:)
     
  4. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Bruhh, this 29 line in pocketmine folder :facepalm:

    and i heard that CompoundTag isn't available more..

    but with what i can replace it?
     
    HyperxXxHound likes this.
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    There is a stack trace below your error. Look at the stack trace to see which lines caused the problem.
     
  6. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    okay:
    PHP:
    [16:54:55] [Server thread/CRITICAL]: RuntimeException"Dynamic field access on pocketmine\nbt\tag\CompoundTag is no longer supported" (EXCEPTIONin "vendor/pocketmine/nbt/src/tag/NoDynamicFieldsTrait" at line 29
    [16:54:55] [Server thread/DEBUG]: #0 vendor/pocketmine/nbt/src/tag/NoDynamicFieldsTrait(37): pocketmine\nbt\tag\CompoundTag->throw()
    [16:54:55] [Server thread/DEBUG]: #1 Testy/src/Testy/Base(423): pocketmine\nbt\tag\CompoundTag->__set(string petOwner, pocketmine\nbt\tag\StringTag object)
    [16:54:55] [Server thread/DEBUG]: #2 src/pocketmine/level/format/io/region/Anvil(70): Testy\Base->saveNBT()
    [16:54:55] [Server thread/DEBUG]: #3 src/pocketmine/level/format/io/region/McRegion(374): pocketmine\level\format\io\region\Anvil->nbtSerialize(pocketmine\level\format\Chunk object)
    [16:54:55] [Server thread/DEBUG]: #4 src/pocketmine/level/format/io/BaseLevelProvider(132): pocketmine\level\format\io\region\McRegion->writeChunk(pocketmine\level\format\Chunk object)
    [16:54:55] [Server thread/DEBUG]: #5 src/pocketmine/level/Level(2757): pocketmine\level\format\io\BaseLevelProvider->saveChunk(pocketmine\level\format\Chunk object)
    [16:54:55] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(440): pocketmine\level\Level->unloadChunk(integer 28, integer 24, boolean )
    [16:54:55] [Server thread/DEBUG]: #7 src/pocketmine/level/Level(576): pocketmine\level\Level->close()
    [16:54:55] [Server thread/DEBUG]: #8 src/pocketmine/Server(969): pocketmine\level\Level->unload(boolean 1)
    [16:54:55] [Server thread/DEBUG]: #9 src/pocketmine/Server(2032): pocketmine\Server->unloadLevel(pocketmine\level\Level object, boolean 1)
    [16:54:55] [Server thread/DEBUG]: #10 src/pocketmine/Server(2230): pocketmine\Server->forceShutdown()
    [16:54:55] [Server thread/DEBUG]: #11 src/pocketmine/Server(2165): pocketmine\Server->crashDump()
    [16:54:55] [Server thread/DEBUG]: #12 src/pocketmine/Server(1703): pocketmine\Server->exceptionHandler(RuntimeException object)
    [16:54:55] [Server thread/DEBUG]: #13 src/pocketmine/PocketMine(305): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Reem\Desktop\PocketMine-MP\, string C:\Users\Reem\Desktop\PocketMine-MP\plugins\)
    [16:54:55] [Server thread/DEBUG]: #14 C:/Users/Reem/Desktop/PocketMine-MP/PocketMine-MP.phar(1): require(string phar://C:/Users/Reem/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
    i think here is the problem but how i fix it?:
    PHP:
    [423$this->namedtag->petOwner = new StringTag("petOwner"$this->getPetOwnerName());
    [
    424$this->namedtag->petName = new StringTag("petName"$this->getPetName());
    [
    425$this->namedtag->speed = new FloatTag("speed"$this->getSpeed());
    [
    426$this->namedtag->scale = new FloatTag("scale"$this->getStartingScale());
    [
    427$this->namedtag->networkId = new IntTag("networkId"$this->getNetworkId());
    [
    428$this->namedtag->petLevel = new IntTag("petLevel"$this->getPetLevel());
    [
    429$this->namedtag->petLevelPoints = new IntTag("petLevelPoints"$this->getPetLevelPoints());
    [
    430$this->namedtag->chested = new ByteTag("chested", (int) $this->isChested());
     
    Last edited: May 10, 2018
  7. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Okay i fixed it but now i have a new problem:
    PHP:
    [18:07:28] [Server thread/DEBUG]: #1 source/src/KHAV/MapPic/item/FilledMap(41): pocketmine\nbt\tag\CompoundTag->__isset(string mie_data)
    [18:07:28] [Server thread/DEBUG]: #2 source/src/KHAV/MapPic/item/FilledMap(22): KHAV\MapPic\item\FilledMap->updateMapData()
    and this is the code:
    PHP:
    [41] if (!$tag->mp_data) {
    [
    22$this->updateMapData();
     
  8. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Again, nobody help:(
     
  9. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Nobody can help if you don't provide enough information (e.g. only the stack trace but5 not the error message). Also, we are not a 24/7 personal support team.
     
  10. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    You are using outdated NBT methods
     
  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.