Page 1 of 1

Old Item Blocker mod

Posted: Fri Nov 06, 2015 10:50 am
by Tomekosi
There was a mod once, Item Blocker(https://forums.factorio.com/forum/vie ... 27&start=0)
, it contained an item blocker which blocked items on a belt from moving on the belt, while remaining static.
I tried some tweaking with the mod, but got no luck in bringing its functionality back, it just was there, but blocked nothing.
My question is, since they changed how belts work, is it possible to make it work again, or do any other thing to block 1 path without some crazy constructions (underground belt as an example.
Or maybe there's another mod for doing that on newer version. Any ideas?

@EDIT@
This mod was interacting with items on the belt by
Collision mask on item-layer
It doesnt work anymore, and any other layer doesn't block the items.

Re: Old Item Blocker mod

Posted: Fri Nov 06, 2015 11:21 am
by ThaPear
It's impossible to do it using the old method, the one used in that mod.

It's probably possible to simulate blocking 1 path using this method:
- Scan for items arriving on the last transport belt.
- If an item arrived on the path you're scanning:
- Create a copy of the item on the next belt.
- Destroy the old item.
- If it's on the wrong belt, do nothing.

This'll require a belt-looking thing that isn't a belt so that the items would stop if not for the script.
I'm not 100% sure if the idea still works on the new belt system.

An example of this is my Filtered Splitters mod. It's quite outdated, but the idea should still be clear.

Re: Old Item Blocker mod

Posted: Fri Nov 06, 2015 11:25 am
by Tomekosi
Well, its too complex i guess, and could get laggy. Probably we should ask the devs to add a feature like this
or at least bring back the support to blocking the item path on a belt.
I'm new to modding, is it possible to create a belt with only 1 lane moving?

Re: Old Item Blocker mod

Posted: Fri Nov 06, 2015 6:50 pm
by Rseding91
Tomekosi wrote:Well, its too complex i guess, and could get laggy. Probably we should ask the devs to add a feature like this
or at least bring back the support to blocking the item path on a belt.
I'm new to modding, is it possible to create a belt with only 1 lane moving?
I don't see the benefit in a belt with only 1 lane. Just don't fill the other lane if you don't want it to have stuff.

Re: Old Item Blocker mod

Posted: Fri Nov 06, 2015 7:57 pm
by Tomekosi
The point is when you have a belt of coal and copper for example, and you want to take only copper,
but you have a single block of space to block copper, you need an item blocker to extract it.

Re: Old Item Blocker mod

Posted: Fri Nov 06, 2015 9:39 pm
by Rseding91
Tomekosi wrote:The point is when you have a belt of coal and copper for example, and you want to take only copper,
but you have a single block of space to block copper, you need an item blocker to extract it.
A smart inserter can do that. Not putting them both on the same belt can also do that.

Re: Old Item Blocker mod

Posted: Sun Nov 08, 2015 12:45 am
by Tomekosi
The point is to have it on one belt and not use a smart inserter as it takes another 2 lanes.
There are some cases when you just need it. Btw the point of this post was not to talk whether it is useful for one other or not, but how to do it as of now.

Re: Old Item Blocker mod

Posted: Sun Nov 08, 2015 3:30 pm
by mazetar
So you got both sides of the belt filled with items. Cooper on one side, coal on the other.
And you just want to extract the cooper?
Use the underground belt bug/feature setting a underground belt sideways in front of the belt stops one side of it and passes just the other

Re: Old Item Blocker mod

Posted: Mon Nov 09, 2015 12:55 am
by Tomekosi
The point is about creating a mod, not using current exploits/bugs.
I want you guys to relate to the topic, i want to know if it is anyway possible.
I dont want to sound rude, i really just want to know if there is a way to do this.