McJtyMods / XNet

Advanced item/liquid/energy/... networking
MIT License
96 stars 53 forks source link

Feature Request : Multiple connections per channel on one machine #185

Closed NosajDraw closed 6 years ago

NosajDraw commented 6 years ago

If the machine is connected via an advanced connector, then allow additional "virtual" connections to be defined, such that you can push and pull from the same machine on the same channel.

McJty commented 6 years ago

That's not likely to happen as this is really complicated and I'd rather not complicate the code much more. Also I feel that this might make it a bit too powerful. 8 channels is already pretty good IMHO. There is a lot you can do from a single side already

jonabrv1965 commented 6 years ago

Hello McJty, I have a situation where this "virtualization" can be very helpful : Mekanism Factories... I just test upgrading one smelter that already works fine with XNET, but when converted to factory (with their three outputs, XNET just work for the first slot) I tested changing the side configuration on the XNET controller and it works for the others, but just one at a time... (the weird thing is the three inputs works fine from the one configured side in the controller)... maybe is a mekanism glitch... I'll post this issue in the mekanism github also.. :-)

PS: I found a way to manage this... activating the "sort" option in the factory, that way all three input/output slots work with the same ore at the same time (all gold for example)... that way xnet is able to extract the ingots...

PS1: not optimal solution, sometimes the factory mixes the input, and then, two outputs get stuck..

Any idea pretty welcome! (for now I'm going to restore a backup and leave alone the factories...)

Lescius commented 6 years ago

I'm having that exact problem with extracting from Mek factories. XNet will repeatedly pull 1-2 items from the first slot and ignore the rest. If it could round robin or randomize the input slots, it would help a lot.

McJty commented 6 years ago

Randomizing/round robin of input slot extraction might be an option. I'll see if I can implement that

jonabrv1965 commented 6 years ago

Hi again McJty.. I found a workaround to this, @Lescius, the factory speed is key. If you have the factory full upgraded (8 speed cards) XNet cannot cope the output. I slow down a bit (6 cards) and use four connectors (one advanced and 3 basic) to each level2 (six outputs) smelter factory. For the enrichment factories, I simply put them above each smelter factory with xnet just providing input (up/Adv conn) and energy, the output set to automatic on. This way the pulverized ores are passed machine to machine,,, not optimal, but good enough! Happy 2018 McJty!! (all) and thank you very very much for the thousands (yes thousands!) hours I have invest in your fantastic mods!

McJty commented 6 years ago

I will also speed up the transfer rate

McJty commented 6 years ago

Next release of XNet (probably tomorrow), item connectors will get double speed (10 ticks per operation for normal and 5 ticks per operation for advanced) In addition there will be a new 'mode' button for extracting nodes with three values: first (first available item slot as it is now), random (a random slot), round robin (go over each slot one by one)

I think both of these should address all concerns here

calloatti commented 6 years ago

All these changes you have made solve a lot of the small issues and little shortcomings the mod had in some situations. Thanks for listening and implementing the changes. Now the mod is even greater.