williamtdr / Steadfast

A modification of Pocketmine 1.3 to support the MCPE 0.9 protocol. Extra features for production systems.
GNU Lesser General Public License v3.0
18 stars 2 forks source link

Server stopped because of this. Any ideas why? #21

Open Svilen23 opened 10 years ago

Svilen23 commented 10 years ago

PocketMine-MP Error Dump Mon Sep 1 03:13:43 UTC 2014

Error: array ( 'type' => 'E_ERROR', 'message' => 'Call to a member function getSlot() on a non-object', 'file' => '/root/myserver/src/world/Entity.php', 'line' => 692, )

Code: [683]
[684] $pk = new SetEntityMotionPacket; [685] $pk->entities = [ [686] [$this->eid, $this->speedX, $this->speedY, $this->speedZ] [687] ]; [688] $player->dataPacket($pk); [689]
[690] $pk = new PlayerEquipmentPacket; [691] $pk->eid = $this->eid; [692] $pk->item = $this->player->getSlot($this->player->slot)->getID(); [693] $pk->meta = $this->player->getSlot($this->player->slot)->getMetadata(); [694] $pk->slot = 0; [695] $player->dataPacket($pk); [696] $this->player->sendArmor($player); [697] break; [698] case ENTITY_ITEM: [699] $pk = new AddItemEntityPacket; [700] $pk->eid = $this->eid; [701] $pk->x = $this->x; [702] $pk->y = $this->y;

PocketMine-MP version: Alpha_1.3.13 #621 [Protocol 18; API 13] Git commit: 0000000000000000000000000000000000000000 Source SHA1 sum: 6e10e373f7cfeaf997b9cba6e732b3bd00c849e9 uname -a: Linux Svilen 2.6.32-042stab090.5 #1 SMP Sat Jun 21 00:15:09 MSK 2014 x86_64 PHP Version: 5.5.16 Zend version: 2.5.0 OS : Linux, linux Debug Info: array ( 'tps' => 20.418700000000001, 'memory_usage' => '57.65MB', 'memory_peak_usage' => '69.54MB', 'entities' => 684, 'players' => 29, 'events' => 320, 'handlers' => 15, 'actions' => 547, 'garbage' => 0, )

Parameters: array ( 'input' => array ( ), 'commands' => array ( ), 'flags' => array ( ), )

shoghicp commented 10 years ago

Oops, though this was my repo. This is caused by a bad initialization of a Player, causing a bad Entity to be created

Svilen23 commented 10 years ago

Ok I'll reinstall it. Thanks!