desht / ModularRouters

A Forge Mod for item routers with pluggable modules
16 stars 20 forks source link

Router not distributing evenly #41

Closed lstrobel closed 5 years ago

lstrobel commented 6 years ago

Minecraft Version

1.12.2

Forge Version

14.23.4.2707 (I'm playing Sevtech 3.0.8)

Mod Version

1.12.2-3.1.5

Describe your problem, including steps to reproduce it

I have an item router with three different Mk2 Sender Modules in it. The behavior I would expect is for the router to evenly distribute incoming items in a round-robin fashion. However, it instead focusses only on the first module, distributing to mainly that one.

Here are some pictures: The setup

Configuration

Any other comments?

It seems this occurs because the items I wish to distribute are trickling in, and each time a new item comes it resets where it distributes them to.

desht commented 6 years ago

Yes, that's how the router behaves I'm afraid. It just executes each module in turn, so if the first module is able to send the item(s), it will, leaving nothing for the others.

I have been considering a Distributor Module, which would allow distribution of items between multiple inventories (with the ability to select round-robin, nearest first, nearest last etc.). Since it seems like this would be a useful feature, it's likely I'll add it for the next major release.

desht commented 6 years ago

Distributor module has been added, will be in upcoming 3.2.0 release.

If you want to test it out now, you can try build 19+ from http://jenkins.k-4u.nl/view/Desht/job/ModularRouters/

desht commented 5 years ago

Distributor module available in 3.2.0