Belt Machine API

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
milo christiansen
Fast Inserter
Fast Inserter
Posts: 106
Joined: Thu Jul 30, 2015 7:11 pm
Contact:

Belt Machine API

Post by milo christiansen »

There are already 50 bazillion suggestions for new splitter-like machines, but this one is different. Very different.

What this game needs is a rule based API for making modded belt machines. Basically you would define the machine's belt input locations and then specify a different location (or list of locations) that any incoming items are output. For example a clone of the splitter would specify two inputs, and each lane of each input would be given two outputs (on the opposite side of the machine).

By specifying IO mappings on a per lane basis you could make all kinds of fancy belt machines, for example a single lane belt, or a single tile balancer. By simply providing an API modders could get as complicated as they wish without needing to fill the base game with extra cruft.

An interesting extension to my idea would be to allow a Lua function to be provided instead of an output mapping, so that it would be possible to make machines that input items directly from belts (a industrial size pass-through furnace for example). Of course to make full use of this it would be necessary to have a way to output directly to defined belt outputs...

In short a belt machine API would provide tremendous modder freedom, always a good thing to have.

Edit: This would neatly tie into: This suggestion (in the backlog section)
Last edited by milo christiansen on Sat Sep 26, 2015 6:55 pm, edited 1 time in total.

Kayser
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Mon Aug 10, 2015 9:43 am
Contact:

Re: Belt Machine API

Post by Kayser »

Wonderful idea. I can finally get my balanced 3-way splitter with built-in sorting, deterministic fixed ratios output, including overflow-, and shortage detection. Awsome!

milo christiansen
Fast Inserter
Fast Inserter
Posts: 106
Joined: Thu Jul 30, 2015 7:11 pm
Contact:

Re: Belt Machine API

Post by milo christiansen »

I hope you are not being sarcastic :p
Yes, that would hopefully be possible (but of dubious value).

Kayser
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Mon Aug 10, 2015 9:43 am
Contact:

Re: Belt Machine API

Post by Kayser »

milo christiansen wrote:I hope you are not being sarcastic :p
Yes, that would hopefully be possible (but of dubious value).
About the idea, I was not being sarcastic. I like it.

About my splitter, though, I leave it to the reader to interpret my level of sincerity.

Post Reply

Return to “Ideas and Suggestions”