ChunkManager
This plugin does some smart manipulation of the server internals to prevent the following chunk sending problems:
- Chunks are only sent while you are moving - one chunk per movement packet.
- Chunks beyond your viewing distance are still sent if you moved away from them before they were sent to you.
- Chunks will not be sent if you are receiving too many other types of packets (many entities nearby, for example).
- Chunks are sent with the chunks nearest to you being sent first. If you are moving fast, this will only load chunks behind you!
Should be compatible with all other plugins, even plugins that mess around with chunks themselves, including spout!
Tested in the latest 1.0.0 dev builds, but should work for most older builds as well. Will gracefully fail if you are running an incompatible server and re-enable the vanilla chunk sending management.
Update for 1.3.1?
Hey, first of all this is a great plugin... helps my server cut down on ram usage and lag by over 50%. im running the 0.4.1 version and i am still encountering the same "generated an exeption" problem when flying around for a short while. also when server is first started the first person to enter will load no chunks what so ever and will have to log out/in again to play [not much of an issue for me however] il continue using this plugin over the vanilla chunk loader for as long as i have a server, also, the screenshot only captured half of what was missing in my client??? hope you can get the exeption bug fixed, Sam.
p.s. i dont have any other chunk affecting plugins installed, and here is a screenshot of a missing chunk... enjoy :-)
//www.finetree.webs.com/bug2.jpg" rel="noopener nofollow" target="_blank">http://www.finetree.webs.com/bug2.jpg" alt="Exeption Bug [ChunkManager]" title="Exeption Bug [ChunkManager]">
Update?
First time use. Seems to be working fine now.
2012-01-24 05:04:20 [INFO] Aetherspawn [/203.213.106.173:52250] logged in with entity id 421 at ([world] 258.1875, 78.0, 206.25) 2012-01-24 05:04:20 [WARNING] Task of 'ChunkManager' generated an exception java.lang.NoSuchFieldError: b at thulinma.chunkmanager.ChunkManager$1.run(ChunkManager.java:83) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:502) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465) 2012-01-24 05:04:27 [INFO] Okatosh [/68.149.59.160:62445] logged in with entity id 612 at ([world] -22.811167309741176, 100.00672773245445, 9.969856390867427)
@Thulinma
Odd.. first time usage and I get an error:
2012-01-20 18:20:17 [WARNING] Task of 'ChunkManager' generated an exception java.lang.NoSuchFieldError: b at thulinma.chunkmanager.ChunkManager.run(ChunkManager.java:105) at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:502) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
@Thulinma
Fantastic!
@MarkehMe
Version 0.4.2 fixes this bug.
@xemnes1
This plugin makes absolutely no changes to chunk (un)loading behaviour. Your problem can't possibly be caused by ChunkManager, it most likely is a bug in ForeverALoad itself.
may i suggest a feature: foreveraload seems to be incompatible with this plugin so could you add a command which will allow you to keep a chunk loaded? getting tired of redstone repeaters getting stuck when the chunk unloads....
@Thulinma
Yep, but it's strange how it mathematically worked out to be only the ones that are multiples of five.
Good luck to you though, hope this is fixed soon so I can re-enable it!
@MarkehMe
Today I noticed this on my server too - it seems to have something to do with chunks that are multiples of 5 (like: near 160 / -160 / 0 / 320 / -320 / etc coordinates). Are you seeing the same behaviour in terms of locations? I'll look into the code and see if I can discover what is going on as soon as I have some time.
@Thulinma
Okay, sorry for the late reply - I really wish this thing emailed me when you replied!
I just installed the newest version.
I flew around for a bit until I found these "bad chunks" - which become "good" when you disconnect and then reconnect.
So I uploaded a video of me doing it (sorry for the sluggish lag, good ol' quicktime ate my CPU up, and sorry for using mediafire). Link Removed: http://www.mediafire.com/?ps0sumxngosfaab
I find them by walking into the distance for a while... real strange
@MarkehMe
Very interesting! What version are you using? The 0.1 posted here is a little outdated already (I uploaded newer versions a long time ago - they haven't bee approved yet...)
The latest version can already be found here. (0.4.1 at time of writing). Especially the 0.4+ releases have a lot of fixes for common problems, so if you are still running 0.1 please update :-)
If you could tell me anything more about the problems (assuming they do not go away if you run 0.4.1) that would be great. Especially let me know if you can walk in the "missing" areas (do you fall in? do they appear when you touch them? something else?) and if there is some kind of pattern in what areas are missing (a certain coordinate, perhaps?). If I cannot reproduce this myself then I may indeed have to login to your server and see what is going on exactly.
@Thulinma
Sorry for my late reply, how rude of me.. anyway, heres the screenshot:
http://f.cl.ly/items/1a0a1d3e2I2Z243O2t2j/2011-12-11_12.51.34.png
Really bad here:
http://f.cl.ly/items/0M2r2b1C201K0M122a1H/2011-12-11_12.54.43.png Is it because I'm flying?
My friend sent me this as well: http://cl.ly/2o1c2P093E3e2i2G2x1m
Plugins (buycraft server is down): http://cl.ly/2C3I0A3x2s2H0r2I2C44
People are complaining as well, and have to re-log to see chunks load.
Disabling the plugin: everything's fine again.
If you wanna come on the server and do some debugging or anything similar, let me know I'm happy to help out.
@rockxz3
Yes, this is one of the few known bugs right now, and I'm fixing it in the 0.4 release. Will be out shortly.
@MarkehMe
Hmm... Interesting. Could you take a screenshot of these gaps? Maybe I can see what's going on.
The only way it should leave gaps is if you are going faster than 32m/s, since you will be travelling faster than the chunk sending rate. I doubt you're going that fast, though :-)
Orebfuscator actually might be conflicting (I've disabled it though, I like chunkmanager more).
When I fly with the sun on my right shoulder I got random long gaps down to the void, these where definitely in a pattern. Any ideas there?
I get a problem where chunks don't load when you teleport your suspended for a minute or two while you wait for the chunks to load other than that this has really helped performance
@MarkehMe
Good to know! Thanks for the report.
Bergerkiller is including my work in his nolagg plugin, but we have some differing ideas on how to do this so his solution is slightly different. I'll make sure he deactivates his build-in ChunkManager when mine is also installed so everything stays compatible.
No conflicts! Working well, love it. My chunks are loading nicely, thank you.
Incase anyone is curious, heres a look at my plugins directory.