Flywheel (Legacy)

Flywheel (Legacy)

43M Downloads

Crash in the development enviroment "Cannot get config value before config is loaded"

CKenJa opened this issue ยท 12 comments

commented

Describe the Bug

I updated build.gradle in the development environment to use Create0.5.1f and it crashes when I runClient.

Reproduction Steps

  1. Build a forge mod development environment on IntteliJIdea
  2. Add dependencies on Create and Flywheel
  3. Reload Gradle and genInttelliJRuns
  4. debug runClient

Expected Result

Minecraft launches without crashing.

Screenshots and Videos

crash-2023-11-03_18.57.19-client.txt

Crash Report or Log

No response

Operating System

Windows 11

What is your GPU?

Nvidia Geforce GTX 3060

Mod Version

0.6.10

Minecraft Version

1.19.2

Loader Version

43.2.4

Other Mods

Create, JEI, curios, Relocate(my developping mod)

Additional Context

No response

commented

Same issue, Minecraft 1.20.1, Forge 47.2.30, Flywheel 0.6.10-7

commented

This error is caused by problems in other mods. In my case, I wasn't registering Create movement behaviour right. In case you have this error - try searching for problems in your mod or other mods

commented

+1

Also happens on 1.20.1, with Forge 47.2.18, with Create, JEI, Farmer's Delight, Create: Deco, and Create: Alloyed (which is developing mod)

commented

+1

Also happens on 1.20.1, with Forge 47.2.18, with Create, JEI, Farmer's Delight, Create: Deco, and Create: Alloyed (which is developing mod)

Did you find a solution? I'm having the same issue in an architectury project on the forge side (47.1.44) with Flywheel 0.6.9-5.

commented

Same problem. Minecraft 1.20.1, Forge 47.2.0, Flywheel 0.6.10-8

commented

same issue, minecraft 1.20.1, forge 47.3.0, flywheel 0.6.10-7
All mavens use "implementation" will resolve it.

commented

Also having this issue

commented

I have been troubled by this problem for several months now, it's so confusing that it seems to be caused by different problems and the source of the problem seems to be unknown. Hope someone could figure it out.

commented

Basically this error is when some part of your mod throws some error, and if flywheel is not initialized, Minecraft will ignore your error but only throws flywheel's error.

Three solutions for this:

  1. place try - catch on every part of your code that may cause errors. And print the error manually instead of throw it to top handler.
  2. remove flywheel and other mods that will do some random logics when error occures.
  3. test in production envionment.
commented

@zyxkad Yeah, after a while I figured out it was my config that wasn't registered properly.
It's still weird that it would print this as a flywheel issue into the logs without ever mentioning the real cause though.

commented

By the way, my issue has solved as well. I used kotlin to write my project but I forgot to add kff in my dependencies.