poma123 / GlobalWarming

This Slimefun addon adds climate change mechanics to the game.
MIT License
7 stars 10 forks source link

Worlds selection in config.yml doesn't work #12

Closed R4z0rX closed 3 years ago

R4z0rX commented 3 years ago

Hi! This is what is hapening: No matter what configs we try, we can't get GW to work in the world nuclear. With any of following configs, inside the game we do: /gw pollution get world and we a get a value (that's correct), but when we do: /gw pollution get nuclear the response is always: The plugin's functionality is disabled in the given world

As Blacklist (GW should work in all worlds):

worlds: []
world-filter-type: blacklist

Or as Whitelist (GW should work only in world and nuclear worlds):

worlds:
  - world
  - nuclear
world-filter-type: whitelist

The last one is even worst because the plugin parse config.yml and transform it to this:

worlds:
- world
- nuclear
world-filter-type: whitelist

And that's a wrong YML format for an array of elements, the 2 spaces before de - are needed. In the end, the result is always the same, GW only works in the 3 vanilla worlds (world, world_nether, and world_the_end), but doesn't work in any additional world. Just in case, nuclear is a normal type world, just like the overworld.

I hope you can find the bug. Thanks in advance.

poma123 commented 3 years ago

Hi there. Interesting, I will look into this. Also, that's a valid YAML format, so both of them should work.

Can you please provide a full server startup log? It can be related to when the world 'nuclear' is loaded.

R4z0rX commented 3 years ago

Hey! Thanks for your quick reply. Are you really sure about that format? Because I parsed these (and other) configs with several YAML validators, and all of them format the array with 2 spaces before de - sign. On the other hand, please sorry, I forgot to mention that we use Multiverse Core for world management. Maybe, it is related to the way it loads the worlds. I'll give you a full server log at loading, when I get back home. Thanks again!

poma123 commented 3 years ago

Multiverse should work though, as I tested it.

R4z0rX commented 3 years ago

Here you have, the GW folder with the config.yml (that should work) and the rest of the configs, and the full startup latest.log. I hope this could help. Let me know if you need anything else. Thanks again!

GW+Logs.zip

R4z0rX commented 3 years ago

Well, I tried the last build with my last config...

worlds: []
world-filter-type: blacklist

And the night is dark and full of errors... xD

Here you have the logs and err files... logs.zip

poma123 commented 3 years ago

Finally fixed in build 6. Thanks for reporting!

R4z0rX commented 3 years ago

Yay! It's working! Thank you very much! 👍