Giter Site home page Giter Site logo

bigbrotherteam / bigbrother Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shoghicp/bigbrother

96.0 96.0 24.0 1.95 MB

Allows the connection of Minecraft: Java Edtion clients to PocketMine-MP servers. Made for PocketMine-MP

License: GNU Lesser General Public License v3.0

PHP 99.56% Shell 0.30% Dockerfile 0.14%

bigbrother's People

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bigbrother's Issues

Problem with parseCompoundTag().

Spawn/be around an entity will kick the PC Player from the server.
CRITICAL> [Network] Stopped interface shoghicp\BigBrother\network\ProtocolInterface due to Return value of pocketmine\item\Item::parseCompoundTag() must be an instance of pocketmine\nbt\tag\CompoundTag, instance of pocketmine\nbt\tag\EndTag returned

And the ServerThread will crash.
EMERGENCY> [ServerThread] ServerThread crashed!

can i help

????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Compatibility

What software is this compatible with? (Tesseract, Pocketmine, etc) I'm running on Pocketmine Alpha4 and can't get a connection from any PC players.

Question

  • Would plugins impact the connection of PC players to the server?
  • Also, I'm hosting my server on my own machine. Would that affect players joining too?
  • Last, what MCPC version is allowed to join?

console spam, + timeout

At first I could join, but after I chat, console spam
send interface : some numbers, and then just spam, and if I try to join it timed out!

Big brother is a good idea btw, but not usable.

Problem when PC player changing inventory slot by using 1-9 keys

[13:05:11] [Server thread/EMERGENCY]: [ServerThread #1120] ServerThread crashed!
[13:05:11] [Server thread/CRITICAL]: [網路] 停止接口 shoghicp\BigBrother\network\ProtocolInterface 由於 Argument 1 passed to pocketmine\inventory\PlayerInventory::equipItem() must be of the type integer, null given, called in C:\Users\UserX\Desktop\PM-MP\src\pocketmine\Player.php on line 1992

PC user can't move after killed by command

Issue description

I'm not sure whether if this is a really BigBrother bug.
But it seems that any PE user is no problem.

Prerequisite

  • pmmp (branch api3\blocks b6014c222895450b5e3e8306932ac5dcda62fec4)
  • BigBrother (branch master b59f6c5)
  • MineCraft PC Edition v1.12

How to reproduce

  • Login with PC client
  • Kill PC user by self (suicide) or, PC user is killed by another user who has 'op' privileges.
  • Click "Respawn" button
  • "Respawn" button is still displaying there
  • Click "Respawn" again

PC user can't move any more.

Server log(crash dump)

no server log related to this issue.

Just a question

Your edited bigbrother plugin works for mcpc and pocketmine without important errors?

crash on join of a pc player

CRITICAL> Error: "Call to a member function getUniqueId() on null" (EXCEPTION) in "/plugins/phar_BigBrother-master (4)_9y5O9ha9qxlkrdh.phar/src/shoghicp/BigBrother/network/translation/Translator_101" at line 987
[Tesseract] [14:56:02] EMERGENCY> An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[Tesseract] [14:56:02] EMERGENCY> Please upload the "C:\Users\Wesle\Downloads\BigBrother-master (4)\BigBrother-master\crashdumps/CrashDump_Sat_Feb_18-14.56.02-GMT_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you

crash

12.06 05:16:26 [Server] INFO [TesseractPM] [09:16:26] [CRITICAL]: [Network] Stopped interface shoghicp\BigBrother\network\ProtocolInterface due to trim() expects parameter 1 to be string, object given
12.06 05:16:26 [Server] INFO [TesseractPM] [09:16:26] [EMERGENCY]: [ServerThread #140272988059392] ServerThread crashed!

crash agian

[Tesseract] [16:30:39] CRITICAL> TypeError: "Argument 1 passed to shoghicp\BigBrother\utils\Binary::writeMetadata() must be of the type array, null given, called in C:\Users\Wesle\Desktop\mcpe server\plugins\BigBrother-master\src\shoghicp\BigBrother\network\protocol\Play\SpawnMobPacket.php on line 56" (EXCEPTION) in "/plugins/BigBrother-master/src/shoghicp/BigBrother/utils/Binary" at line 96
[Tesseract] [16:30:39] EMERGENCY> An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[Tesseract] [16:30:39] EMERGENCY> Please upload the "C:\Users\Wesle\Desktop\mcpe server\crashdumps/CrashDump_Tue_Feb_21-16.30.39-UTC_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

Tesseract Crash Dump Tue Feb 21 16:30:39 UTC 2017

Error: Argument 1 passed to shoghicp\BigBrother\utils\Binary::writeMetadata() must be of the type array, null given, called in C:\Users\Wesle\Desktop\mcpe server\plugins\BigBrother-master\src\shoghicp\BigBrother\network\protocol\Play\SpawnMobPacket.php on line 56
File: /plugins/BigBrother-master/src/shoghicp/BigBrother/utils/Binary
Line: 96
Type: notice

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN : BigBrother v1.6.0-beta

Code:
[87] //TODO: add data type
[88] }
[89] }
[90]
[91] $newdata["convert"] = true;
[92]
[93] return $newdata;
[94] }
[95]
[96] public static function writeMetadata(array $data){
[97] if(!isset($data["convert"])){
[98] $data = self::convertPEToPCMetadata($data);
[99] }
[100]
[101] $m = "";
[102]
[103] foreach($data as $bottom => $d){
[104] if($bottom === "convert"){
[105] continue;
[106] }

Backtrace:
#0 /plugins/BigBrother-master/src/shoghicp/BigBrother/network/Packet(202): shoghicp\BigBrother\network\protocol\Play\SpawnMobPacket->encode(boolean)
#1 /plugins/BigBrother-master/src/shoghicp/BigBrother/network/ProtocolInterface(125): shoghicp\BigBrother\network\Packet->write(boolean)
#2 /plugins/BigBrother-master/src/shoghicp/BigBrother/network/ProtocolInterface(163): shoghicp\BigBrother\network\ProtocolInterface->sendPacket(integer 2, shoghicp\BigBrother\network\protocol\Play\SpawnMobPacket object)
#3 /src/pocketmine/Player(1083): shoghicp\BigBrother\network\ProtocolInterface->putPacket(shoghicp\BigBrother\DesktopPlayer DesktopPlayer(1), shoghicp\BigBrother\network\protocol\Play\SpawnMobPacket object, boolean , boolean )
#4 /src/pocketmine/entity/Item(237): pocketmine\Player->dataPacket(pocketmine\network\protocol\AddItemEntityPacket object)
#5 /src/pocketmine/entity/Entity(1810): pocketmine\entity\Item->spawnTo(shoghicp\BigBrother\DesktopPlayer DesktopPlayer(1))
#6 /src/pocketmine/level/format/Chunk(719): pocketmine\entity\Entity->spawnToAll(boolean)
#7 /src/pocketmine/level/Level(2719): pocketmine\level\format\Chunk->initChunk(boolean)
#8 /src/pocketmine/level/Level(2299): pocketmine\level\Level->loadChunk(integer 20, integer 10, boolean 1)
#9 /src/pocketmine/level/Level(2970): pocketmine\level\Level->getChunk(integer 20, integer 10, boolean 1)
#10 /plugins/BigBrother-master/src/shoghicp/BigBrother/DesktopPlayer(176): pocketmine\level\Level->populateChunk(integer 20, integer 10)
#11 /src/pocketmine/Player(1799): shoghicp\BigBrother\DesktopPlayer->sendNextChunk(boolean)
#12 /src/pocketmine/Server(2652): pocketmine\Player->checkNetwork(boolean)
#13 /src/pocketmine/Server(2370): pocketmine\Server->tick(boolean)
#14 /src/pocketmine/Server(2280): pocketmine\Server->tickProcessor(boolean)
#15 /src/pocketmine/Server(1841): pocketmine\Server->start(boolean)
#16 /src/pocketmine/PocketMine(469): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Wesle\Desktop\mcpe server, string C:\Users\Wesle\Desktop\mcpe server, string C:\Users\Wesle\Desktop\mcpe server\plugins, string unknown)

Tesseract version: 0000000000000000000000000000000000000000 [Protocol 101; API 3.0.0]
uname -a: Windows NT DESKTOP-G72R5H7 10.0 build 14393 (Windows 10) AMD64
PHP version: 7.0.13
Zend version: 3.0.0
OS : WINNT, win

Server uptime: 17 seconds
Number of loaded worlds: 1
Players online: 1/20

Loaded plugins:
DevTools 1.11.1 by PocketMine Team for API(s) 2.0.0, 3.0.0-ALPHA3
JamAuth 0.4.php by JamAuth for API(s) 3.0.0, 3.0.0-ALPHA3
EssentialsPE 2.0.0 by LegendsOfMCPE Team for API(s) 3.0.0-ALPHA3, 3.0.0-ALPHA2
FactionsPro 1.3.7.AWZ by Tethered_ & Awzaw for API(s) 2.0.0, 3.0.0-ALPHA3
LiveTexts 1.4pre by EmreTr1 for API(s) 3.0.0-ALPHA3, 2.0.0
PurePerms 1.4.0-INDEV by 64FF00 & ProjectInfinity for API(s) 1.13.0, 3.0.0-ALPHA3
SignPortal 1.1.2 by 99leonchang for API(s) 3.0.0-ALPHA3
iProtector 3.1b by LDX for API(s) 3.0.0-ALPHA3
BigBrother 1.6.0-beta by shoghicp for API(s) 3.0.0, 3.0.0-ALPHA3
PureChat 1.4.6 by 64FF00 for API(s) 1.13.0, 3.0.0-ALPHA3

Fail to join !

22.02 06:48:15 [Server] Server thread/INFO logged out due to Login timeout
22.02 06:48:15 [Server] INFO [Send][Interface] 0x00
22.02 06:48:15 [Server] INFO }
22.02 06:48:15 [Server] INFO string(13) "Login timeout"
22.02 06:48:15 [Server] INFO ["text"]=>
22.02 06:48:15 [Server] INFO array(1) {
22.02 06:48:05 [Server] INFO LoginStart

tread crash ?

[Server thread/CRITICAL]: [Network] Stopped interface shoghicp\BigBrother\network\ProtocolInterface due to Undefined class constant 'ACTION_RESPAWN'
[14:46:23] [Server thread/EMERGENCY]: [ServerThread #6716] ServerThread crashed!

Can't join

When I try to log into my server from PC I get the message: Disconnected

Info:

Server version: 1.0.4
Server software: Tesseract
Minecraft PC version: 1.11.2

Crash when joining the server

Issue description

When I join my serverI have this error and then my server crash

Prerequisite

How to reproduce

Join the server.

Server log(crash dump)

capture d ecran 2017-06-28 a 20 10 21

crash

[Server thread/CRITICAL]: ErrorException: "zlib_decode(): data error" (EXCEPTION) in "plugins/BigBrother-master/src/shoghicp/BigBrother/network/Translator" at line 1605
[07:56:19] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[07:56:19] [Server thread/EMERGENCY]: Please upload the "/home/factions/crashdumps/Fri_Jun_23-07.56.19-EDT_2017.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

TO-DO list

Things who need to be done :

  • Inventories
  • Crafting
  • Fix BreakTime
  • Rewrite all inventories code
  • Dropped Items
  • Tiles
  • 1.12 support
  • Clean-Up network code
  • Inventory Operation
  • Possibility to add the Totem of Undying & Arrows (ONLY) on the offhand
    (Implement after offhand is implemented by pmmp)
  • Convert sounds IDs' and particles IDs'
  • Use strict types (102/102) Progress
  • Implement SkyLight and BlockLight
  • Implement Missing Packets (97/117) Progress
  • URGENT: REPLACE THE mcrypt FUNCTION, THIS ONE WILL BE DELETED SOON
  • Support Painting
  • Rewrite code about convert of Book
  • Support CI
  • Support Code-coverage

Wrong equipment change packet is sent when PE user select item from hotbar

Issue description

When PE user choose item from hotbar, wrong packet (i think HeldItemChangePacket) is sent to pc user (maybe all pc user). So, PC user's equipment can be changed by any PE version's users. I wrote some patch that may solve this problem, though I'm not sure if it is correct. I'll create pull request related to this issue soon.

Prerequisite

  • latest pmmp
  • latest BigBrother (master be0845f)

How to reproduce

  • Login from PE client
  • Take some item from PE client in hotbar
  • Login from PC client
  • Take some item from PC client in hotbar
  • Choose item from hotbar from PE client

From now on, PC user's hotbar slot can be remotely controlled by any PE user!!

Server log(crash dump)

no server log related to this problem.

Can't join from PC

I can't join from PC! In the console in says

[Receive][Interface] 0x00
LoginStart
[Tesseract] [16:00:50] [INFO] [/192.168.1.102:62808] logged out due to Connection closed

In the game I get the message: Timed out

Information:
My server is running Tesseract-1.3.0 Unity
PHP version: 7.0.13
API: 3.0.1
Target client: Minecraft PE v1.1.0.55
Protocol version: 113
Minecraft PC version: 1.12

Login timed out when I logged in from PC with default skin

Prerequisite

How to reproduce

  • Reset skin to default on the profile page of minecraft.net
    https://minecraft.net/profile/
  • Login to the PocketMine-MP server from PC version of minecraft.
  • Login failed with the following error message
Connection Lost
Login timeout

I'm new to PocketMine-MP and BigBrother plugin.
So, I'm not sure whether this behavior is a bug or just my configuration is wrong.
I made sure that I can login from PC version of minecraft if I upload skin on the profile page of minecraft.net.

Thank you for developping such a nice plugin (bit buggy though).

Screenshot

pocketmine

Server log

[22:25:29] [Server thread/INFO]: [/10.1.100.32:51692] logged out due to Login timeout
[22:26:51] [Server thread/INFO]: [/10.1.100.32:51706] logged out due to Login timeout

TCP internet protocol?

Can support this for mcpc?if its possible.Also,if its yes,may solve the login timeout problem I think

crash

[16:19:14] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\inventory\PlayerInventory::getHotbar()" (EXCEPTION) in "/plugins/BigBrother-master/src/shoghicp/BigBrother/network/translation/Translator_101" at line 997
[16:19:14] [Server thread/DEBUG]: #0 /src/pocketmine/Player(1224): shoghicp\BigBrother\network\ProtocolInterface->putPacket(shoghicp\BigBrother\DesktopPlayer DesktopPlayer(3), pocketmine\network\protocol\ContainerSetContentPacket object, boolean , boolean )
[16:19:14] [Server thread/DEBUG]: #1 /src/pocketmine/inventory/PlayerInventory(408): pocketmine\Player->dataPacket(pocketmine\network\protocol\ContainerSetContentPacket object)
[16:19:14] [Server thread/DEBUG]: #2 /src/pocketmine/Player(1037): pocketmine\inventory\PlayerInventory->sendContents(array Array())
[16:19:14] [Server thread/DEBUG]: #3 /plugins/BigBrother-master/src/shoghicp/BigBrother/DesktopPlayer(192): pocketmine\Player->doFirstSpawn(boolean)
[16:19:14] [Server thread/DEBUG]: #4 /src/pocketmine/Player(2030): shoghicp\BigBrother\DesktopPlayer->sendNextChunk(boolean)
[16:19:14] [Server thread/DEBUG]: #5 /src/pocketmine/Server(2439): pocketmine\Player->checkNetwork(boolean)
[16:19:14] [Server thread/DEBUG]: #6 /src/pocketmine/Server(2193): pocketmine\Server->tick(boolean)
[16:19:14] [Server thread/DEBUG]: #7 /src/pocketmine/Server(2075): pocketmine\Server->tickProcessor(boolean)
[16:19:14] [Server thread/DEBUG]: #8 /src/pocketmine/Server(1693): pocketmine\Server->start(boolean)
[16:19:14] [Server thread/DEBUG]: #9 /src/pocketmine/PocketMine(478): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Wesle\Desktop\mcpe server, string C:\Users\Wesle\Desktop\mcpe server, string C:\Users\Wesle\Desktop\mcpe server\plugins)
[16:19:14] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[16:19:14] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump

@hmy2001

Crash on run PMMP

Hi on run Pocketmine with bigbrother crash

I use latest bigbrother and latest PMMP ( PocketMine-MP version 1.6.2dev "Unleashed" (API 3.0.0-ALPHA6) MCPE version 1.1.0.55)

In console see this crash
crash

And crashdump:

PocketMine-MP Crash Dump Wed Jul 5 12:47:58 BST 2017

Error: Declaration of shoghicp\BigBrother\network\ProtocolInterface::setName($name) must be compatible with pocketmine\network\SourceInterface::setName(string $name)
File: BigBrother_v1.6.0-beta (4).phar/src/shoghicp/BigBrother/network/ProtocolInterface
Line: 57
Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: BigBrother v1.6.0-beta

Code:
[48] use shoghicp\BigBrother\network\protocol\Play\Client\PlayerPositionAndLookPacket;
[49] use shoghicp\BigBrother\network\protocol\Play\PlayerPositionPacket;
[50] use shoghicp\BigBrother\network\protocol\Play\Client\PluginMessagePacket;
[51] use shoghicp\BigBrother\network\protocol\Play\Client\TabCompletePacket;
[52] use shoghicp\BigBrother\network\protocol\Play\UpdateSignPacket;
[53] use shoghicp\BigBrother\network\protocol\Play\UseEntityPacket;
[54] use shoghicp\BigBrother\network\protocol\Play\UseItemPacket;
[55] use shoghicp\BigBrother\utils\Binary;
[56]
[57] class ProtocolInterface implements SourceInterface{
[58]
[59] /** @var BigBrother /
[60] protected $plugin;
[61] /
* @var Translator /
[62] protected $translator;
[63] /
* @var ServerThread /
[64] protected $thread;
[65]
[66] /
* @var \SplObjectStorage */
[67] protected $sessions;

Backtrace:

PocketMine-MP version: 1.6.2dev #0 [Protocol 113; API 3.0.0-ALPHA6]
Git commit: 0000000000000000000000000000000000000000
uname -a: Windows NT ADMIN-KOMPUTER 6.1 build 7601 (Windows 7 Home Premium Edition Service Pack 1) AMD64
PHP Version: 7.0.14
Zend version: 3.0.0
OS : WINNT, win

Loaded plugins:
BigBrother 1.6.0-beta by shoghicp for API(s) 3.0.0-ALPHA6
DevTools 1.12.1 by PocketMine Team for API(s) 2.0.0, 3.0.0-ALPHA1, 3.0.0-ALPHA2, 3.0.0-ALPHA3, 3.0.0-ALPHA4, 3.0.0-ALPHA5, 3.0.0-ALPHA6

Player get kicked, Player Cant respawn

CRITICAL> [Netzwerk] Schnittstelle shoghicp\BigBrother\network\ProtocolInterface wurde wegen Return value of pocketmine\item\Item::parseCompoundTag() must be an instance of pocketmine\nbt\tag\CompoundTag, instance of pocketmine\nbt\tag\EndTag returned beendet
[Tesseract] [11:49:52] EMERGENCY> [ServerThread #139998059820800] ServerThread crashed!


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.