Conveniently self chunkloading server... but how?

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Omicron

New Member
Jul 29, 2019
2,974
0
0
I'm observing an odd behavior with my server. I don't have any issues with it being there, but I'd like to understand why it happens - so here's hoping that somebody knows more about this than I do.

Basically, I regularly see machines working in unloaded chunks. I can't even recall ever seeing something fail due to missing chunkloading, and me and two friends have been playing in that world for 2 weeks now. Why the heck does it do that?

One example: I set up a tesseract at my base, to receive items from my quarry. I then traveled to my quarry, well outside of chunk loading distance from my base. I set up the other tesseract there. I started the quarry. Items did not spill out - they arrived at the base and were correctly sorted by my pipes into the correct storage chests. Only, nobody was at my base at the time - and I do not own a chunkloader of any kind.

Another, more drastic example: I have a recycler set up with a barrel full of cobble on top of it (well, a hopper in the middle). I can fill the barrel up, then log out and shut down the server completely. Then I can restart it and just let it sit there. Fresh start, nobody logged in, no chunk was ever loaded by a player even once. After waiting half an hour I can log in and find my barrel more than half empty. If I leave a stack of ingots in my metalformer, I will find it completely processed as well. And my geothermals supply power for all this while receiving lava from a friend's base two kilometers away, who also does not have any chunkloaders.

(For what it's worth: the receiving tesseract from example 1 and the recycler from example 2 are three chunks apart, roughly diagonally.)

I run a custom modpack on Minecraft 1.6.4 and Forge 937. There are a few "exotic" mods in there, like Alternate Terrain Generation, but none of them even deal with or offer the means for chunkloading.

The server is configured to load the full 15 chunk radius around the player instead of the default 10. Still, even counting that, the distance between my quarry and my base is more than twice that big, and the effect even happens when no player is logged in at all.

So, has any fellow server admin ever seen something like this, or knows why it happens?
 

cjm721

New Member
Jul 29, 2019
734
0
1
If you have chickenchunks do /chunkloaders which will show you if a mod is loading a ticket there. I do remember something about tesseracts being semi chunkloading.
 

Omicron

New Member
Jul 29, 2019
2,974
0
0
I run CodeChickenCore but not ChickenChunks. Doubt the command works with just that...

The part about tesseracts is interesting. Not sure if there is a tesseract in the same chunk as my recycler though. And I did observe the effect before ever getting tesseracts as well...

However, I just got an idea I really should have thought about before, but I guess since the mod is so new, I'm just not used to factoring it in yet. Opis! If anything force-loads chunks, then Opis should show it. I will try that out tonight.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
I belief there is also a vanila minecraft bug that keeps some chunks loaded. I recall seeing some chunks not unloading in ftb ultimate on my server even if the should and have no one living in there or close there.
 

nallar

New Member
Jul 29, 2019
270
0
0
Probably the stupid issue with almost all of minecraft's API still being incredibly easy to accidentally load chunks with.

Fixed in bukkit/Spigot, Lex has refused to fix it in Forge (justified, I just disagree about the importance of the justifications) and not fixed in MCPC+ as the bukkit change was reverted to avoid breaking some forge mods which rely on the behaviour.
 

DriftinFool

New Member
Jul 29, 2019
642
0
0
not sure how big of an area it is, but I thought an area around the original spawn always stayed loaded in vanilla. Not sure if it is for all versions, but I have seen vanilla mob traps stay running on servers. Not sure if he modded anything, but ToastedBaby was talking about it in his LP. Not sure if I understood him correctly and never looked into it since I rarely start my world right at the spawn point.
 

Omicron

New Member
Jul 29, 2019
2,974
0
0
Probably the stupid issue with almost all of minecraft's API still being incredibly easy to accidentally load chunks with.

Fixed in bukkit/Spigot, Lex has refused to fix it in Forge (justified, I just disagree about the importance of the justifications) and not fixed in MCPC+ as the bukkit change was reverted to avoid breaking some forge mods which rely on the behaviour.

Interesting. So maybe the tesseract at the quarry (which force loads itself) will, because it is loaded, also load the receiving side tesseract? This can explain some of the behavior.

Using Opis to look at the server didn't reveal anything interesting, I'm afraid. There aren't any force loaded chunks marked, aside from the quarry.
 

DZCreeper

New Member
Jul 29, 2019
1,469
0
1
Exactly. If a mod has a block that can interact with another block (almost every mod) and doesn't properly check to see if the block exists, it can load chunks without you intending it. With multiblock structures its quite hard to do this check. I doubt it is tesseracts, I would think King Lemming would perform the simple check to make sure the block exists (is loaded). However, I have been wrong plenty of times before.

As for Opis not showing the loaded chunks, I would suspect its happening because the block causing the orphaned chunks is not registered as a fakeplayer and/or Opis doesn't count the chunk because its not being forcefully loaded, just long enough for the block to do its thing then stop until it happens again. Once again, not a huge expert on this but I have dabbled in MC's chunk loading mechanics.