1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved SkyLight bug?

Discussion in 'Help' started by WinterBuild7074, Jun 6, 2017.

  1. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    I noticed that everything got darker, it looks like a SkyLight bug.
    Screenshots:

    http://imgur.com/a/oLXez

    Anything I can do to fix it? It looks strange if everything looks so dark and "foggy".

    I'm using PocketMine-MP 1.6.2dev (from here)
     
    Last edited: Jun 6, 2017
  2. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Does anyone have this bug too? Who can help?
     
  3. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Temporary Solution:
    On older worlds, the lighting is messed up. Set light-updates in the chunk-ticking section of the pocketmine.yml to true and change line 2654 of Level.php from
    PHP:
            if(!$chunk->isLightPopulated() and $chunk->isPopulated() and $this->getServer()->getProperty("chunk-ticking.light-updates"false)){
    to
    PHP:
            if($chunk->isPopulated() and $this->getServer()->getProperty("chunk-ticking.light-updates"false)){
     
    Miste, HimbeersaftLP and [deleted] like this.
  4. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    I don't know how to do that. Shall I edit my PocketMine-MP.phar...?
     
  5. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Don't directly edit it. Decompile it, then edit the file on it's own.
     
    Miste likes this.
  6. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Can I use unphar.com to make it a ZIP and DevTools to make it a .phar again?
     
  7. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    I can't use DevTools it says that the ZIP is too big.
     
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    use devtools...
     
  9. Miste

    Miste Baby Zombie

    Messages:
    109
    GitHub:
    Misteboss

    Attached Files:

  10. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    How did you edit the Level.php? I can't. o_O
     
  11. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Rejoin and move around a bit, that worked for me
     
  12. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    It takes a few server restarts. and it's faster if you are in the chunk when it loads
     
    Miste likes this.
  13. Miste

    Miste Baby Zombie

    Messages:
    109
    GitHub:
    Misteboss
    Seem to be working after 1-2 restarts, Thanks @jasonwynn10 !
     

    Attached Files:

  14. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    I can't edit Level.php, I don't know how. :(
     
  15. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    Here's a custom phar to solve the issue. I do not recommend using this on professional servers.
     

    Attached Files:

    WinterBuild7074 likes this.
  16. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    What can I do if a new MCPE version will come and I need to update? Do I always need to ask here for a new phar? Or will PocketMine fix that problem in the next update(s)?
     
  17. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    you only need to restart the server a few times with this phar version. after all the lightning is fixed, it will transfer back to the old phar or any updates
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.