ThinkingStudios / RyoamicLights

LambDynamicLights unofficial architectury port. A dynamic lights mod for Minecraft.
MIT License
18 stars 2 forks source link

Error on Startup - failed to load #38

Closed Fidulus closed 2 months ago

Fidulus commented 3 months ago

Describe the bug Screenshot

Screenshots image

Desktop (please complete the following information):

Additional context I am very sorry if this error is related to another mod. I would be very happy to provide any more info if necessary. I am not very good at reading the error logs, but i hope you have the patience and dedication to help me out anyway. Thank you very much. I love the mod, because as of now it is the ONLY way to get dynamic lights in neoforge 21.0.x

3gf8jv4dv commented 3 months ago

For some reason, ryoamiclights.toml is written with the same paragraph twice. This caused some kind of problem reading the config file.

Reproducible in NeoForge 21.0.114-beta using only RyoamicLights and ObsidianUI. The paragraph only appears once when entering the game, and a second one will appear after entering a world. So if using the latest version of NeoForge and mods, the first time you enter a world it will not crash, but the second time you launch the game it will crash.

Maybe it is because of some breaking changes in NeoForge? I thought I would test it out.

[light_sources]
    water_sensitive_check = true
    self = true
    block_entities = true
    entities = true
[light_sources]
    water_sensitive_check = true
    self = true
    block_entities = true
    entities = true
3gf8jv4dv commented 3 months ago

It can be confirmed that this is caused by a breaking change in NeoForge. The problem started to occur starting with NeoForge 21.0.82-beta.

RELATED:

NovaViper commented 2 months ago

It's still broken even after update v0.2.10, the buggy config that @3gf8jv4dv mention is still being created even on NeoForge v21.0.167, which results in the game crashing after you relaunch it.