MauveCloud / Ic2ExpReactorPlanner

A planner for nuclear reactors in the popular Minecraft mod IndustrialCraft2 Experimental.
GNU General Public License v2.0
179 stars 30 forks source link

[Question] Working on my own Python 3.6 variant for iOS in Pythonista 3, need assistance with development. #88

Open thebloxxer11 opened 3 years ago

thebloxxer11 commented 3 years ago

Background: I noticed there isn’t an iOS version of an IC2 Reactor Planner, so I took it upon myself to make one in Pythonista 3, which uses Python 3.6 as it’s primary programming language. I’ve gotten stuck with the simulation end of things for the EU reactor type, my current focus, and cannot decompile IC2 due to personal constraints I won’t bring up.

Question: Is it possible to retrieve the sequence of events (Fuel rods or Coolant first) for the EU reactor simulation in the source files of the Java application? If yes, may I take a look at it please?

Notes:

Thanks, thebloxxer11

MauveCloud commented 3 years ago

Is it possible to retrieve the sequence of events (Fuel rods or Coolant first) for the EU reactor simulation in the source files of the Java application? If yes, may I take a look at it please?

Sure, I think this section of the code will help answer your question (not sure whether this will end up as a link or as embedded code): https://github.com/MauveCloud/Ic2ExpReactorPlanner/blob/master/src/Ic2ExpReactorPlanner/AutomationSimulator.java#L193-L221

I'm not sure what you mean by "Fuel rods or coolant first", though - that isn't how the passes are separated.

thebloxxer11 commented 3 years ago

There are two functions in there that I’m curious about: component.dissipate(); and component.transfer();. What do each of them do? I don’t see any void functions for that in that file. And it ended up as a link.

MauveCloud commented 3 years ago

Those are defined here: https://github.com/MauveCloud/Ic2ExpReactorPlanner/blob/master/src/Ic2ExpReactorPlanner/components/ReactorItem.java#L203-L216 with more specific implementations in subclasses in the same package.