Flux Networks

Flux Networks

55M Downloads

Priority doesn't seem to work

MatthiasMann opened this issue ยท 1 comments

commented

I'm using fluxnetworks-1.12.2-3.0.2.jar with sonarcore-1.12.2-5.0.4.jar and changing the priority or the send mode in the controller doesn't seem to change anything.

Looking through the code it seems the plugs and points are only sorted when the FluxCache.controller.update() is called - but the only place I found which calls FluxCache.controller.update(network) is here:

Maybe this method also needs to be called when changing the priority of any flux plug/point or the send mode?

commented

Hi @MatthiasMann, I have not had any issues with priority, but I wanted to setup a test for you to see if it is working as expected.

Setup:
3 Energy Cells, 2 fully charged
2 Plugs
1 Point
1 Controller

Settings:
A) Plug, Priority 10
B) Plug, Priority 0
C) Point, Limit 50
D) Controller, Send Largest, Receive Largest

Expected results:
Cell attached to (A) will drain to fill the need of (C), while cell (B) will not drain at all until (A) is depleted.

I will include some screenshots of the setup.

1 flux-network setup
2 flux-network plug a
3 flux-network plug b
4 flux-network point c
5 flux-network controller
6 flux-network-cell-amounts

I have a much more complex setup in my world involving multiple levels of priority with a quite a few plugs and points and have not had any issues yet, however I will say that I was stumped at how to get the priority system to activate until I read this comment on reddit, by peterwemm, explaining the various controller settings: https://www.reddit.com/r/feedthebeast/comments/6c8myo/i_made_a_quick_simple_guide_for_flux_networks/dhsvuvl/