someaddons / betterchunkloading

MInecraft mod which improves chunk loading speeds and locations
1 stars 0 forks source link

[Bug]: Chunks simply dont load. #5

Closed mateus3c closed 10 months ago

mateus3c commented 11 months ago

Describe the bug you're experiencing

Im playing on a huge modpack and when I add Better Chunk Loading my game wont load any chunks besides the ones generated after I join the world (the first 14 chunks, since I'm playing with render dist at 14). I'll try to provide organized and complete data to help us figure out what might have happened.

The issue only happens when Better Chunk Loading is present, removing it from the mods folder fixes the issue, and re-adding it to the mods folder makes the issue happen again. I have made all tests on the exact same world seed, I have recreated the same world on every test. There's half village generated on the first 14 chunks.

People that tried to help me pointed out that Random Village Names could be the one causing issues, but removing it and keeping Better Chunk Loading didn't fix the issue, either way I have also collected data with and without Random Village Names.

After each /spark I have also made a /sparkclient.

Data WITH Better Chunk Loading installed. /spark profiler start --thread --timeout 120: https://spark.lucko.me/vhLfwtAlcN /sparkclient profiler start --thread --timeout 120: https://spark.lucko.me/ljKNw0eiQe with_BetterChunkLoading.log with_BetterChunkLoading_console.log

Data WITH Better Chunk Loading installed + Random Village Names. /spark profiler start --thread --timeout 120: https://spark.lucko.me/FYrPgxCuPL /sparkclient profiler start --thread --timeout 120: https://spark.lucko.me/S7ZEnWZ4lh with_BetterChunkLoading + Random Village Names.log with_BetterChunkLoading + Random Village Names_console.log

Data WITHOUT Better Chunk Loading installed. /spark profiler start --thread --timeout 120: https://spark.lucko.me/FLttZfJbOz /sparkclient profiler start --thread --timeout 120: https://spark.lucko.me/KYEdUXO4N3 without_BetterChunkLoading.log without_BetterChunkLoading_console.log

Data WITHOUT Better Chunk Loading installed + Random Village Names. /spark profiler start --thread --timeout 120: https://spark.lucko.me/VIqbySeaZw /sparkclient profiler start --thread --timeout 120: https://spark.lucko.me/MfBGcmUu4u without_BetterChunkLoading + Random Village Names.log without_BetterChunkLoading + Random Village Names_console.log

Reproducability

(Already Described)

Mod up to date

Minecraft version

1.20.1

Modloader version

Forge

Logs

https://gist.github.com/mateus3c/63c1c9b4741a6dce27d5ac80bf9f9bd6

someaddons commented 11 months ago

I've got no issue in my own modpacks, so this is most likely some mod conflict with another mod.

Your spark seems to indicatate that the server is stuck trying to load chunks for the mod which adds an anthill, as that accessed some unloaded area image

Your latest.log link doesnt work

mateus3c commented 11 months ago

but why would that antihill block (from the Spawn mod) conflict with Better Chunk Loading? It doesn't make much sense for me why removing Better Chunk Loading fixes the issue

someaddons commented 11 months ago

I'm not sure its the anthill mod, might be any other mod aswell

mateus3c commented 11 months ago

So there isn't a way to discover which mod is causing this weird behavior on Better Chunk Loading?

someaddons commented 11 months ago

there is, testing copy the world before, remove half the mods see if it works. If yes the put back the mods you removed piece by piece and see which failed, if not remove the half of the remaining again^^

The anthill mod is just the first one I'd test, since it did show up on the report

mateus3c commented 11 months ago

I have made that, I actually spend many hours doing this, that's when I found the only mod causing this issue was Better Chunk Loading, I thought it was strange and kept removing and readding mods but the issue really only happened when Better Chunk Loading was present

SiverDX commented 11 months ago

The combination of betterchunkloading and this does seem to lead to a server deadlock

this part in particular https://github.com/N1nn1/spawn/blob/d3402df54951d521edc7beca1ac8f33c8dc4b730/src/main/java/com/ninni/spawn/block/entity/AnthillBlockEntity.java#L208C36-L208C46

might be unloaded chunk (do block entities in unloaded chunks get ticked?), might also betterchunkloading just not wanting to load something (prioritizing the player etc.)

someaddons commented 10 months ago

Tried it with spawn and couldnt reproduce the issue either and works for me on server/other modpacks aswell. So it is for sure a mod conflict, but without knowing which or at least getting me a modlist/seed to reproduce it theres nothing I can do

mateus3c commented 10 months ago

I wont be able to make that for a while because Im on vacation but when I get home I will. But the mod list can be found on the log, the "Mod Optimizer" mod writes all the mods presented.

another thing: I haven't found any way to ask questions to you but I wanted to know if you will upload your mods on Modrinth?

someaddons commented 10 months ago

try version 3.0

someaddons commented 10 months ago

open a new one if still got issues