[Solved] Create Combinator that outputs more than 18 signals

Place to get help with not working mods / modding interface.
Post Reply
DARKHAWX
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu May 10, 2018 10:19 am
Contact:

[Solved] Create Combinator that outputs more than 18 signals

Post by DARKHAWX »

Hi there,

I'm making a type of constant combinator and I need to be able to output more than 18 signals at a time, potentially one for each signal type (including items, colors and alphanumeric symbols). Right now my code all works fine, but since my entity is simply a custom copy of the constant combintator it's still limited to 18 slots. Does anyone know of a way to change this number? Or should doing something else to make an entity that can be connected to the circuit system and output more than 18 signals at a time? Is there a different entity prototype that I should extend?
Last edited by DARKHAWX on Sat May 12, 2018 3:45 am, edited 1 time in total.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Create Constant Combinator that outputs more than 18 signals

Post by eradicator »

You just need to change your prototype.
data.raw["constant-combinator"]["constant-combinator"].item_slot_count = 18

DARKHAWX
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu May 10, 2018 10:19 am
Contact:

Re: Create Constant Combinator that outputs more than 18 signals

Post by DARKHAWX »

Thank you! Worked like a charm.

Post Reply

Return to “Modding help”