NoLaggLighting
Introduction
The lighting component can:
- Prevent client lag caused by faulty lighting in chunks
- Automatically fix lighting as chunks are generated
- Fix lighting on demand
Fixing lighting?
You may not completely understand what I mean by this. Lighting bugs? How do you mean? Well, after the beta versions of Minecraft a new lighting model was introduced. It takes care of lighting changes during sunsets to make it more realistic. While this is all working, it left some pretty severe bugs behind. For one, it causes dark shadows nearby cliffs, in cave entrances, in water pools and other places. This previously caused a lot of client lag, this is now less, but still noticeable.
How is lighting fixed?
First of all, it takes all chunks to be fixed and invalidates all current lighting. It basically clears all currently set lighting for all blocks, and re-calculates the hotspots. For example, a GlowStone or Lava block is added as one 15-level hotspot. The same is done for sky light. Then this lighting is smoothed out. This means that around every block in every chunk it is checked if lighting is higher than it currently is. This is the most intensive operation. Finally, the chunks are re-sent to all clients. Fixing is done on another thread, as it takes pretty long to do.
Manual fixing
You can use /lag fix to make the plugin re-calculate all lighting in the chunks around you. This may take several seconds to minutes for it to take effect. You can use /lag fix [distance] to fix chunks on a set view distance around you. For example, a distance of 1 will fix the lighting of a 3x3 area around you.
To fix all the lighting of a given world, use /lag fixall world, or /lag fixall for the current world. Note that this operation may take fairly long depending on how large the world is.
Should I use it?
If you run pre-generated worlds, you can make it fix the servers once and then just disable it. Lighting bugs usually don't re-appear after it is fixed just once, as it is a generate-time bug. If you run a server where new chunks are generated all the time, it may be useful to run this plugin. If you don't like the idea of new chunks getting fixed all the time, without you knowing it, you can disable the automatic fixing in the configuration.
can you add a command to fix all current chunks in a specific world? and make it less intensive so it doesnt kill the server. i tried to relight a whole world and then the server either died or lagged so much i couldnt join.
it would also be good if you could make it be more intensive when noone is on (but not so much they cant join), and less intensive when players join. also tell the person who ran the command of the progress
also, does the relighting done by nolagg cause a tile update in dynmap or will i have to re-render? my dynmap maps are covered with black areas from ugly lighting issues
Yes. Agreed with Gravemind2401.
there seems to be no message to let users know that the process has ended.
I really must thank you for NoLagg and all of its components, But as the users before me here, Perhaps more than them a command to have the lighting plugin process the entire world without killing the server would be amazing.
I'm running a 52GB map on my server right now and everything is custom generated, It would be very pretty on average but on plagued with these errors constantly, NoLagg performs extremely well to fix these, but only in a small area.
I know my map is a bit of an extreme case, But I'll just have to have some hope, The other lighting plugins available, especially with renderer's (worldgenerationcontrol) for example is outdated, and MCedit is out of my reach, with my map size being so large.
I too would like a command to fix all the already generated chunks.
I'm having an issue that I believe didn't manifest until i started using NoLagg. It is with lighting.
Sometimes when a new skyblock is created it will leave a side dark and you can't build in it. Its very strange. Any help is appreciated. the /nolagg fix works sometimes if there is land in the area but not if its an empty space floating between skyblock regions. Message me on here or in game if you come to check it out.
miners.hopto.org is the server
This no longer seems to work, at least not with the phantom shadows I get sometimes with WorldEdit.
suppress
Is it possible to run the lighting fix across a large world in some progressive manner that won't crash a server?