Giter Site home page Giter Site logo

jasonw4331 / vanillaentityai Goto Github PK

View Code? Open in Web Editor NEW
82.0 16.0 10.0 824 KB

A non-customizable plugin to add vanilla entities with AI to PocketMine servers

Home Page: https://discord.gg/R7kdetE

License: GNU Lesser General Public License v3.0

PHP 100.00%
pocketmine-mp pocketmine php minecraft pocketmine-plugin

vanillaentityai's Introduction

VanillaEntityAI

Discord Poggit-Ci Download count

Intro

Make mobs behave in your server worlds exactly like they do in vanilla!

Features

  • Minecraft Vanilla-like spawning
  • Passive Mob AI
  • Breeding

Future Additions

  • Hostile Mob AI
  • Animal Taming
  • Villager Trading

About

PocketMine is a software built from scratch without any code from Minecraft, meaning it lacks Vanilla features which Java servers get by default. This lacking shows especially with any and all entity movement, breeding, taming, and trading. This plugin aims to fix that by adding support for all of those things.

vanillaentityai's People

Contributors

dependabot[bot] avatar jasonw4331 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vanillaentityai's Issues

My server boom!

hey Brother!
Why did this plugin crash my server?
I need your help.

2019-04-19 [23:08:13] [Server thread/CRITICAL]: ErrorException: "Undefined offset: 127" (EXCEPTION) in "plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/task/HostileSpawnTask" at line 48
2019-04-19 [23:08:13] [Server thread/DEBUG]: #0 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/task/HostileSpawnTask(48): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined offset: 127, string phar:///home/FtCraft/pm/plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/task/HostileSpawnTask.php, integer 48, array Array())
2019-04-19 [23:08:13] [Server thread/DEBUG]: #1 src/pocketmine/scheduler/TaskHandler(159): jasonwynn10\VanillaEntityAI\task\HostileSpawnTask->onRun(integer 1040)
2019-04-19 [23:08:13] [Server thread/DEBUG]: #2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1040)
2019-04-19 [23:08:13] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1040)
2019-04-19 [23:08:13] [Server thread/DEBUG]: #4 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 1040)
2019-04-19 [23:08:13] [Server thread/DEBUG]: #5 src/pocketmine/Server(2335): pocketmine\Server->tick()
2019-04-19 [23:08:13] [Server thread/DEBUG]: #6 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
2019-04-19 [23:08:13] [Server thread/DEBUG]: #7 src/pocketmine/Server(1775): pocketmine\Server->start()
2019-04-19 [23:08:13] [Server thread/DEBUG]: #8 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/FtCraft/pm/, string /home/FtCraft/pm/plugins/)
2019-04-19 [23:08:13] [Server thread/DEBUG]: #9 (1): require(string phar:///home/FtCraft/pm/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

SpoonDetector

Spoon detector class not found, EntityAI.php line 301

Disable AI Option

Hello there! Can you add an option where we can disable the mob AI?

Error

Error: Undefined offset: 22
File: plugins/VanillaEntityAI_dev-45.phar/src/jasonwynn10/VanillaEntityAI/EntityListener
Line: 41
Type: ErrorException

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: VanillaEntityAI v0.0.1

Code:
[32] * @param ChunkLoadEvent $event
[33] */
[34] public function onLoad(ChunkLoadEvent $event) {
[35] $chunk = $event->getChunk();
[36] $level = $event->getLevel();
[37] $packCenter = new Vector3(mt_rand($chunk->getX() << 4, (($chunk->getX() << 4) + 15)), mt_rand(0, $level->getWorldHeight() - 1), mt_rand($chunk->getZ() << 4, (($chunk->getZ() << 4) + 15)));
[38] $lightLevel = $level->getFullLightAt($packCenter->x, $packCenter->y, $packCenter->z);
[39] if(!$level->getBlockAt($packCenter->x, $packCenter->y, $packCenter->z)->isSolid() and $lightLevel > 8) {
[40] $biomeId = $level->getBiomeId($packCenter->x, $packCenter->z);
[41] $entityList = BiomeEntityList::BIOME_ANIMALS[$biomeId];
[42] if(empty($entityList))
[43] return; // no entities for this biome
[44] $entityId = $entityList[array_rand(BiomeEntityList::BIOME_ANIMALS[$biomeId])];
[45] if(!$level->getBlockAt($packCenter->x, $packCenter->y, $packCenter->z)->isSolid()) {
[46] for($attempts = 0, $currentPackSize = 0; $attempts <= 12 and $currentPackSize < 4; $attempts++) {
[47] $x = mt_rand(-20, 20) + $packCenter->x;
[48] $z = mt_rand(-20, 20) + $packCenter->z;
[49] foreach(EntityAI::$entities as $class => $arr) {
[50] if($class instanceof AnimalBase and $class::NETWORK_ID === $entityId) {
[51] $entity = $class::spawnMob(new Position($x + 0.5, $packCenter->y, $z + 0.5, $level));

Mob

HEY you say that add vanilla mob api but why enderman dont attack and more mob, lot mob now dont loot and why cant breading animal if it the same if vanilla?

ERROR server Crash

Describe the bug
A clear and concise description of what the bug is.
The Bug come from the Plugin VanillaEntityAI an Shutdown the Server
To Reproduce
Steps to reproduce the behavior:

  1. ...
  2. ...

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots of error messages to help explain your problem.

Declaration of jasonwynn10\VanillaEntityAI\entity\CreatureBase::push(jasonwynn10\VanillaEntityAI\entity\CreatureBase $source): void must be compatible with jasonwynn10\VanillaEntityAI\entity\Collidable::push(jasonwynn10\VanillaEntityAI\entity\Collidable $source): void in phar:///home/minecraft/plugins/VanillaEntityAI_dev-90.phar/src/jasonwynn10/VanillaEntityAI/entity/CreatureBase.php on line 16

Client Information (please complete the following information):

  • PocketMine API Version: [newest]
  • Plugin Version: [latest]
  • PHP Version: [newest]

Additional context
Add any other context about the problem here. Links to your report on https://crash.pmmp.io are helpful!

array_rand(): Array is empty on jasonwynn10\VanillaEntityAI\EntityListener

VanillaEntityAI_dev-42.phar
https://jenkins.pmmp.io/job/PocketMine-MP/1544/

2018-10-12 [17:27:35] [Server thread/INFO]: Octave658[/37.XXX.43.36:20520] logged in with entity id 4 at (lobby, 261, 59, 232)
2018-10-12 [17:27:36] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\level\ChunkLoadEvent' to 'VanillaEntityAI v0.0.1': array_rand(): Array is empty on jasonwynn10\VanillaEntityAI\EntityListener
2018-10-12 [17:27:36] [Server thread/CRITICAL]: ErrorException: "array_rand(): Array is empty" (EXCEPTION) in "VanillaEntityAI_dev-42.phar/src/jasonwynn10/VanillaEntityAI/EntityListener" at line 58
2018-10-12 [17:27:36] [Server thread/DEBUG]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string array_rand(): Array is empty, string phar:///home/myservertest/plugins/VanillaEntityAI_dev-42.phar/src/jasonwynn10/VanillaEntityAI/EntityListener.php, integer 58, array Array())
2018-10-12 [17:27:36] [Server thread/DEBUG]: #1 VanillaEntityAI_dev-42.phar/src/jasonwynn10/VanillaEntityAI/EntityListener(58): array_rand(array Array())
2018-10-12 [17:27:36] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(38): jasonwynn10\VanillaEntityAI\EntityListener->onLoad(pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(jasonwynn10\VanillaEntityAI\EntityListener object, pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(702): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #5 src/pocketmine/level/Level(2659): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(2265): pocketmine\level\Level->loadChunk(integer 13, integer 15, boolean 1)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #7 src/pocketmine/level/Level(2925): pocketmine\level\Level->getChunk(integer 13, integer 15, boolean 1)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #8 src/pocketmine/Player(1011): pocketmine\level\Level->populateChunk(integer 13, integer 15)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #9 src/pocketmine/Player(1805): pocketmine\Player->sendNextChunk()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #10 src/pocketmine/Server(2513): pocketmine\Player->checkNetwork()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #11 src/pocketmine/Server(2256): pocketmine\Server->tick()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #12 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #13 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #14 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #15 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2018-10-12 [17:27:36] [Server thread/INFO]: [VPNGuard] Player Octave658 has connected with the IP: 37.XXX.43.36
2018-10-12 [17:27:36] [Server thread/INFO]: [17:27:36] Octave658 joined the game.
2018-10-12 [17:27:36] [Server thread/CRITICAL]: Could not pass event 'pocketmine\event\level\ChunkLoadEvent' to 'VanillaEntityAI v0.0.1': array_rand(): Array is empty on jasonwynn10\VanillaEntityAI\EntityListener
2018-10-12 [17:27:36] [Server thread/CRITICAL]: ErrorException: "array_rand(): Array is empty" (EXCEPTION) in "VanillaEntityAI_dev-42.phar/src/jasonwynn10/VanillaEntityAI/EntityListener" at line 58
2018-10-12 [17:27:36] [Server thread/DEBUG]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string array_rand(): Array is empty, string phar:///home/myservertest/plugins/VanillaEntityAI_dev-42.phar/src/jasonwynn10/VanillaEntityAI/EntityListener.php, integer 58, array Array())
2018-10-12 [17:27:36] [Server thread/DEBUG]: #1 VanillaEntityAI_dev-42.phar/src/jasonwynn10/VanillaEntityAI/EntityListener(58): array_rand(array Array())
2018-10-12 [17:27:36] [Server thread/DEBUG]: #2 src/pocketmine/plugin/MethodEventExecutor(38): jasonwynn10\VanillaEntityAI\EntityListener->onLoad(pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #3 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(jasonwynn10\VanillaEntityAI\EntityListener object, pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #4 src/pocketmine/plugin/PluginManager(702): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #5 src/pocketmine/level/Level(2659): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\level\ChunkLoadEvent object)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #6 src/pocketmine/level/Level(2265): pocketmine\level\Level->loadChunk(integer 11, integer 13, boolean 1)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #7 src/pocketmine/level/Level(2925): pocketmine\level\Level->getChunk(integer 11, integer 13, boolean 1)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #8 src/pocketmine/Player(1011): pocketmine\level\Level->populateChunk(integer 11, integer 13)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #9 src/pocketmine/Player(1805): pocketmine\Player->sendNextChunk()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #10 src/pocketmine/Server(2513): pocketmine\Player->checkNetwork()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #11 src/pocketmine/Server(2256): pocketmine\Server->tick()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #12 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #13 src/pocketmine/Server(1700): pocketmine\Server->start()
2018-10-12 [17:27:36] [Server thread/DEBUG]: #14 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/myservertest/, string /home/myservertest/plugins/)
2018-10-12 [17:27:36] [Server thread/DEBUG]: #15 /home/myservertest/PocketMine-MP.phar(1): require(string phar:///home/myservertest/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

more info request & error report

Hi @jasonwynn10 ,

How does the plugin work - no entities are spawning - do i have to config something?

Spawn egg zombie worked, but spawn egg sheep not.
What should i expect when using the plugin right now?

Sorry if there's more background/manual info i'm missing?

In a basic generated world (worlds plugin) a crash occured - report below

This plugin is a bit ambitious but very hard needed to go beyond pureEntities, thanks in advance.
good luck with developments!

2019-05-31 [12:23:01] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to jasonwynn10\VanillaEntityAI\entity\hostile\Zombie::setMainHandItem() must be an instance of pocketmine\item\Item, null given, called in phar:///home/gs-40251/plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Zombie.php on line 69" (EXCEPTION) in "plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/ItemHolderTrait" at line 80
2019-05-31 [12:23:01] [Server thread/DEBUG]: #0 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Zombie(69): jasonwynn10\VanillaEntityAI\entity\hostile\Zombie->setMainHandItem(NULL )
2019-05-31 [12:23:01] [Server thread/DEBUG]: #1 src/pocketmine/entity/Living(824): jasonwynn10\VanillaEntityAI\entity\hostile\Zombie->attack(pocketmine\event\entity\EntityDamageEvent object)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #2 src/pocketmine/entity/Living(736): pocketmine\entity\Living->onAirExpired()
2019-05-31 [12:23:01] [Server thread/DEBUG]: #3 src/pocketmine/entity/Living(688): pocketmine\entity\Living->doAirSupplyTick(integer 1)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #4 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/CollisionCheckingTrait(13): pocketmine\entity\Living->entityBaseTick(integer 1)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #5 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/MonsterBase(53): jasonwynn10\VanillaEntityAI\entity\CreatureBase->entityBaseTick(integer 1)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #6 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Zombie(123): jasonwynn10\VanillaEntityAI\entity\MonsterBase->entityBaseTick(integer 1)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #7 src/pocketmine/entity/Entity(1475): jasonwynn10\VanillaEntityAI\entity\hostile\Zombie->entityBaseTick(integer 1)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #8 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/CollisionCheckingTrait(34): pocketmine\entity\Entity->onUpdate(integer 10691)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #9 plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Zombie(114): jasonwynn10\VanillaEntityAI\entity\CreatureBase->onUpdate(integer 10691)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #10 src/pocketmine/level/Level(848): jasonwynn10\VanillaEntityAI\entity\hostile\Zombie->onUpdate(integer 10691)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #11 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 10691)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #12 src/pocketmine/Server(2436): pocketmine\level\Level->doTick(integer 10691)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #13 src/pocketmine/Server(2567): pocketmine\Server->checkTickUpdates(integer 10691, double 1559319781.845)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #14 src/pocketmine/Server(2336): pocketmine\Server->tick()
2019-05-31 [12:23:01] [Server thread/DEBUG]: #15 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
2019-05-31 [12:23:01] [Server thread/DEBUG]: #16 src/pocketmine/Server(1775): pocketmine\Server->start()
2019-05-31 [12:23:01] [Server thread/DEBUG]: #17 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/gs-40251/, string /home/gs-40251/plugins/)
2019-05-31 [12:23:01] [Server thread/DEBUG]: #18 (1): require(string phar:///pro/bin/mcpe/pocketmine-stable-1.11.0/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
2019-05-31 [12:23:01] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

Mob don't move

Describe the bug
Animal and mob Can't move

To Reproduce
Steps to reproduce the behavior:

  1. summon a chicken

Expected behavior
A clear and concise description of what you expected to happen.
Animals can move normally

Screenshots
null

Client Information (please complete the following information):

  • PocketMine API Version: 3.9.4
  • Plugin Version: 1.0.0-alpha5
  • PHP Version: 7.2.8

Additional context
Add any other context about the problem here. Links to your report on https://crash.pmmp.io are helpful!

Issue with BetterGen

Hey, I'm posting this issue from another plugin here because the BetterGen plugin you forked and updated, doesn't have the issues tab. So I just thought "I might as well post that issue here).
So before I start going on about what the issue is, I'd like to say Thanks for updating betterGen plugin! Means a lot!
So anyways, let me explain the issue I'm experiencing.
So whenever I go to different biomes (or specifically biomes), I'm experiencing this error in console:

TypeError: "Argument 4 passed to pocketmine\level\Position::__construct() must be an instance of pocketmine\level\Level or null, instance of pocketmine\level\SimpleChunkManager given, called in /plugins/BetterGen-loottables/src/Ad5001/BetterGen/structure/Temple.php on line 151" (EXCEPTION) in "src/pocketmine/level/Position" at line 40
30.09 21:21:51 [Server] Asynchronous Worker #0 thread/DEBUG #0 BetterGen-loottables/src/Ad5001/BetterGen/structure/Temple(151): pocketmine\level\Position->__construct(integer -87, integer 56, integer 26, pocketmine\level\SimpleChunkManager object)
30.09 21:21:51 [Server] Asynchronous Worker #0 thread/DEBUG #1 BetterGen-loottables/src/Ad5001/BetterGen/populator/TemplePopulator(49): Ad5001\BetterGen\structure\Temple->placeObject(pocketmine\level\SimpleChunkManager object, integer -87, integer 67, integer 24, pocketmine\utils\Random object)
30.09 21:21:51 [Server] Asynchronous Worker #0 thread/DEBUG #2 src/pocketmine/level/biome/Biome(132): Ad5001\BetterGen\populator\TemplePopulator->populate(pocketmine\level\SimpleChunkManager object, integer -6, integer 1, pocketmine\utils\Random object)
30.09 21:21:51 [Server] Asynchronous Worker #0 thread/DEBUG #3 BetterGen-loottables/src/Ad5001/BetterGen/generator/BetterNormal(370): pocketmine\level\biome\Biome->populateChunk(pocketmine\level\SimpleChunkManager object, integer -6, integer 1, pocketmine\utils\Random object)
30.09 21:21:51 [Server] Asynchronous Worker #0 thread/DEBUG #4 src/pocketmine/level/generator/PopulationTask(104): Ad5001\BetterGen\generator\BetterNormal->populateChunk(integer -6, integer 1)
30.09 21:21:51 [Server] Asynchronous Worker #0 thread/DEBUG #5 src/pocketmine/scheduler/AsyncTask(72): pocketmine\level\generator\PopulationTask->onRun()
30.09 21:21:51 [Server] Asynchronous Worker #0 thread/DEBUG #6 (): pocketmine\scheduler\AsyncTask->run()
30.09 21:21:52 [Server] Server thread/CRITICAL Could not execute asynchronous task PopulationTask: Task crashed

I do hope you fix this issue with BetterGen,
Now, don't close this issue, as I've already explained my reasons above. Just let me know what you think on it.
Thank you.

Config is being created empty

After installing the plugin, the config was created as followed:
--- [] ...
I have restarted the server, deleted the config and restarted, I have also tried removing all the files and adding the plugin again, why does this happen?
I have not modified the plugin in anyway, and the server is the latest version of Pocketmine

Crash on Join

Describe the bug
When a Player joins the server the Plugin causes it to crash.

To Reproduce
Steps to reproduce the behavior:

  1. join the server

Expected behavior
I Expect the player to be able to join the server.

Screenshots
None

Client Information (please complete the following information):

  • PocketMine API Version: [3.8.4]
  • Plugin Version: [1.0.0-alpha3]
  • PHP Version: [7.2]

Additional context
THE ERROR

TypeError: "Return value of jasonwynn10\VanillaEntityAI\entity\passive\Cow::onUpdate() must be of the type boolean, none returned" (EXCEPTION) in "plugins/VanillaEntityAI (1).phar/src/jasonwynn10/VanillaEntityAI/entity/passive/Cow" at line 47
[22:36:06] [Server thread/DEBUG]: #0 src/pocketmine/level/Level(848): jasonwynn10\VanillaEntityAI\entity\passive\Cow->onUpdate(integer 520)
[22:36:06] [Server thread/DEBUG]: #1 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 520)
[22:36:06] [Server thread/DEBUG]: #2 src/pocketmine/Server(2435): pocketmine\level\Level->doTick(integer 520)
[22:36:06] [Server thread/DEBUG]: #3 src/pocketmine/Server(2566): pocketmine\Server->checkTickUpdates(integer 520, double 1561588566.3499)
[22:36:06] [Server thread/DEBUG]: #4 src/pocketmine/Server(2335): pocketmine\Server->tick()
[22:36:06] [Server thread/DEBUG]: #5 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
[22:36:06] [Server thread/DEBUG]: #6 src/pocketmine/Server(1774): pocketmine\Server->start()
[22:36:06] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)

What's difference and why use that plugin?

What's difference of PureEntitiesX and that plugin? Why use that and not PureEntities?

Btw, do movement ticking and loading entities in other thread if you don't want laggy plugin. ;)

error

[11:19:13] [Server thread/CRITICAL]: ErrorException: "Declaration of jasonwynn10\VanillaEntityAI\entity\passive\Chicken::initEntity(): void should be compatible with pocketmine\entity\Living::initEntity(pocketmine\nbt\tag\CompoundTag $nbt): void" (EXCEPTION) in "VanillaEntityAI-master/src/jasonwynn10/VanillaEntityAI/entity/passive/Chicken" at line 39

Server Crashing oof here the error

Error: Argument 1 passed to jasonwynn10\VanillaEntityAI\entity\neutral\Item::push() must be an instance of jasonwynn10\VanillaEntityAI\entity\CreatureBase, instance of jasonwynn10\VanillaEntityAI\entity\passive\Villager given, called in phar:///home/CBS/plugins/VanillaEntityAI_dev-88.phar/src/jasonwynn10/VanillaEntityAI/entity/CollisionCheckingTrait.php on line 25
File: plugins/VanillaEntityAI_dev-88.phar/src/jasonwynn10/VanillaEntityAI/entity/neutral/Item
Line: 39
Type: TypeError

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: VanillaEntityAI v1.0.0-alpha4

Code:

Backtrace:

#0 plugins/VanillaEntityAI_dev-88.phar/src/jasonwynn10/VanillaEntityAI/entity/CollisionCheckingTrait(25): jasonwynn10\VanillaEntityAI\entity\neutral\Item->push(object jasonwynn10\VanillaEntityAI\entity\passive\Villager)
#1 plugins/VanillaEntityAI_dev-88.phar/src/jasonwynn10/VanillaEntityAI/entity/CollisionCheckingTrait(12): jasonwynn10\VanillaEntityAI\entity\passive\Villager->checkNearEntities()
#2 src/pocketmine/entity/Entity(1481): jasonwynn10\VanillaEntityAI\entity\passive\Villager->entityBaseTick(integer 1)
#3 plugins/VanillaEntityAI_dev-88.phar/src/jasonwynn10/VanillaEntityAI/entity/CollisionCheckingTrait(34): pocketmine\entity\Entity->onUpdate(integer 209096)
#4 src/pocketmine/level/Level(853): jasonwynn10\VanillaEntityAI\entity\passive\Villager->onUpdate(integer 209096)
#5 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 209096)
#6 src/pocketmine/Server(2445): pocketmine\level\Level->doTick(integer 209096)
#7 src/pocketmine/Server(2576): pocketmine\Server->checkTickUpdates(integer 209096, double 1567536013.3903)
#8 src/pocketmine/Server(2345): pocketmine\Server->tick()
#9 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
#10 src/pocketmine/Server(1784): pocketmine\Server->start()
#11 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[10] /home/CBS/, string[18] /home/CBS/plugins/)
#12 src/pocketmine/PocketMine(299): pocketmine\server()
#13 (1): require(string[65] phar:///home/CBS/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.9.4 [Protocol 361]
Git commit: 1be6783c34ec51b578464899994285a7e8188590
uname -a: Linux Noteland-Netzwerk 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u4 (2019-07-19) x86_64
PHP Version: 7.2.19
Zend version: 3.2.0
OS : Linux, linux

Pls..fix bug

[01:41:56] [Server thread/CRITICAL]: ErrorException: "Undefined offset: 210" (EXCEPTION) in "plugins/VanillaEntityAI_dev-47 (1).phar/src/jasonwynn10/VanillaEntityAI/EntityListener" at line 61
[01:41:56] [Server thread/DEBUG]: #0 plugins/VanillaEntityAI_dev-47 (1).phar/src/jasonwynn10/VanillaEntityAI/EntityListener(61): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined offset: 210, string phar://C:/Users/Administrator/Desktop/Server/Survivals/plugins/VanillaEntityAI_dev-47 (1).phar/src/jasonwynn10/VanillaEntityAI/EntityListener.php, integer 61, array Array())
[01:41:56] [Server thread/DEBUG]: #1 src/pocketmine/plugin/MethodEventExecutor(38): jasonwynn10\VanillaEntityAI\EntityListener->onLoad(pocketmine\event\level\ChunkLoadEvent object)
[01:41:56] [Server thread/DEBUG]: #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(jasonwynn10\VanillaEntityAI\EntityListener object, pocketmine\event\level\ChunkLoadEvent object)
[01:41:56] [Server thread/DEBUG]: #3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\level\ChunkLoadEvent object)
[01:41:56] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(2830): pocketmine\event\Event->call()
[01:41:56] [Server thread/DEBUG]: #5 src/pocketmine/level/Level(2401): pocketmine\level\Level->loadChunk(integer 10, integer 31, boolean 1)
[01:41:56] [Server thread/DEBUG]: #6 src/pocketmine/entity/Entity(1854): pocketmine\level\Level->getChunk(integer 10, integer 31, boolean 1)
[01:41:56] [Server thread/DEBUG]: #7 src/pocketmine/entity/Entity(1826): pocketmine\entity\Entity->checkChunks()
[01:41:56] [Server thread/DEBUG]: #8 src/pocketmine/entity/Entity(1838): pocketmine\entity\Entity->setPosition(pocketmine\level\Position object)
[01:41:56] [Server thread/DEBUG]: #9 src/pocketmine/entity/Entity(1933): pocketmine\entity\Entity->setPositionAndRotation(pocketmine\level\Position object, double 190.06898498535, double 29.794677734375)
[01:41:56] [Server thread/DEBUG]: #10 src/pocketmine/Player(3751): pocketmine\entity\Entity->teleport(pocketmine\level\Position object, NULL , NULL )
[01:41:56] [Server thread/DEBUG]: #11 plugins/MagicTelePortal.phar/src/aliuly/mtp/Main(260): pocketmine\Player->teleport(pocketmine\level\Position object)
[01:41:56] [Server thread/DEBUG]: #12 plugins/MagicTelePortal.phar/src/aliuly/mtp/common/PluginCallbackTask(61): aliuly\mtp\Main->portalActiveSg1(string doopyxmaster, aliuly\mtp\common\PluginCallbackTask object, integer 4571)
[01:41:56] [Server thread/DEBUG]: #13 src/pocketmine/scheduler/TaskHandler(159): aliuly\mtp\common\PluginCallbackTask->onRun(integer 4571)
[01:41:56] [Server thread/DEBUG]: #14 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 4571)
[01:41:56] [Server thread/DEBUG]: #15 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 4571)
[01:41:56] [Server thread/DEBUG]: #16 src/pocketmine/Server(2587): pocketmine\plugin\PluginManager->tickSchedulers(integer 4571)
[01:41:56] [Server thread/DEBUG]: #17 src/pocketmine/Server(2342): pocketmine\Server->tick()
[01:41:56] [Server thread/DEBUG]: #18 src/pocketmine/Server(2205): pocketmine\Server->tickProcessor()
[01:41:56] [Server thread/DEBUG]: #19 src/pocketmine/Server(1784): pocketmine\Server->start()
[01:41:56] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(250): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Administrator\Desktop\Server\Survivals\, string C:\Users\Administrator\Desktop\Server\Survivals\plugins\)
[01:41:56] [Server thread/DEBUG]: #21 (1): require(string phar://C:/Users/Administrator/Desktop/Server/Survivals/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[01:41:56] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[01:41:56] [Server thread/EMERGENCY]: Please upload the "C:\Users\Administrator\Desktop\Server\Survivals\crashdumps/Tue_Mar_5-01.41.56-WIB_2019.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

Help

  • Can you fix the problem mob spawner?

  • Can you make it happen in the general world like Purexentite?

Crash on server start with plugin enabled

Describe the bug
when i start the server with this plugin enabled it crashes instantly

To Reproduce
Steps to reproduce the behavior:

  1. start the server with the plugin enabled

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots of error messages to help explain your problem.

Client Information (please complete the following information):

PocketMine-MP Crash Dump Tue Jul 16 03:02:47 UTC 2019

Error: Trait method initEntity has not been applied, because there are collisions with other trait methods on jasonwynn10\VanillaEntityAI\entity\hostile\Drowned
File: plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Drowned
Line: 9
Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: VanillaEntityAI v1.0.0-alpha4

Code:
[1] <?php
[2] declare(strict_types=1);
[3] namespace jasonwynn10\VanillaEntityAI\entity\hostile;
[4]
[5] use jasonwynn10\VanillaEntityAI\entity\AgeableTrait;
[6] use jasonwynn10\VanillaEntityAI\entity\ClimbingTrait;
[7] use jasonwynn10\VanillaEntityAI\entity\ItemHolderTrait;
[8]
[9] class Drowned extends Zombie {
[10] use ItemHolderTrait, AgeableTrait, ClimbingTrait;
[11] public const NETWORK_ID = self::DROWNED;
[12]
[13] protected function applyGravity() : void {
[14] if(!$this->isUnderwater()) {
[15] parent::applyGravity();
[16] }
[17] }
[18] }

Backtrace:

PocketMine-MP version: 3.9.0 [Protocol 361]
Git commit: bd69c66d0379814fc9f98811707da500d130742a
uname -a: Linux gameserver 4.19.0-5-amd64 #1 SMP Debian 4.19.37-5 (2019-06-19) x86_64
PHP Version: 7.3.6
Zend version: 3.3.6
OS : Linux, linux

Additional context
Add any other context about the problem here. Links to your report on https://crash.pmmp.io are helpful!

TypeError fatal crash on enter world

Describe the bug
Crash on start

To Reproduce

  • enter world
  • server crashes

Expected behavior

  • enter world without crash

Screenshots
If applicable, add screenshots of error messages to help explain your problem.

Client Information (please complete the following information):

Instant Crash after changing Level

PocketMine-MP Crash Dump Fri Feb 22 15:24:16 UTC 2019

Error: Undefined offset: 131
File: plugins/VanillaEntityAI-master/src/jasonwynn10/VanillaEntityAI/EntityListener
Line: 41
Type: ErrorException

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: VanillaEntityAI v0.0.1

Code:
[32] 	 * @param ChunkLoadEvent $event
[33] 	 */
[34] 	public function onLoad(ChunkLoadEvent $event) {
[35] 		$chunk = $event->getChunk();
[36] 		$level = $event->getLevel();
[37] 		$packCenter = new Vector3(mt_rand($chunk->getX() << 4, (($chunk->getX() << 4) + 15)), mt_rand(0, $level->getWorldHeight() - 1), mt_rand($chunk->getZ() << 4, (($chunk->getZ() << 4) + 15)));
[38] 		$lightLevel = $level->getFullLightAt($packCenter->x, $packCenter->y, $packCenter->z);
[39] 		if(!$level->getBlockAt($packCenter->x, $packCenter->y, $packCenter->z)->isSolid() and $lightLevel > 8) {
[40] 			$biomeId = $level->getBiomeId($packCenter->x, $packCenter->z);
[41] 			$entityList = BiomeEntityList::BIOME_ANIMALS[$biomeId];
[42] 			if(empty($entityList))
[43] 				return; // no entities for this biome
[44] 			$entityId = $entityList[array_rand(BiomeEntityList::BIOME_ANIMALS[$biomeId])];
[45] 			if(!$level->getBlockAt($packCenter->x, $packCenter->y, $packCenter->z)->isSolid()) {
[46] 				for($attempts = 0, $currentPackSize = 0; $attempts <= 12 and $currentPackSize < 4; $attempts++) {
[47] 					$x = mt_rand(-20, 20) + $packCenter->x;
[48] 					$z = mt_rand(-20, 20) + $packCenter->z;
[49] 					foreach(EntityAI::$entities as $class => $arr) {
[50] 						if($class instanceof AnimalBase and $class::NETWORK_ID === $entityId) {
[51] 							$entity = $class::spawnMob(new Position($x + 0.5, $packCenter->y, $z + 0.5, $level));

Backtrace:
#0 plugins/VanillaEntityAI-master/src/jasonwynn10/VanillaEntityAI/EntityListener(41): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string Undefined offset: 131, string /servers/citybuild-test/plugins/VanillaEntityAI-master/src/jasonwynn10/VanillaEntityAI/EntityListener.php, integer 41, array Array())
#1 src/pocketmine/plugin/MethodEventExecutor(38): jasonwynn10\VanillaEntityAI\EntityListener->onLoad(pocketmine\event\level\ChunkLoadEvent object)
#2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(jasonwynn10\VanillaEntityAI\EntityListener object, pocketmine\event\level\ChunkLoadEvent object)
#3 src/pocketmine/event/Event(99): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\level\ChunkLoadEvent object)
#4 src/pocketmine/level/Level(2830): pocketmine\event\Event->call()
#5 src/pocketmine/level/Level(2401): pocketmine\level\Level->loadChunk(integer 8, integer 10, boolean 1)
#6 src/pocketmine/level/Level(3092): pocketmine\level\Level->getChunk(integer 8, integer 10, boolean 1)
#7 src/pocketmine/Player(1050): pocketmine\level\Level->populateChunk(integer 8, integer 10)
#8 src/pocketmine/Player(1828): pocketmine\Player->sendNextChunk()
#9 src/pocketmine/Server(2601): pocketmine\Player->checkNetwork()
#10 src/pocketmine/Server(2346): pocketmine\Server->tick()
#11 src/pocketmine/Server(2209): pocketmine\Server->tickProcessor()
#12 src/pocketmine/Server(1785): pocketmine\Server->start()
#13 src/pocketmine/PocketMine(249): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /servers/citybuild-test/, string /servers/citybuild-test/plugins/)
#14 (1): require(string phar:///servers/citybuild-test/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Server crash

PHP Fatal error: Trait method initEntity has not been applied, because there are collisions with other trait methods on jasonwynn10\VanillaEntityAI\entity\hostile\Drowned in phar:///home/2/plugins/VanillaEntityAI_dev-84.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Drowned.php on line 9
Fatal error: Trait method initEntity has not been applied, because there are collisions with other trait methods on jasonwynn10\VanillaEntityAI\entity\hostile\Drowned in phar:///home/2/plugins/VanillaEntityAI_dev-84.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Drowned.php on line 9

hi whit last version error

Fatal error: Declaration of jasonwynn10\VanillaEntityAI\entity\hostile\Zombie::setDropAll(bool $dropAll): void must be compatible with jasonwynn10\VanillaEntityAI\entity\InventoryHolder::setDropAll(bool $dropAll = true): void in phar:///root/test2/StartPmmp/plugins/VanillaEntityAI_dev-9.phar/src/jasonwynn10/VanillaEntityAI/entity/hostile/Zombie.php on line 21
[14:39:02] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[14:39:02] [Server thread/EMERGENCY]: Please upload the "/root/test2/StartPmmp/crashdumps/Mon_Sep_10-14.39.02-UTC_2018.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[14:39:02] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You

Mob Spawner?

I hope that Mob Spawners working at next time

Commands do not implement PluginIdentifiableCommand

This prevents Poggit from detecting the command, and hence the plugin cannot be searched at https://poggit.pmmp.io/cmds

This is not a critical issue, so your plugin is not immediately rejected. However, please make sure this issue is resolved in your next update.

This issue was created via GitHub API automatically, but you are welcome to reply to this issue to contact me. Sorry about not reading the CONTRIBUTING.md in this repo πŸ™ƒ

Server crash using pmmp 3.11.2

Return value of jasonwynn10\VanillaEntityAI\entity\hostile\Zombie::setMainHandItem() must be an instance of jasonwynn10\VanillaEntityAI\entity\ItemHolderTrait, instance of jasonwynn10\VanillaEntityAI\entity\hostile\Drowned returned

https://crash.pmmp.io/view/3470959

Havent seen an alpha release lately. Are you still working on this @jasonwynn10 ?

Mob Spawner

Mob spawner is activate whit this pkugin?

Plugin crash

PHP Fatal error:  Declaration of jasonwynn10\VanillaEntityAI\entity\AgeableTrait::setBaby(bool $baby = true): jasonwynn10\VanillaEntityAI\entity\AgeableTrait must be compatible with jasonwynn10\VanillaEntityAI\entity\AnimalBase::setBaby(bool $baby = true): jasonwynn10\VanillaEntityAI\entity\AnimalBase in phar:///plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/passive/Cow.php on line 18
04.06 13:51:14 [ζœεŠ‘ε™¨] 俑息 Fatal error: Declaration of jasonwynn10\VanillaEntityAI\entity\AgeableTrait::setBaby(bool $baby = true): jasonwynn10\VanillaEntityAI\entity\AgeableTrait must be compatible with jasonwynn10\VanillaEntityAI\entity\AnimalBase::setBaby(bool $baby = true): jasonwynn10\VanillaEntityAI\entity\AnimalBase in phar:///plugins/VanillaEntityAI.phar/src/jasonwynn10/VanillaEntityAI/entity/passive/Cow.php on line 18
04.06 13:51:14 [ζœεŠ‘ε™¨] Server thread/EMERGENCY An unrecoverable error has occurred and the server has crashed. Creating a crash dump
04.06 13:51:14 [ζœεŠ‘ε™¨] Server thread/EMERGENCY Please upload the "/crashdumps/Tue_Jun_4-13.51.14-AWST_2019.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

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.