Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it actually unloading? #5

Open
zwamdurkel opened this issue Mar 28, 2019 · 9 comments
Open

Is it actually unloading? #5

zwamdurkel opened this issue Mar 28, 2019 · 9 comments
Assignees

Comments

@zwamdurkel
Copy link

I run a PO3 server and PO3 has unloader installed by default, but i get the feeling that this mod isnt actually doing anything. A lot of dimensions (like mining dim, specte, twilight forest) and all of the galacticraft and extra planets dimensions never get unloaded. They also aren't on the blacklist if you were wondering. I can also confirm that these dims dont have any chunkloaders in them. https://hastebin.com/ebugemuxex.md

PS: I've also noticed this issue on other packs
Unloader v 1.2.0
Forge v 14.23.5.2808
PO3 v 3.0.38

@Unnoen Unnoen self-assigned this Mar 30, 2019
@Unnoen
Copy link
Owner

Unnoen commented Mar 30, 2019

There's been a few changes to Forge's world unloading since I've created this mod, I'm looking into whether or not this mod is still necessary. Can you test without Unloader installed?

@Piehthyte
Copy link

I'm not sure if you have any dimensions blacklisted but an issue I ran into was that if you leave the blacklist blank it acts as if it has a * flag instead.

@morerokk
Copy link

morerokk commented Jan 25, 2020

The mod doesn't work because the dimension blacklist code contains a bug. As Piehthyte said, the mod will only ever work if the blacklist has at least one item in it.

https://github.com/Unnoen/Unloader/blob/db13984dd4b16686b561b2ad0e8d4bb4490fbfe9/src/main/java/com/unnoen/unloader/UnloadHandler.java

On line 33, you enter a for-loop that loops over every blacklist entry. The problem here is that this loop is never entered if there are no blacklisted dims, and therefore the code that actually unloads the dimensions is never called.

Solution: move the dimension unload code outside of the loop. Only unload the dimension if it was matched inside the config.

@morerokk
Copy link

morerokk commented Jan 26, 2020

Also, I'm pretty sure this blacklist code fails if there is more than one blacklisted dimension.

The code loops over every entry in the blacklist. If the dimension does not match the current entry, it is unloaded. But what if an earlier or later entry does match the blacklist? Well, the dimension is still unloaded.

@tie
Copy link

tie commented Feb 11, 2020

Also, I’m pretty sure that first unload could fire earlier on physical client when switching between worlds because event handler is not unregistered on server startup/shutdown (and thus shares tickIndex state). Though this is not a critical bug.

@gatoborrachon
Copy link

so, the confing should only have 0 in the blacklist? (it has 0 and overworld, which are the same thing ik, but i'm not sure because someone said that the mod requires some configuration to be usable)

@morerokk
Copy link

morerokk commented Jul 6, 2021

In short, you have to have just one entry in the blacklist. No more and no less, or it won't work at all. If you only want the overworld to not be unloaded, 0 should be fine.

You can use regex to basically get multiple filters in one line.

@gatoborrachon
Copy link

ok, many thanks, i just left that zero inside the config

Krutoy242 added a commit to Krutoy242/Enigmatica2Expert-Extended that referenced this issue Feb 27, 2022
- Fix `Unloader` mod (probably will start actually work) Unnoen/Unloader#5

- Fixed mob spawn.
  Before this change, mobs would not be able to spawn more then 3-4 per type
  Now all mobs should spawn vanilla-alike

- This Hoes now have bigger breaking/harvesting radius:
  > [<ic2:electric_hoe>][<thaumcraft:thaumium_hoe>][<thaumcraft:void_hoe>][<thaumcraft:elemental_hoe>][<thaumadditions:void_elemental_hoe>][<twilightforest:ironwood_hoe>][<twilightforest:steeleaf_hoe>]
@xJon
Copy link

xJon commented Mar 28, 2023

UniversalTweaks has this included & working as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants