-
Notifications
You must be signed in to change notification settings - Fork 649
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
Estimated Time of Crafting Job Completion #1259
Comments
Well, I think the system dosen't know when machines will finish, if there is a power loss.. |
If there is a power loss, it will just have to re-calculate the ETA. It's "estimated" time of completion. |
@sci4me I would like this too but if just the machines loose there power the ME system won't know. |
Would be nice, but not really feasible. (read that as required amount of work for a little feature) We do not know how long any machine (this includes assemblers) will need to craft a single item. |
Maybe something simple is fine, like
|
Hm. These values are not really available. But each task with the remaining amount is available. |
Cant we just adjust the class to contain the initial information?
not sure, how you would determine the |
Something like this?
But instead of directly assigning the new value, calculate a weighted mean between the old and new value. So instead of jumping from 2 minutes left to 5 minutes and then back to 3 minutes, it might only jump to 3.5 minutes and then to 3. No idea about the actual weight. Maybe prefer the old value at the beginning (70:30?) and shift towards the new one based on the overall progress? So it will not jump that fast at the beginning, but react a bit faster towards the ending for changes. |
Sounds fine to me |
Yes I know it's been a month, but more tips for this. Power outage prediction (likely to use LOTS of mod APIs): effectively you find where the energy acceptor gets its power from, then find the source (eg EnderIO capacitors, TE tesseracts) and calculate the amount of power in it by power usage rate to find the time left before power runs out. If you wanted to, trace the source providing power to the energy acceptor (eg generator, draconic evolution energy storage multiblock) and do the same (calculate the amount of power in it by power usage rate). Then maybe trace the source of the source providing power for the energy acceptor and calculate. And keep on doing this until you hit the generator (the absolute source) or the game crashes. It's like following your internet connection to a remote server physically (follow the copper/fibre cable outside of your house until you get to the server) Crafting time: run a simulation of crafting one of each item in molecular assemblers, cache these times and calculate this by how many items there are (eg 8 cobble to 1 furnace takes 1.5 seconds and there are 15 furnaces to craft, so 15_1.5=22.5 seconds, 4 wood planks to 1 crafting table takes 0.5 seconds and there are 10 crafting tables to craft, so 10_0.5=5 seconds) Sorry if I wasn't very clear. |
What you are proposing won't work because an external mod can't for example follow a tesseract channel and also you would need different compatibility code for every mod that provides Mekanism Joules, EU, RF, etc. to be able to follow the cable. |
I'm not expecting it to be added, since it's not likely that your crafting jobs are going to take real world hours. And the code would be crazy for the power outage prediction. Or maybe forget about the power outage prediction stuff and assume that there will never be a power shortage? |
So whenever you have a "huge" crafting job that would take some real world hours, display a estimated time of completion for each CPU and maybe for all CPUs. So you have a rough idea of when it's going to be done.
The text was updated successfully, but these errors were encountered: