DaPigGuy / PiggyCustomEnchants

An open source custom enchantment plugin for PocketMine-MP
https://piggydocs.aericio.net/PiggyCustomEnchants.html
Apache License 2.0
103 stars 118 forks source link

Undefined index - Driller #231

Closed RubyTemple closed 4 years ago

RubyTemple commented 4 years ago

Please make sure your issue complies with these guidelines:

General

Undefined index

Version:

Steps to Reproduce the Issue

  1. idk

Extra Information

[Server thread/CRITICAL]: ErrorException: "Undefined index: Manicotta" (EXCEPTION) in "plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/tools/DrillerEnchant" at line 48
[15:41:18] [Server thread/DEBUG]: #0 plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/tools/DrillerEnchant(48): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Undefined index: Manicotta, string[111] /root/PvP/plugins/Pigg
yCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/en, integer 48, array[7])
[15:41:18] [Server thread/DEBUG]: #1 plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/traits/ReactiveTrait(54): DaPigGuy\PiggyCustomEnchants\enchants\tools\DrillerEnchant->react(object pocketmine\Player, object pocketmine\item\Pickaxe, object
 pocketmine\inventory\PlayerInventory, integer 1, object pocketmine\event\block\BlockBreakEvent, integer 3, integer 3)
[15:41:18] [Server thread/DEBUG]: #2 plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/EventListener(531): DaPigGuy\PiggyCustomEnchants\enchants\ReactiveEnchantment->onReaction(object pocketmine\Player, object pocketmine\item\Pickaxe, object pocketmine
\inventory\PlayerInventory, integer 1, object pocketmine\event\block\BlockBreakEvent, integer 3, integer 3)
[15:41:18] [Server thread/DEBUG]: #3 plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/EventListener(79): DaPigGuy\PiggyCustomEnchants\EventListener->attemptReaction(object pocketmine\Player, object pocketmine\event\block\BlockBreakEvent)
[15:41:18] [Server thread/DEBUG]: #4 src/pocketmine/plugin/MethodEventExecutor(38): DaPigGuy\PiggyCustomEnchants\EventListener->onBreak(object pocketmine\event\block\BlockBreakEvent)
[15:41:18] [Server thread/DEBUG]: #5 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object DaPigGuy\PiggyCustomEnchants\EventListener, object pocketmine\event\block\BlockBreakEvent)
[15:41:18] [Server thread/DEBUG]: #6 src/pocketmine/event/Event(95): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\block\BlockBreakEvent)
[15:41:18] [Server thread/DEBUG]: #7 src/pocketmine/level/Level(1830): pocketmine\event\Event->call()
[15:41:18] [Server thread/DEBUG]: #8 src/pocketmine/Player(2482): pocketmine\level\Level->useBreakOn(object pocketmine\math\Vector3, object pocketmine\item\Pickaxe, object pocketmine\Player, boolean 1)
[15:41:18] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(151): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
[15:41:18] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(178): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
[15:41:18] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(111): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[15:41:18] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/protocol/BatchPacket(126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
[15:41:18] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(111): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[15:41:18] [Server thread/DEBUG]: #14 src/pocketmine/Player(3162): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[15:41:18] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[15:41:18] [Server thread/DEBUG]: #16 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 93.44.196.79 61059, object raklib\protocol\EncapsulatedPacket, integer 0)
[15:41:18] [Server thread/DEBUG]: #17 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[15:41:18] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[15:41:18] [Server thread/DEBUG]: #19 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[15:41:18] [Server thread/DEBUG]: #20 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[15:41:18] [Server thread/DEBUG]: #21 src/pocketmine/Server(2349): pocketmine\snooze\SleeperHandler->sleepUntil(double 1577803278.5219)
[15:41:18] [Server thread/DEBUG]: #22 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
[15:41:18] [Server thread/DEBUG]: #23 src/pocketmine/Server(1785): pocketmine\Server->start()
[15:41:18] [Server thread/DEBUG]: #24 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[10] /root/PvP/, string[18] /root/PvP/plugins/)
[15:41:18] [Server thread/DEBUG]: #25 src/pocketmine/PocketMine(295): pocketmine\server()
Aericio commented 4 years ago

We are not responsible for any errors that come from manually editing the plugin.

Please run the plugin as-is precompiled from Poggit. Adding new custom enchants must be done via our API instead of modifying the main plugin. If an issue arises with the API, then we will provide support. If not, again, we are not responsible.

RubyTemple commented 4 years ago

I am using the code you provide

RubyTemple commented 4 years ago

im using the last phar on poggit

provsalt commented 4 years ago

im using the last phar on poggit

then whats this lmao Manicotta

RubyTemple commented 4 years ago

im using the last phar on poggit

then whats this lmao Manicotta

Are you idiot?

Aericio commented 4 years ago

I am about 100% sure this is not running from phar because the crashdump clearly shows:

[Server thread/CRITICAL]: ErrorException: "Undefined index: Manicotta" (EXCEPTION) in "plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/tools/DrillerEnchant" at line 48

PiggyCustomEnchants-master is not something that should be there if it was running from the phar.

provsalt commented 4 years ago

im using the last phar on poggit

then whats this lmao Manicotta

Are you idiot?

Maybe you are talking about yourself

RubyTemple commented 4 years ago

I am about 100% sure this is not running from phar because the crashdump clearly shows:

[Server thread/CRITICAL]: ErrorException: "Undefined index: Manicotta" (EXCEPTION) in "plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/tools/DrillerEnchant" at line 48

PiggyCustomEnchants-master is not something that should be there if it was running from the phar.

Need i download dev phar or release phar?

provsalt commented 4 years ago

I am about 100% sure this is not running from phar because the crashdump clearly shows:

[Server thread/CRITICAL]: ErrorException: "Undefined index: Manicotta" (EXCEPTION) in "plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/tools/DrillerEnchant" at line 48

PiggyCustomEnchants-master is not something that should be there if it was running from the phar.

Need i download dev phar or release phar?

download the release one.Dev builds are unstable from your issue it seems like you downloaded from github

RubyTemple commented 4 years ago

I am about 100% sure this is not running from phar because the crashdump clearly shows:

[Server thread/CRITICAL]: ErrorException: "Undefined index: Manicotta" (EXCEPTION) in "plugins/PiggyCustomEnchants-master/src/DaPigGuy/PiggyCustomEnchants/enchants/tools/DrillerEnchant" at line 48

PiggyCustomEnchants-master is not something that should be there if it was running from the phar.

Need i download dev phar or release phar?

download the release one.Dev builds are unstable from your issue it seems like you downloaded from github

not work in last pmmp version

` [Server thread/CRITICAL]: Error: "Call to a member function getSize() on array" (EXCEPTION) in "src/pocketmine/item/enchantment/Enchantment" at line 158 [23:56:40] [Server thread/DEBUG]: #0 src/pocketmine/item/Item(423): pocketmine\item\enchantment\Enchantment::getEnchantment(integer 420) [23:56:40] [Server thread/DEBUG]: #1 plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/utils/Utils(207): pocketmine\item\Item->getEnchantments() [23:56:40] [Server thread/DEBUG]: #2 plugins/PiggyCustomEnchants.phar/src/DaPigGuy/PiggyCustomEnchants/EventListener(119): DaPigGuy\PiggyCustomEnchants\utils\Utils::displayEnchants(object pocketmine\item\DiamondHelmet) [23:56:40] [Server thread/DEBUG]: #3 src/pocketmine/plugin/MethodEventExecutor(38): DaPigGuy\PiggyCustomEnchants\EventListener->onDataPacketSend(object pocketmine\event\server\DataPacketSendEvent) [23:56:40] [Server thread/DEBUG]: #4 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object DaPigGuy\PiggyCustomEnchants\EventListener, object pocketmine\event\server\DataPacketSendEvent) [23:56:40] [Server thread/DEBUG]: #5 src/pocketmine/event/Event(95): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketSendEvent) [23:56:40] [Server thread/DEBUG]: #6 src/pocketmine/Player(3209): pocketmine\event\Event->call() [23:56:40] [Server thread/DEBUG]: #7 src/pocketmine/Player(3234): pocketmine\Player->sendDataPacket(object pocketmine\network\mcpe\protocol\InventoryContentPacket, boolean , boolean ) [23:56:40] [Server thread/DEBUG]: #8 src/pocketmine/inventory/BaseInventory(451): pocketmine\Player->dataPacket(object pocketmine\network\mcpe\protocol\InventoryContentPacket) [23:56:40] [Server thread/DEBUG]: #9 src/pocketmine/Player(3981): pocketmine\inventory\BaseInventory->sendContents(array[1]) [23:56:40] [Server thread/DEBUG]: #10 src/pocketmine/Player(2217): pocketmine\Player->sendAllInventories() [23:56:40] [Server thread/DEBUG]: #11 src/pocketmine/Player(2126): pocketmine\Player->completeLoginSequence() [23:56:40] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(127): pocketmine\Player->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket) [23:56:40] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/protocol/ResourcePackClientResponsePacket(62): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleResourcePackClientResponse(object pocketmine\network\mcpe\protocol\ResourcePackClientResponse Packet) [23:56:40] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(111): pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [23:56:40] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ResourcePackClientResponsePacket) [23:56:40] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(111): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter) [23:56:40] [Server thread/DEBUG]: #17 src/pocketmine/Player(3158): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [23:56:40] [Server thread/DEBUG]: #18 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket) [23:56:40] [Server thread/DEBUG]: #19 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 63755, object raklib\protocol\EncapsulatedPacket, integer 0) [23:56:40] [Server thread/DEBUG]: #20 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket() [23:56:40] [Server thread/DEBUG]: #21 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process() [23:56:40] [Server thread/DEBUG]: #22 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}() [23:56:40] [Server thread/DEBUG]: #23 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications() [23:56:40] [Server thread/DEBUG]: #24 src/pocketmine/Server(2349): pocketmine\snooze\SleeperHandler->sleepUntil(double 1577922999.8173) [23:56:40] [Server thread/DEBUG]: #25 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor() [23:56:40] [Server thread/DEBUG]: #26 src/pocketmine/Server(1785): pocketmine\Server->start() [23:56:40] [Server thread/DEBUG]: #27 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[29] C:\Users\RYZEN\Documents\PvP\, string[37] C:\Users\RYZEN\Documents\PvP\plugins) [23:56:40] [Server thread/DEBUG]: #28 src/pocketmine/PocketMine(295): pocketmine\server()

[23:56:40] [Server thread/INFO]: RubyTemple[/127.0.0.1:63755] disconnesso a causa di Internal server error `

Aericio commented 4 years ago

please use 3.11.1 instead of later versions of pmmp.

230 - known issue.