Automated Redstone

Automated Redstone

145k Downloads

crash during startup with OC: "Please register all environment providers in the init phase."

LlubNek opened this issue ยท 4 comments

commented

What I did:

started minecraft with opencomputers and automated redstone, etc

What happened:

crashed during postinit with message:

net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from Automated Redstone (circuits)
Caused by: java.lang.IllegalStateException: Please register all environment providers in the init phase.
    at li.cil.oc.server.driver.Registry$.add(Registry.scala:86)
    at li.cil.oc.api.Driver.add(Driver.java:98)
    at cd4017be.circuits.tileEntity.OC_ADC.registerAPI(OC_ADC.java:388)
    at cd4017be.circuits.RedstoneCircuits.postInit(RedstoneCircuits.java:58)
...

Used Versions:

  • Minecraft-1.12.2
  • AutomatedRedstone-1.12.2-6.1.5
  • CD4017BE_lib-1.12.2-6.3.0
  • Forge-14.23.5.2808
  • OpenComputers-MC1.12.2-1.7.3.146

crash-2019-01-27_17.31.55-client.txt
latest.log

commented

Hmm ... i just played a modpack with exactly the same versions of OpenComputers, AutomatedRedstone and CD4017BE_lib. And it worked fine: no crash, no error messages and computer control of the ADC-block worked normally.

Maybe one of your other mods in the pack is injecting an older version of the OpenComputers API which overrides the one provided by OC itself.

commented

If so, I'd expect similar crashes from other mods, which doesn't happen. Without automated redstone it works. I could just be getting lucky though.

commented

I've checked OC's source code now and yes the original API version indeed throws the Exception of your crash when a driver is added past init phase. According to that my test-pack working without crash shouldn't have happened ... weird!

Whatever, I'll just move registration to init phase now and hope everything will be fine then.

commented

Final thoughts:
Maybe the exception din't trigger in my pack because the lock is set during OC's post-init phase and AutomatedRedstone had somehow run its post-init event earlier than OC so it wasn't locked yet.