SimElectricity

SimElectricity

613 Downloads

upgrade request 1.18.2

ptk2003 opened this issue ยท 8 comments

commented

I can build jar from source 1.18.1 but it not loading in 1.18.2 mc

commented

Can you provide more details? like some errors line in your game launcher.

commented
Mod File: SimElectricity-1.0.0.jar
Failure message: SimElectricity Essential (sime_essential) has failed to load correctly
	java.lang.NoClassDefFoundError: net/minecraftforge/event/RegistryEvent$NewRegistry
Mod Version: 1.0.0
Mod Issue URL: https://github.com/RoyalAliceAcademyOfSciences/SimElectricity/issues
Exception message: java.lang.ClassNotFoundException: net.minecraftforge.event.RegistryEvent$NewRegistry

latest.log
crash-2022-05-07_17.28.06-fml.txt
2022-05-07 17_28_19-Minecraft_ 1 18 2

commented

Maybe you need redownload forge and its library? I guess.
enable your VPN if you are living in China.

commented

I download and install latest 1.18.2-forge-40.1.16 it not solve issue (same error), all other mods build for 1.18.2 loading properly (they are removed for test to prevent mod incompatible).

Wich version of forge you can load mod (tested)?

commented

Hey, @rikka0w0 ! We need some help.

commented

Hi. Any news?

commented

That's a known problem, 1.18.1->1.18.2 isn't a minor update, despite the gameplay does not change at all, things have changed quite a lot internally. I'm working on a total re-write of the registry stuff and it will fix this issue. Be patient. If you are also a developer, any help would be appreciated.

commented

Basically, the problem originates from the instantiation of registrable objects. Before 1.18.2, you can instantiate those things at any time before the actual registration happens, so we chose to initialize them statically. But since 1.18.2, you have to instantiate them at the correct instant, just before the registration event is fired.