Altering counts on copy from assembling machine to chest

Place to get help with not working mods / modding interface.
Martc
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Wed May 21, 2014 8:20 am
Contact:

Altering counts on copy from assembling machine to chest

Post by Martc »

Is there way how can I change default item count that is requesting chest, when you copy blueprint from assembling machine to requester chest?
Something like default_request_amount, or some event that can used to alter requester slots.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14381
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Altering counts on copy from assembling machine to chest

Post by Rseding91 »

requester_paste_multiplier in the recipe definition. The default is 2 - change it to what you want :)
If you want to get ahold of me I'm almost always on Discord.
Hovadko
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Nov 01, 2014 7:22 pm
Contact:

Re: Altering counts on copy from assembling machine to chest

Post by Hovadko »

Rseding91 wrote:requester_paste_multiplier in the recipe definition. The default is 2 - change it to what you want :)
i am trying to do the same thing. but you manual is not very detailed. could you specify it more clearly please?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14381
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Altering counts on copy from assembling machine to chest

Post by Rseding91 »

Hovadko wrote:
Rseding91 wrote:requester_paste_multiplier in the recipe definition. The default is 2 - change it to what you want :)
i am trying to do the same thing. but you manual is not very detailed. could you specify it more clearly please?
add "requester_paste_multiplier = #" to the recipe definition you want to have a higher count. Where # is the recipe counts * # the chest will get.
If you want to get ahold of me I'm almost always on Discord.
Hovadko
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sat Nov 01, 2014 7:22 pm
Contact:

Re: Altering counts on copy from assembling machine to chest

Post by Hovadko »

i have to do it for every recipe? there has to be some global variable no?
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Altering counts on copy from assembling machine to chest

Post by prg »

Hovadko wrote:i have to do it for every recipe? there has to be some global variable no?
It's not that painful.

Code: Select all

for _, v in pairs(data.raw.recipe) do
        v.requester_paste_multiplier = 10
end
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Post Reply

Return to “Modding help”