Error on replay

Discussion in 'Development' started by BrownUlcer, Sep 13, 2019 at 10:55 AM.

  1. BrownUlcer

    BrownUlcer Spider

    Messages:
    6
    Hello
    when i do /replay play in chat server crash and send me this error:

    Code:
    2019-09-13 [14:08:56] [Server thread/INFO]: [ReplaySystem] Starting Replay
    2019-09-13 [14:08:58] [Server thread/CRITICAL]: ErrorException: "Undefined property: pocketmine\entity\Human::$newPosition" (EXCEPTION) in "src/pocketmine/entity/Entity" at line 2289
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #0 plugins/ReplaySystem-McpeBooster-master/src/ReplaySystem/Task/PlayReplayTask(100): pocketmine\entity\Entity->__set(string[11] newPosition, object pocketmine\level\Location)
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #1 src/pocketmine/scheduler/TaskHandler(159): ReplaySystem\Task\PlayReplayTask->onRun(integer 2860)
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 2860)
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 2860)
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #4 src/pocketmine/Server(2569): pocketmine\plugin\PluginManager->tickSchedulers(integer 2860)
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #5 src/pocketmine/Server(2345): pocketmine\Server->tick()
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #6 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #7 src/pocketmine/Server(1784): pocketmine\Server->start()
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] C:\Users\mcpe\Desktop\test server\, string[42] C:\Users\mcpe\Desktop\test server\plugins\)
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #9 src/pocketmine/PocketMine(299): pocketmine\server()
    2019-09-13 [14:08:58] [Server thread/DEBUG]: #10 (1): require(string[89] phar://C:/Users/mcpe/Desktop/test server/PocketMine-MP.phar/src/pocketmine/Pocke)
    2019-09-13 [14:08:58] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
    i use Plugin ReplaySystem version 1.3.0

    what shoud i do? i need this plugin a lot. help me please:(
     
  2. wolfdale

    wolfdale Zombie

    Messages:
    353
    You can kinda fix it yourself:
    in ReplaySystem/Task/PlayReplayTask.php
    change
    PHP:
    $entity->newPosition = new Location($vec3["X"], $vec3["Y"], $vec3["Z"], $vec3["Yaw"], $vec3["Pitch"], $this->replay->getLevel());
    $entity->setRotation($vec3["Yaw"], $vec3["Pitch"]);
    $this->processMovement($entity);
    to
    PHP:
    $entity->setRotation($vec3["Yaw"], $vec3["Pitch"]);
    $this->processMovement($entity,new Location($vec3["X"], $vec3["Y"], $vec3["Z"], $vec3["Yaw"], $vec3["Pitch"], $this->replay->getLevel()));
    and
    PHP:
    private function processMovement(Entity $entity) {
    $newPos $entity->newPosition;
    to
    PHP:
    private function processMovement(Entity $entity,Location $newPos) {
     
  3. BrownUlcer

    BrownUlcer Spider

    Messages:
    6
    tnx from your help but now console send me this error:

    Code:
    [20:54:54] [Server thread/INFO]: [ReplaySystem] Starting Replay
    [20:54:55] [Server thread/CRITICAL]: Error: "Undefined property: pocketmine\network\mcpe\protocol\MovePlayerPacket::$teleported" (EXCEPTION) in "src/pocketmine/network/mcpe/protocol/DataPacket" at line 164
    [20:54:55] [Server thread/DEBUG]: #0 plugins/ReplaySystem-McpeBooster-master/src/ReplaySystem/Task/PlayReplayTask(211): pocketmine\network\mcpe\protocol\DataPacket->__set(string[10] teleported, boolean )
    [20:54:55] [Server thread/DEBUG]: #1 plugins/ReplaySystem-McpeBooster-master/src/ReplaySystem/Task/PlayReplayTask(198): ReplaySystem\Task\PlayReplayTask->broadcastMovement(object pocketmine\entity\Human)
    [20:54:55] [Server thread/DEBUG]: #2 plugins/ReplaySystem-McpeBooster-master/src/ReplaySystem/Task/PlayReplayTask(101): ReplaySystem\Task\PlayReplayTask->processMovement(object pocketmine\entity\Human, object pocketmine\level\Location)
    [20:54:55] [Server thread/DEBUG]: #3 src/pocketmine/scheduler/TaskHandler(159): ReplaySystem\Task\PlayReplayTask->onRun(integer 3040)
    [20:54:55] [Server thread/DEBUG]: #4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 3040)
    [20:54:55] [Server thread/DEBUG]: #5 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 3040)
    [20:54:55] [Server thread/DEBUG]: #6 src/pocketmine/Server(2569): pocketmine\plugin\PluginManager->tickSchedulers(integer 3040)
    [20:54:55] [Server thread/DEBUG]: #7 src/pocketmine/Server(2345): pocketmine\Server->tick()
    [20:54:55] [Server thread/DEBUG]: #8 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
    [20:54:55] [Server thread/DEBUG]: #9 src/pocketmine/Server(1784): pocketmine\Server->start()
    [20:54:55] [Server thread/DEBUG]: #10 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[34] C:\Users\mcpe\Desktop\test server\, string[42] C:\Users\mcpe\Desktop\test server\plugins\)
    [20:54:55] [Server thread/DEBUG]: #11 src/pocketmine/PocketMine(299): pocketmine\server()
    [20:54:55] [Server thread/DEBUG]: #12 (1): require(string[89] phar://C:/Users/mcpe/Desktop/test server/PocketMine-MP.phar/src/pocketmine/Pocke)
    
     
  4. wolfdale

    wolfdale Zombie

    Messages:
    353
    There is no such field anymore, simply remove $pk->teleported = false;
     

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.