Engineers Workshop

Engineers Workshop

7M Downloads

New Feature: Round Robin transfer upgrade

scollenburg opened this issue ยท 1 comments

commented
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.

commented

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