-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server Crash at the end of the start countdown #10
Comments
Hey right now I don't have time to worry about it ... I'll have a look at it sometime as soon as I have the time! |
Es müsste übrigens an der gameapi liegen von xenialdan |
dort gibs die isso schon aber er wird es nicht fixen |
ich vermute das es hiermit was zu tun hat $this->getLevel()->setTime($this->getSettings()->time); |
ist aus der arena.php ab line 240 in der gameapi |
hmm ich schau wenn ich zeit finde... kannste ein video machen mit dem Fehlerbild |
ok es lag dadran hab es gefixt |
ich hab es rausgenommen und mir ein alwaysday pl drauf gezogen |
aber leider kann ich dir nicht sagen was damit nicht stimmt |
Das mit den GameRules wurde in Protocol-Changes geändert. Einfach bisschen die Changes ansehen und dann ist es nicht mehr so schwer zu fixen :) |
wenn ich nur die Zeit dafür hätte🙈 |
hi
if the start timer is 0 i have this server crash i hope you can help me plz
PocketMine-MP Crash Dump Sat Aug 21 06:30:50 BST 2021
Error: Undefined offset: 2
File: pmsrc/src/pocketmine/network/mcpe/NetworkBinaryStream
Line: 714
Type: ErrorException
Code:
[705] * TODO: implement this properly
[706] *
[707] * @param mixed[][] $rules
[708] * @phpstan-param array<string, array{0: int, 1: bool|int|float, 2: bool}> $rules
[709] */
[710] public function putGameRules(array $rules) : void{
[711] $this->putUnsignedVarInt(count($rules));
[712] foreach($rules as $name => $rule){
[713] $this->putString($name);
[714] ($this->buffer .= ($rule[2] ? "\x01" : "\x00"));
[715] $this->putUnsignedVarInt($rule[0]);
[716] switch($rule[0]){
[717] case GameRuleType::BOOL:
[718] ($this->buffer .= ($rule[1] ? "\x01" : "\x00"));
[719] break;
[720] case GameRuleType::INT:
[721] $this->putUnsignedVarInt($rule[1]);
[722] break;
[723] case GameRuleType::FLOAT:
[724] ($this->buffer .= (\pack("g", $rule[1])));
Backtrace:
#0 pmsrc/src/pocketmine/network/mcpe/NetworkBinaryStream(714): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined offset: 2, string[129] phar://C:/Users/..../Desktop/PocketMine-MP-minigames-hub/PocketMine-MP.phar/sr, integer 714, array[3])
#1 pmsrc/src/pocketmine/network/mcpe/protocol/GameRulesChangedPacket(44): pocketmine\network\mcpe\NetworkBinaryStream->putGameRules(array[1])
#2 pmsrc/src/pocketmine/network/mcpe/protocol/DataPacket(127): pocketmine\network\mcpe\protocol\GameRulesChangedPacket->encodePayload()
#3 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(86): pocketmine\network\mcpe\protocol\DataPacket->encode()
#4 pmsrc/src/pocketmine/Server(1729): pocketmine\network\mcpe\protocol\BatchPacket->addPacket(object pocketmine\network\mcpe\protocol\GameRulesChangedPacket)
#5 pmsrc/src/pocketmine/level/Level(914): pocketmine\Server->batchPackets(array[1], array[1])
#6 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 1703)
#7 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 1703)
#8 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 1703, double 1629523850.8137)
#9 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick()
#10 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
#11 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
#12 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[52] C:\Users.....\Desktop\PocketMine-MP-minigames-hub, string[60] C:\Users....\Desktop\PocketMine-MP-minigames-hub\plugins)
inxomnyaa#13 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
#14 pmsrc(11): require(string[107] phar://C:/Users/..../Desktop/PocketMine-MP-minigames-hub/PocketMine-MP.phar/sr)
PocketMine-MP version: 3.22.0 [Protocol 448]
PHP Version: 7.4.14
Zend version: 3.4.0
OS : WINNT, win
Composer libraries:
Loaded plugins:
BedWars_-_German_Edition 1.1.5 DE by XenialDan, TheNote for API(s) 3.19.0
BuilderTools 1.2.0-beta3 by CzechPMDevs, VixikCZ for API(s) 3.0.0
CityBuildCommands 1.0.0 by efor89 for API(s) 3.0.0
DEVirion 1.2.7 by poggit, SOFe for API(s) 3.0.0
EconomyAPI 5.7.3 by onebone for API(s) 3.0.0
FormAPI 1.3.0 by jojoe77777 for API(s) 3.2.0
InvCrashFix 0.0.1 by for API(s) 3.14.0
MultiWorld 1.6.0-beta2 by CzechPMDevs, VixikCZ, fuyutsuki, kaliiks for API(s) 3.0.0
PureChat 1.4.11 by 64FF00 for API(s) 3.0.0
PurePerms 1.4.3 by 64FF00 & ProjectInfinity for API(s) 3.0.0
WorldGuard 1.1.6-4 by Chalapa for API(s) 3.0.0
WorldProtect 2.3.8 by aliuly for API(s) 3.0.0
The text was updated successfully, but these errors were encountered: