inxomnyaa / TNTRun

TNTRun for pmmp
https://poggit.pmmp.io/ci/thebigsmileXD/TNTRun/~
MIT License
9 stars 1 forks source link

Error when creating arena on existing world #3

Open benda95280 opened 4 years ago

benda95280 commented 4 years ago

PocketMine-MP 3.12.0 - Minecraft : Pe v1.14

How to reproduce :

[20:34:00] [Server thread/CRITICAL]: RuntimeException: "Cannot set tag at "generatorOptions": tried to overwrite pocketmine\nbt\tag\CompoundTag with pocketmine\nbt\tag\StringTag" (EXCEPTION) in "vendor/pocketmine/nbt/src/tag/CompoundTag" at line 143
[20:34:00] [Server thread/DEBUG]: #0 vendor/pocketmine/nbt/src/tag/CompoundTag(375): pocketmine\nbt\tag\CompoundTag->setTag(object pocketmine\nbt\tag\StringTag, boolean )
[20:34:00] [Server thread/DEBUG]: #1 src/pocketmine/level/format/io/BaseLevelProvider(74): pocketmine\nbt\tag\CompoundTag->setString(string[16] generatorOptions, string[0] )
[20:34:00] [Server thread/DEBUG]: #2 src/pocketmine/level/format/io/BaseLevelProvider(52): pocketmine\level\format\io\BaseLevelProvider->fixLevelData()
[20:34:00] [Server thread/DEBUG]: #3 plugins/TNTRun_dev-3.phar/src/xenialdan/TNTRun/libs/xenialdan/gameapi/API(54): pocketmine\level\format\io\BaseLevelProvider->__construct(string[65] C:\Users\Acer-Maison\Documents\PocketMine-MP 4.0\worlds/parkour4\)
[20:34:00] [Server thread/DEBUG]: #4 plugins/TNTRun_dev-3.phar/src/xenialdan/TNTRun/Loader(166): xenialdan\TNTRun\libs\xenialdan\gameapi\API::getAllWorlds()
[20:34:00] [Server thread/DEBUG]: #5 plugins/TNTRun_dev-3.phar/src/xenialdan/TNTRun/libs/xenialdan/customui/windows/SimpleForm(117): xenialdan\TNTRun\Loader->xenialdan\TNTRun\{closure}(object pocketmine\Player, string[14] Existing world)
[20:34:00] [Server thread/DEBUG]: #6 src/pocketmine/Player(3442): xenialdan\TNTRun\libs\xenialdan\customui\windows\SimpleForm->handleResponse(object pocketmine\Player, integer 1)
[20:34:00] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(264): pocketmine\Player->onFormSubmit(integer 1, integer 1)
[20:34:00] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/ModalFormResponsePacket(49): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[20:34:00] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[20:34:00] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/protocol/BatchPacket(126): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket)
[20:34:00] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(110): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[20:34:00] [Server thread/DEBUG]: #12 src/pocketmine/Player(3118): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:34:00] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[20:34:00] [Server thread/DEBUG]: #14 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[15] 127.0.0.1 52508, object raklib\protocol\EncapsulatedPacket, integer 0)
[20:34:00] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[20:34:00] [Server thread/DEBUG]: #16 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[20:34:00] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[20:34:00] [Server thread/DEBUG]: #18 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[20:34:00] [Server thread/DEBUG]: #19 src/pocketmine/Server(2146): pocketmine\snooze\SleeperHandler->sleepUntil(double 1589571240.8556)
[20:34:00] [Server thread/DEBUG]: #20 src/pocketmine/Server(1990): pocketmine\Server->tickProcessor()
[20:34:00] [Server thread/DEBUG]: #21 src/pocketmine/Server(1584): pocketmine\Server->start()
[20:34:00] [Server thread/DEBUG]: #22 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[49] C:\Users\Acer-Maison\Documents\PocketMine-MP 4.0\, string[57] C:\Users\Acer-Maison\Documents\PocketMine-MP 4.0\plugins\)
[20:34:00] [Server thread/DEBUG]: #23 src/pocketmine/PocketMine(296): pocketmine\server()
[20:34:00] [Server thread/DEBUG]: #24 (11): require(string[104] phar://C:/Users/Acer-Maison/Documents/PocketMine-MP 4.0/PocketMine-MP.phar/src/p)

Thanks

inxomnyaa commented 4 years ago

Big oof. But..

C:\Users\Acer-Maison\Documents\PocketMine-MP 4.0\

Are you sure you don't use PM 4.0.0 api?

benda95280 commented 4 years ago

Yes i'm sure, was looking to do it, but not yet done 🍡