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

Solved [SELF-SOLVED] update block packet error

Discussion in 'Development' started by Az928, Sep 28, 2017.

  1. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    I was running pmmp latest on my vps, started and booted everything fine, but when I run /combiner command of my CustomEnchant plugin, it gives this error
    Code:
    Welcome to Ubuntu 17.04 (GNU/Linux 4.10.0-33-generic x86_64)
    
     * Documentation:  https://help.ubuntu.com
     * Management:     https://landscape.canonical.com
     * Support:        https://ubuntu.com/advantage
    
     * What are your preferred Linux desktop apps?  Help us set the default
       desktop apps in Ubuntu 18.04 LTS:
       - https://ubu.one/apps1804
      _____
     / ___/___  _  _ _____ _   ___  ___
    | |   / _ \| \| |_   _/ \ | _ )/ _ \
    | |__| (_) | .` | | |/ _ \| _ \ (_) |
     \____\___/|_|\_| |_/_/ \_|___/\___/
    
    Welcome!
    
    This server is hosted by Contabo. If you have any questions or need help,
    please don't hesitate to contact us at [email protected].
    
    Last login: Thu Sep 28 09:41:36 2017 from 119.30.35.78
    root@vmi138002:~# TheDev/./start.sh
    [09:50:24] [Server thread/WARNING]: Non-packaged PocketMine-MP installation detected. Consider using a phar in production for better performance.
    [09:50:24] [Server thread/INFO]: Loading pocketmine.yml...
    [09:50:24] [Server thread/INFO]: Loading server properties...
    [09:50:24] [Server thread/INFO]: Selected English (eng) as the base language
    [09:50:24] [Server thread/INFO]: Starting Minecraft: PE server version v1.2.0.81
    [09:50:24] [Server thread/NOTICE]: pocketmine.server.auth
    [09:50:24] [Server thread/NOTICE]: pocketmine.server.authProperty
    [09:50:24] [Server thread/INFO]: Opening server on 0.0.0.0:25655
    [09:50:24] [Server thread/INFO]: This server is running PocketMine-MP version 1.7dev "[REDACTED]" (API 3.0.0-ALPHA8)
    [09:50:24] [Server thread/INFO]: PocketMine-MP is distributed under the GPL License
    [09:50:25] [Server thread/INFO]: Loading recipes...
    [09:50:25] [Server thread/INFO]: Loading resource packs...
    [09:50:25] [Server thread/INFO]: Loading ZipPluginLoader v1.2.1
    [09:50:25] [Server thread/INFO]: Enabling ZipPluginLoader v1.2.1
    [09:50:25] [Server thread/ERROR]: Could not load plugin 'MythicalEnvoy': Incompatible API version
    [09:50:25] [Server thread/ERROR]: Could not load plugin 'AdvancedMarket': Incompatible API version
    [09:50:25] [Server thread/ERROR]: Could not load plugin 'AdvancedKits': Incompatible API version
    [09:50:25] [Server thread/ERROR]: Could not load plugin 'LockerVaults': Incompatible API version
    [09:50:25] [Server thread/ERROR]: Could not load plugin 'AuctionHouse': Incompatible API version
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Loading zip plugin CustomCrafting v2.0.0
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Loading zip plugin CustomEnchant v2.0.0_AlphaDream
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Loading zip plugin UltraGems v1.0.0
    [09:50:25] [Server thread/INFO]: [UltraGems] Loading gems...
    [09:50:25] [Server thread/INFO]: [UltraGems] Loaded EmeraldGem
    [09:50:25] [Server thread/INFO]: [UltraGems] Loaded WitherGem
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Loading zip plugin TreasureChest v1.19.273.2
    [09:50:25] [Server thread/INFO]: Preparing level "world"
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Enabling CustomCrafting v2.0.0
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Enabling CustomEnchant v2.0.0_AlphaDream
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Enabling UltraGems v1.0.0
    [09:50:25] [Server thread/INFO]: [UltraGems] UltraGems has been loaded successfully!
    [09:50:25] [Server thread/INFO]: [ZipPluginLoader] Enabling TreasureChest v1.19.273.2
    [09:50:25] [Server thread/INFO]: [TreasureChest]  Treasure Chest has been enabled!
    [09:50:25] [Server thread/INFO]: Starting GS4 status listener
    [09:50:25] [Server thread/INFO]: Setting query port to 25655
    [09:50:25] [Server thread/INFO]: Query running on 0.0.0.0:25655
    [09:50:25] [Server thread/INFO]: Default game type: Survival Mode
    [09:50:25] [Server thread/INFO]: Done (0.643s)! For help, type "help" or "?"
    [09:52:17] [Server thread/INFO]: Az528[/119.30.35.78:44766] logged in with entity id 1 at (world, 151.4783, 69.3098, 269.7001)
    [09:52:19] [Server thread/INFO]: Az528 joined the game
    [09:52:35] [Server thread/INFO]: [Az528: Set the time to 0]
    [09:52:57] [Server thread/CRITICAL]: Unhandled exception executing command 'c' in combine: Argument 1 passed to pocketmine\network\mcpe\protocol\DataPacket::putBlockPosition() must be of the type integer, float given, called in /root/TheDev/src/pocketmine/network/mcpe/protocol/UpdateBlockPacket.php on line 65
    [09:52:57] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\network\mcpe\protocol\DataPacket::putBlockPosition() must be of the type integer, float given, called in /root/TheDev/src/pocketmine/network/mcpe/protocol/UpdateBlockPacket.php on line 65" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/DataPacket" at line 354
    [09:52:57] [Server thread/DEBUG]: #0 src/pocketmine/network/mcpe/protocol/UpdateBlockPacket(65): pocketmine\network\mcpe\protocol\DataPacket->putBlockPosition(double 147.1849, double 71, double 266.8825)
    [09:52:57] [Server thread/DEBUG]: #1 src/pocketmine/network/mcpe/protocol/DataPacket(98): pocketmine\network\mcpe\protocol\UpdateBlockPacket->encodePayload()
    [09:52:57] [Server thread/DEBUG]: #2 src/pocketmine/network/mcpe/protocol/BatchPacket(81): pocketmine\network\mcpe\protocol\DataPacket->encode()[09:52:57] [Server thread/DEBUG]: #3 src/pocketmine/Server(1877): pocketmine\network\mcpe\protocol\BatchPacket->addPacket(pocketmine\network\mcpe\protocol\UpdateBlockPacket object)
    [09:52:57] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(874): pocketmine\Server->batchPackets(array Array(), array Array(), boolean , boolean )
    [09:52:57] [Server thread/DEBUG]: #5 myzip://plugins/CustomEnchant_v1.zip#CustomEnchant_v1/src/Combiner/Combiner(48): pocketmine\level\Level->sendBlocks(array Array(), array Array())
    [09:52:57] [Server thread/DEBUG]: #6 myzip://plugins/CustomEnchant_v1.zip#CustomEnchant_v1/src/CustomEnchant/commands/Combiner(27): Combiner\Combiner->openCombiner(pocketmine\Player object)
    [09:52:57] [Server thread/DEBUG]: #7 src/pocketmine/command/SimpleCommandMap(241): CustomEnchant\commands\Combiner->execute(pocketmine\Player object, string c, array Array())
    [09:52:57] [Server thread/DEBUG]: #8 src/pocketmine/Server(1967): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string c)
    [09:52:57] [Server thread/DEBUG]: #9 src/pocketmine/Player(2142): pocketmine\Server->dispatchCommand(pocketmine\Player object, string c)
    [09:52:57] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(219): pocketmine\Player->chat(string /c)
    [09:52:57] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(47): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
    [09:52:57] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(91): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    [09:52:57] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/protocol/BatchPacket(118): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
    [09:52:57] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(91): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    [09:52:57] [Server thread/DEBUG]: #15 src/pocketmine/Player(3011): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    [09:52:57] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    [09:52:57] [Server thread/DEBUG]: #17 src/raklib/server/ServerHandler(97): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 119.30.35.78:44766, raklib\protocol\EncapsulatedPacket object, integer 0)
    [09:52:57] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(82): raklib\server\ServerHandler->handlePacket()
    [09:52:57] [Server thread/DEBUG]: #19 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
    [09:52:57] [Server thread/DEBUG]: #20 src/pocketmine/Server(2500): pocketmine\network\Network->processInterfaces()
    [09:52:57] [Server thread/DEBUG]: #21 src/pocketmine/Server(2253): pocketmine\Server->tick()
    [09:52:57] [Server thread/DEBUG]: #22 src/pocketmine/Server(2132): pocketmine\Server->tickProcessor()
    [09:52:57] [Server thread/DEBUG]: #23 src/pocketmine/Server(1714): pocketmine\Server->start()
    [09:52:57] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /root/TheDev/, string /root/TheDev/, string /root/TheDev/plugins/)
    stop
    [09:53:18] [Server thread/INFO]: [CONSOLE: Stopping the server]
    [09:53:18] [Server thread/INFO]: Disabling ZipPluginLoader v1.2.1
    [09:53:18] [Server thread/INFO]: [ZipPluginLoader] Disabling CustomCrafting v2.0.0
    [09:53:18] [Server thread/INFO]: [ZipPluginLoader] Disabling CustomEnchant v2.0.0_AlphaDream
    [09:53:18] [Server thread/INFO]: [ZipPluginLoader] Disabling UltraGems v1.0.0
    [09:53:18] [Server thread/INFO]: [ZipPluginLoader] Disabling TreasureChest v1.19.273.2
    [09:53:18] [Server thread/INFO]: Az528 left the game
    [09:53:18] [Server thread/INFO]: Az528[/119.30.35.78:44766] logged out due to Server closed
    [09:53:18] [Server thread/INFO]: Unloading level "world"
    [09:53:23] [Server thread/INFO]: Stopping other threads
    
    root@vmi138002:~#
    My CustomEnchant plugin doesn't use any data packet, yet has no bugs and worked fine in older versions of pmmp,

    Any help is appreciated. @dktapps take a look if it's internal bug
     
    Last edited: Sep 29, 2017
  2. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    no, this is not an internal bug, you simply haven't correctly updated your plugin.
     
  3. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you shouldnt run PM as root
    anddd stop abusing format
     
    jasonwynn10 likes this.
  4. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    what you meant by "abusing formats"?
     
  5. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    He means how all the text in your first post was underlined
     
  6. Az928

    Az928 Baby Zombie

    Messages:
    140
    GitHub:
    theaz928
    that was by mistake I pressed underline button, but thought it was a bug
     
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Feel free to edit it and undo the lines...
     
    EdwardHamHam 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.