Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RakLibServer...Blocked?

Comments in 'Plugin Development' started by Hotshot_9930, Oct 25, 2015.

  1. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    But i dont want teleport to spawn xD How about teleport to a specific coordinates? xD...
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Does it happen if you replace it with a different world, or different coordinates?
    deot likes this.
  3. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    Thx suggestion, i already tried:

    //New public function (Player $p)
    $p->teleport(new Position())

    Using "tp" command as console, and send players to a coordinate
    $command = "tp ".$p->getName." x y z"
    $this->dispatchCommand bla bla bla...

    Change coordinates

    Above ways, i already tried it and it can teleport player, just the RakLib issue doesnt fixed...

    I havent tried teleport to different world yet..
  4. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What happens if your target location is somewhere next to the player's current location? I am thinking that there may be some special blocks/tiles/entities at the target location that cause the client to send special packets that RakLib considers as inappropriate/hacking attempt and block them.
    Also, have you tried turning on debug mode?
  6. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    If teleport to a coordinates near the player, theres no RakLib issue! :D
    I havent try debug mode, is debug mode can fix this issue?
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Debug mode only shows more information. It doesn't fix anything.
  8. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    debug:
    #If > 1, it will show debug messages in the console
    level: 1
    #Enables /status, /gc
    commands: false

    Yeah, this is my debug settings anyway... :)
    So, is it possible to fix this bug in next pocketmine build/update? Its very annoying...
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    To fix the issue, we first have to know the issue. So set debug to 2 to show more information.
  10. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    Heres it:
    And seems like the bug is related with my server timezone settings..

    0 02:43:25 [Server] RakLibServer thread/DEBUG An E_WARNING error happened: "date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone." in "/src/pocketmine/utils/MainLogger" at line 192
    31.10 02:43:25 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 192
    31.10 02:43:25 [Server] Server thread/DEBUG #10 (1): require(string phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/PocketMine.php)
    31.10 02:43:25 [Server] Server thread/DEBUG #9 /src/pocketmine/PocketMine(464): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/, string /, string /plugins/)
    31.10 02:43:25 [Server] Server thread/DEBUG #8 /src/pocketmine/Server(1701): pocketmine\Server->start(boolean)...... bla bla bla....
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No, not related to date.
    Anything else shows when you teleport and get blocked?
    Legoboy0215 likes this.
  12. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    Oh...
    I try to find the most related debug, and i think this is it:

    [SERVER] RakLibServer thread/DEBUG #1 /src/pocketmine/utils/MainLogger(83): pocketmine\utils\MainLogger->send(string [RakLib Thread #112306491848448] Blocked 115.164.51.140 for 5 seconds, string notice, string NOTICE, string )
  13. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Could you display a bit more... You always show the most obvious line...
  15. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    OkOk, but it's kinda long... that's why I take the most "important part" for you xD

    Code:
    31.10 06:55:45 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 192
    31.10 06:55:45 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 205
    31.10 06:55:45 [Server] RakLibServer thread/DEBUG #1 /src/pocketmine/utils/MainLogger(83): pocketmine\utils\MainLogger->send(string [RakLib Thread #125866060814080] Blocked xx.xx.xx.xx for 5 seconds, string notice, string NOTICE, string )
    31.10 06:55:45 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 192
    31.10 06:55:45 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 205
    31.10 06:55:45 [Server] RakLibServer thread/DEBUG #0 (): pocketmine\utils\MainLogger->send(string [RakLib Thread #125866060814080] Blocked xx.xx.xx.xx for 5 seconds, string notice, string NOTICE, string )
    31.10 06:55:45 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 192
    31.10 06:55:45 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 205
    31.10 06:55:45 [Server] RakLibServer thread/DEBUG An E_WARNING error happened: "date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone." in "/src/pocketmine/utils/MainLogger" at line 192
    31.10 06:55:45 [Server] INFO Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/utils/MainLogger.php on line 192
    31.10 06:55:45 [Server] Server thread/DEBUG #10 (1): require(string phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/PocketMine.php)
    31.10 06:55:45 [Server] Server thread/DEBUG #9 /src/pocketmine/PocketMine(464): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/, string /, string /plugins/)
    31.10 06:55:45 [Server] Server thread/DEBUG #8 /src/pocketmine/Server(1701): pocketmine\Server->start(boolean)
    31.10 06:55:45 [Server] Server thread/DEBUG #7 /src/pocketmine/Server(2100): pocketmine\Server->tickProcessor(boolean)
    31.10 06:55:45 [Server] Server thread/DEBUG #6 /src/pocketmine/Server(2222): pocketmine\Server->tick(boolean)
    31.10 06:55:45 [Server] Server thread/DEBUG #5 /src/pocketmine/Server(2470): pocketmine\network\Network->processInterfaces(boolean)
    31.10 06:55:45 [Server] Server thread/DEBUG #4 /src/pocketmine/network/Network(159): pocketmine\network\RakLibInterface->process(boolean)
    31.10 06:55:45 [Server] Server thread/DEBUG #3 /src/pocketmine/network/RakLibInterface(79): raklib\server\ServerHandler->handlePacket(boolean)
    31.10 06:55:45 [Server] Server thread/DEBUG #2 /src/raklib/server/ServerHandler(90): pocketmine\network\RakLibInterface->handleEncapsulated(string 1.32.70.225:3947, raklib\protocol\EncapsulatedPacket `......................B.M..a.bC..|C..|B....., integer 0)
    31.10 06:55:45 [Server] Server thread/DEBUG #1 /src/pocketmine/network/RakLibInterface(140): pocketmine\Player->handleDataPacket(pocketmine\network\protocol\MovePlayerPacket object)
    31.10 06:55:45 [Server] Server thread/DEBUG #0 /src/pocketmine/Player(1894): pocketmine\Player->sendPosition(NULL , double 281.91784667969, double 64.310050964355)
    31.10 06:55:45 [Server] Server thread/NOTICE InvalidArgumentException: "Argument 1 passed to pocketmine\Player::sendPosition() must be an instance of pocketmine\math\Vector3, null given, called in phar:///jar/PocketMine-MP_1.6dev_PR_396.phar/src/pocketmine/Player.php on line 1894 and defined" (E_RECOVERABLE_ERROR) in "/src/pocketmine/Player" at line 3313
    31.10 06:55:45 [Server] Server thread/DEBUG Packet pocketmine\network\protocol\MovePlayerPacket 0x9d0000000000000000c4a4d4d742a64d1fc461a262438cf57c438cf57c42809ebf0000
    Last edited: Oct 31, 2015
  16. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    Yes, Check line 3 and line 6... Theres a censored IP (xx.xx.xx.xx) LOL... :p
  17. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I see. I'll look more into it.
  18. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    deot likes this.
  19. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    Thanks! :) Is it possible to create a build to jenkins for us to download? xD :p
    **I know I'm quite annoying xD...
  20. deot
    Offline

    deot Active Member Plugin Developer

    Joined:
    Apr 22, 2015
    Posts:
    219
    Plugins:
    1
    Minecraft User:
    deot
    @PEMapModder
    Can u make a release of that PR to jenkins server?... Pls.... :)
    Legoboy0215 likes this.

Share This Page

Advertisement