Mekanism Additions

Mekanism Additions

21M Downloads

Mekanism Reactor - Open Computers setInjectionRate "Invalid Parameters"

weiserhase opened this issue ยท 2 comments

commented

Issue description

I cannot set the Injection Rate of the Fusion Reactor with the OpenComputer Adapter.
I tried multiple things like reinstalling the modpack(1.12.2 Pack), creating a new computer/reactor. But still can't get it to work. The script i use silent fails and does nothing except for the executing it in the lua REPL.
I got it to work in one situation but i dont know how exactly i could reproduce it.

The Issue seems to be closely related to #2972

Steps to reproduce

Executing this script :

   local component= require("component")
   local reactor = component.reactor_logic_adapter
   print(reactor.getInjectionRate())
   print(reactor.setInjectionRate(10))
   print(reactor.getInjectionRate())

Which Produces

     2
     "Invalid Prameters"
     2

Minecraft version

1.20.1 or earlier (No longer being developed)

NeoForge version

Not Neoforge but: forge-1.12.2-14.23.5.2860.jar

Mekanism version

Older

Other relevant versions

Mekanism-1.12.2-9.8.3.390.jar
OpenComputers-MC1.12.2-1.8.3+274990f.jar

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

No response

commented

I investigated the problems further and i founf the following docs


That suggests the method of calling with an integer should work.

commented

What you are referencing is from modern versions of the game. This old methods for it can be found here: https://github.com/mekanism/Mekanism/blob/1.7.10/src/main/java/mekanism/generators/common/tile/reactor/TileEntityReactorLogicAdapter.java#L139-L202