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

New Feature: Round Robin transfer upgrade #17

Open
scollenburg opened this issue Jan 19, 2017 · 1 comment
Open

New Feature: Round Robin transfer upgrade #17

scollenburg opened this issue Jan 19, 2017 · 1 comment

Comments

@scollenburg
Copy link

Forge Version & Engineer's Workshop Version

Forge 12.18.3.2202; EW 1.1.2 (for minecraft 1.10.2);

Expected behavior

GLOBAL upgrade. When applied, it will:

  • Iterate over each active crafting grid. For each crafting grid:
    • For each filled crafting space, attempt to supply one [transfer capacity] worth of material from a designated import.
    • Once one transfer is done for that crafting space, it will move onto the next crafting space
    • For balance & CPU reasons, a short [configurable?] delay between each crafting space

Existing Transfer capacity upgrades will increase the number of items transferred into each grid space.

Additional Round Robin upgrades would decrease the delay between crafting spaces.

  • If possible, have a config parameter to specify the number of ticks reduced by each upgrade level
  • If possible, have a configurable list for number of Round Robins (aka stack size) required to get to the next upgrade level. For example, assuming -2 ticks per upgrade level:
    • 1st RR gives a 20 tick delay (1 for this level / 1 total RR)
    • 2nd RR gives a 18 tick (1 for this level / 2 total RR)
    • 4th RR gives a 16 tick delay (2 for this level / 4 total)
    • 7th RR gives a 14 tick delay (3 / 7 total)
    • 12th RR gives a 12 tick delay (5 / 12 total)...
  • For the above example, the config values would be:
    • 1, 2, 4, 7, 12, 20, 29, 39, 51, 64
  • This would allow users / modpack designers to decide how to scale the power. By setting the stack size requirements >64 in configuration it would restrict the effective maximum number of levels.
Actual Behavior

Item transfer into the workbench fills the top left crafting grid to stack capacity first, potentially staving the other grids of crafting materials.

Link to Crashlog or Forgelog [If Applicable]

n/a

Steps to reproduce [If Applicable]

Add 2+ crafting tables, with autocraftings upgrades in each crafting area & auto-transfer in the global area. Create multiple recipes that use a common material (e.g. iron swords, iron pickaxe), and one crafting grid will get all the material.

@JorVaCoding
Copy link
Member

I will look into this. I've wanted to add something like this for a bit, but haven't found the time to do so... Also, thank you for the detailed report :D

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

No branches or pull requests

2 participants