Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thebloxxer11 opened this issue Dec 27, 2020 · 3 comments

Comments

@thebloxxer11
Copy link

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:

  • I can’t make a GitHub page for it, the code isn’t easily transferrable.
  • Since I’m writing my app in Python 3.6, the code will have to be different to match syntax and other things caused by differences between Java and Python 3.6, making plagiarism unlikely.
  • I understand if you don’t want to help me. People have their views on this and some may be more accepting than others.

Thanks,
thebloxxer11

@MauveCloud
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants