Git Product home page Git Product logo

pathfinder's Issues

Performance

Whats a good way to get better performance if using 10+ entities

Half slabs / stairs issue.

The entity is trying to jump on a target block, even if it stands on a half slab. You'd probably need to either increase the y motion if it's standing on a half slab, or you'd need to add a high cost for half slabs, so it's walking around them.

Example video: https://youtu.be/fywTs-TTDQ8

[Entity] On die: void

[00:30:27.402] [Server thread/CRITICAL]: InvalidArgumentException: "Y coordinate -129 is out of range!" (EXCEPTION) in "pmsrc/src/world/World" at line 343
--- Stack trace ---
  #0 plugins/Pathfinder/src/pathfinder/algorithm/astar/Node(21): pocketmine\world\World::blockHash(integer 0, integer -129, integer 14)
  #1 plugins/Pathfinder/src/pathfinder/algorithm/astar/Node(58): pathfinder\algorithm\astar\Node->__construct(double 0.5, integer -129, double 14.5)
  #2 plugins/Pathfinder/src/pathfinder/algorithm/astar/AStar(40): pathfinder\algorithm\astar\Node::fromVector3(object pocketmine\math\Vector3#92800)
  #3 plugins/Pathfinder/src/pathfinder/navigator/Navigator(122): pathfinder\algorithm\astar\AStar->start()
  #4 plugins/Pathfinder/src/pathfinder/entity/TestEntity(44): pathfinder\navigator\Navigator->onUpdate()
  #5 pmsrc/src/world/World(859): pathfinder\entity\TestEntity->onUpdate(integer 4172)
  #6 pmsrc/src/world/World(785): pocketmine\world\World->actuallyDoTick(integer 4172)
  #7 pmsrc/src/world/WorldManager(360): pocketmine\world\World->doTick(integer 4172)
  #8 pmsrc/src/Server(1772): pocketmine\world\WorldManager->tick(integer 4172)
  #9 pmsrc/src/Server(1654): pocketmine\Server->tick()
  #10 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
  #11 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[29] C:\Users\kfeig\Desktop\pmmp4\, string[37] C:\Users\kfeig\Desktop\pmmp4\plugins\)
  #12 pmsrc/src/PocketMine(326): pocketmine\server()
  #13 pmsrc(11): require(string[73] phar://C:/Users/kfeig/Desktop/pmmp4/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---

Virion

Allow to use this library as virion, this can be done in the same branch.

[/pathfinder run] crash

Positions are set

[00:35:41.536] [Server thread/CRITICAL]: Error: "Object of class pocketmine\world\World could not be converted to string" (EXCEPTION) in "plugins/Pathfinder/src/pathfinder/command/PathfinderCommand" at line 77
--- Stack trace ---
  #0 plugins/Pathfinder/src/pathfinder/algorithm/Algorithm(110): pathfinder\command\PathfinderCommand->pathfinder\command\{closure}(object pathfinder\pathresult\PathResult#92140)
  #1 plugins/Pathfinder/src/pathfinder/algorithm/Algorithm(120): pathfinder\algorithm\Algorithm->stop()
  #2 plugins/Pathfinder/src/pathfinder/algorithm/Algorithm(100): pathfinder\algorithm\Algorithm->onTick(NULL )
  #3 plugins/Pathfinder/src/pathfinder/algorithm/astar/AStar(52): pathfinder\algorithm\Algorithm->start()
  #4 plugins/Pathfinder/src/pathfinder/command/PathfinderCommand(89): pathfinder\algorithm\astar\AStar->start()
  #5 pmsrc/src/command/SimpleCommandMap(220): pathfinder\command\PathfinderCommand->execute(object pocketmine\player\Player#25083, string[10] pathfinder, array[1])
  #6 pmsrc/src/Server(1406): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#25083, string[14] pathfinder run)
  #7 pmsrc/src/player/Player(1342): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#25083, string[14] pathfinder run)
  #8 pmsrc/src/network/mcpe/handler/InGamePacketHandler(711): pocketmine\player\Player->chat(string[15] /pathfinder run)
  #9 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(60): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#116497)
  #10 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#95110)
  #11 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#116497, string[36] M./pathfinder run..C.U....Z.....X...)
  #12 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[40] S.../H,.H..KI-R(*.c...8...Sw...].f}.N...)
  #13 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[49] .........p...I.j...9..Dj..q....^..u..\......j.0X+)
  #14 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#23595)
  #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
  #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
  #17 pmsrc/src/Server(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1643243741.4968)
  #18 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
  #19 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[29] C:\Users\kfeig\Desktop\pmmp4\, string[37] C:\Users\kfeig\Desktop\pmmp4\plugins\)
  #20 pmsrc/src/PocketMine(326): pocketmine\server()
  #21 pmsrc(11): require(string[73] phar://C:/Users/kfeig/Desktop/pmmp4/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---

Composer bug

Error: Could not find a version of package matze/pathfinder matching your minimum-stability (stable). Require it with an explicit version constraint allowing its desired stability.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.