Old Item Blocker mod

Place to post guides, observations, things related to modding that are not mods themselves.
Tomekosi
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 06, 2015 10:44 am
Contact:

Old Item Blocker mod

Post 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.
User avatar
ThaPear
Fast Inserter
Fast Inserter
Posts: 226
Joined: Fri May 30, 2014 8:05 am
Contact:

Re: Old Item Blocker mod

Post 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.
Tomekosi
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 06, 2015 10:44 am
Contact:

Re: Old Item Blocker mod

Post 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?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14265
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Old Item Blocker mod

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Tomekosi
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 06, 2015 10:44 am
Contact:

Re: Old Item Blocker mod

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14265
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Old Item Blocker mod

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Tomekosi
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 06, 2015 10:44 am
Contact:

Re: Old Item Blocker mod

Post 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.
mazetar
Burner Inserter
Burner Inserter
Posts: 17
Joined: Fri Jan 02, 2015 7:45 am
Contact:

Re: Old Item Blocker mod

Post 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
Tomekosi
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Nov 06, 2015 10:44 am
Contact:

Re: Old Item Blocker mod

Post 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.
Post Reply

Return to “Modding discussion”