chunk_send event
LadyCailinBot opened this issue ยท 12 comments
CMDHELPER-2693 - Reported by VergilPrime
when a chunk is sent to a player, event data should return the x,z coordinates of the chunk and the name of the player it's being sent to.
Comment by mesolost
it does have a stacktrace but i can't get you one at this exact moment. as for the bad sector that would be on a server farm in canada so I can't exactly get there to check it. =\ I'll see about getting one.
Comment by PseudoKnight
There's other things it could be, like an automated backup system that's locking the files. If it comes in batches at regular intervals, maybe it's this. What server are you using? Spigot? Paper?
Comment by mesolost
Thermos =\ (forge, craftbukkit, cauldron hybrid) I'm using simple backup and backups are going fine. =\ Should I try and force this issue to reappear? Or should I report this bug elsewhere? (if so where)(checking my logs to see if i can find the error saved somewhere)
Comment by mesolost
found a copy of the error =\ here it is (should paste right, last one did (has collapsible chunks)) (nope, makin a file)
I just need some way to find out WHICH chunk is makin this error so I can either regenerate it or delete it so it can be regenerated from scratch -.-
Comment by PseudoKnight
This might be related:
https://forum.feed-the-beast.com/threads/2-2-2-2-3-0-manual-backup-error.137379/
And this:
Chicken-Bones/CodeChickenLib#33
Also referenced here, but I don't think they focused on it:
CyberdyneCC/Thermos#50
Also mentioned here:
BuildCraft/BuildCraft#1996
Comment by mesolost
Tried to reply from my phone, crashed it LOL. It doesnt happen from backups or with backups but instead with the normal save interval. I had an exception ticking world issue but that was from moving the Galacticraft space station reception pad with WE. (wont ever do again) Decorating error I had at one point but that was a mod out of date. I was getting this error before I ever had Thermal Foundation installed. It's a mute point at this time though because I haven't seen the error in almost 2 months. I'm starting to think it was this one guy doing something messed up or using some unapproved modification to my base mod pack. Mainly I just wanna say I'd love to see some chunky addition. I'd also love to see some way to track down loaded chunks and/or chunk loaders so I can teleport to them. (I have one somewhere I can't find with /chunkloaders) (and thank you for putting up with me PseudoKnight)
Comment by PseudoKnight
Well, there's no simple/good way to trigger a script based on an internal exception. With an extension you'd just have to wait until you see the exception and then output a HUGE list of loaded chunks and hope it's still in there. (saves indicate it might be unloading, so it wouldn't be in the loaded chunk list)
Comment by PseudoKnight
There is only ChunkLoadEvent with no available player data. It's also going to be very spikey. Every time someone crosses a chunk boundary it's going to call (viewdistance * 2 + 1) of these. Overall it seems about as frequent as creature spawn on my server (viewdistance 8), and just about the only thing you'd could put in the event data is the chunk coordinates and whether or not it's a new chunk.
If people are still interested in a chunk_load event, and have a use case, comment here.
Comment by Pieter12345
I can imagine a chunk_generated event could be useful if it triggers before the chunk is actually generated, and the chunk data could be modified in the event. I don't see any purpose in having a chunk_load event when it is not newly generated.
Comment by PseudoKnight
I think some people were thinking of using it for tracking entities. That'd require chunk_unload too, doubling the number of events per chunk boundary crossed.
I think maybe this should be done in an extension first for testing, if people are still interested.
Comment by mesolost
The only chunky sort of command I need would probably be the load one (I imagine the chunk is generated and then loaded so you'd only need on_load) so I can find a way to catch which chunk is causing this odd error. Rarely when my server tries to save the map my console gets spammed with some chunk save exception. (unless someone knows a probable cause or a way to catch which chunk it is) Usually only happens after new chunks are generated so I'm at a loss on how to track which chunk it is from. Sometimes I even have to delete the map file that contains the chunks I just generated. Happens a lot when I try and use a random teleport command. (/spreadplayers)
So, yeah, I can see a potential use for chunky stuff but since it would be called a lot it's probably best to leave it in a CHChunky extension so users can decide if they need it. =p