Underground Belt as Input/Output
Posted: Tue Jun 01, 2021 3:52 am
I'm new to Factorio modding and am looking for advice from people more experienced than I am.
I had an idea to implement a large assembly machine whose inputs and outputs are fed through underground belts that pass through to the other side of the assembly machine so that another one can be easily placed after it. I understand most people would consider this to be unfun and overpowered but personally I'm interested in the kind of late game designs this would enable.
Rather than implementing this as a special type of entity, I realized it would make a lot of sense to implement a special type of underground belt which could be attached to existing assemblers as well as smelters and other various entities. That way, the same pattern could be applied to other types of buildings without having to reimplement anything.
I'm thinking it may be possible to do this with 2 entities: when the belt is built it would create an inserter in the background connecting the underground belt to the assembly machine, which would be deconstructed along with the belt if destroyed
There would be two types of belts, one for an "input belt" which has the inserter going into the assembler and an "output belt" with the inserter going from the assembler to the belt. However, I don't know if this is possible as the inserter seems like it would need to be "underneath" the assembler/smelter/whatever container it's passing through.
Are entities allowed to overlap like that?
Another plausible way to do this would be to make a special underground belt that also acts as a loader attached to the assembly machine. From what I've read this doesn't seem possible because "hybrid entities" are not valid prototypes, and moreover it seems like there may have to be some kind of priority splitter behavior involved.
Is the approach with the automatically created inserter viable? If not, is there a different/better way to do what I'm thinking about?
Any help/thoughts are appreciated.
I had an idea to implement a large assembly machine whose inputs and outputs are fed through underground belts that pass through to the other side of the assembly machine so that another one can be easily placed after it. I understand most people would consider this to be unfun and overpowered but personally I'm interested in the kind of late game designs this would enable.
Rather than implementing this as a special type of entity, I realized it would make a lot of sense to implement a special type of underground belt which could be attached to existing assemblers as well as smelters and other various entities. That way, the same pattern could be applied to other types of buildings without having to reimplement anything.
I'm thinking it may be possible to do this with 2 entities: when the belt is built it would create an inserter in the background connecting the underground belt to the assembly machine, which would be deconstructed along with the belt if destroyed
There would be two types of belts, one for an "input belt" which has the inserter going into the assembler and an "output belt" with the inserter going from the assembler to the belt. However, I don't know if this is possible as the inserter seems like it would need to be "underneath" the assembler/smelter/whatever container it's passing through.
Are entities allowed to overlap like that?
Another plausible way to do this would be to make a special underground belt that also acts as a loader attached to the assembly machine. From what I've read this doesn't seem possible because "hybrid entities" are not valid prototypes, and moreover it seems like there may have to be some kind of priority splitter behavior involved.
Is the approach with the automatically created inserter viable? If not, is there a different/better way to do what I'm thinking about?
Any help/thoughts are appreciated.