Page 1 of 1

Copy-multiple paste ?

Posted: Sun Jul 24, 2016 12:01 pm
by binbinhfr
Hi,

I have a bunch (200) of requester chests with settings to iron-ore.
I want to change them to copper-ore.
I know about copy paste (shift right but and shift left but), but I do not want to copy 100 times...
Is there a way to make a multiple paste ?

Re: Copy-multiple paste ?

Posted: Sun Jul 24, 2016 12:18 pm
by Nexela
Change a handful and blueprint them. then deconstruct the old and plop down the blueprint. That is the only thing I can think of outside of possible writing a mod to do it if the api supports it.

Re: Copy-multiple paste ?

Posted: Sun Jul 24, 2016 12:31 pm
by binbinhfr
Nexela wrote:Change a handful and blueprint them. then deconstruct the old and plop down the blueprint. That is the only thing I can think of outside of possible writing a mod to do it if the api supports it.
I tried this but...
my problem is that these chests are quite full of things. If I deconstructs these hundredth chests, robots will take a lot of time and storage place to empty them before deconstructing them... Just changing the conditions of the chests is what I need.

Re: Copy-multiple paste ?

Posted: Sun Jul 24, 2016 2:31 pm
by orzelek
Maybe try force-placing blueprint with new conditions over old ones and see if it works?

Re: Copy-multiple paste ?

Posted: Sun Jul 24, 2016 2:44 pm
by Nexela
Well shouldn't be too hard to do with a console script.

something along the lines of

get requester chests in range, and looping through
get_request_slot(slot)
and
set_request_slot(request, slot)

Re: Copy-multiple paste ?

Posted: Sun Jul 24, 2016 3:51 pm
by binbinhfr
Yes I guess I'll write another mod for that.
I will finish this one first !
viewtopic.php?f=92&t=29179

Re: Copy-multiple paste ?

Posted: Sun Jul 24, 2016 4:08 pm
by binbinhfr
orzelek wrote:Maybe try force-placing blueprint with new conditions over old ones and see if it works?
alas it does not work

Re: Copy-multiple paste ?

Posted: Mon Jul 25, 2016 3:06 pm
by zebediah49
binbinhfr wrote:Hi,
I know about copy paste (shift right but and shift left but), but I do not want to copy 100 times...
Is there a way to make a multiple paste ?
Just checking, are you asking for <shift-right> <shift-left> <shift-left>..... <shift-left>? So that you don't have to keep doing the copy operation?

... Because that's how it already works.

Re: Copy-multiple paste ?

Posted: Mon Jul 25, 2016 3:18 pm
by binbinhfr
Oh no, I just laready copy once, but I don't want to shift-left x100... So I wonder if there was a way to multiple select and paste, or anything...

Re: Copy-multiple paste ?

Posted: Tue Jul 26, 2016 9:06 am
by Harkonnen604
If all chests are reachable, you can hold shift, hold running and just click-click-click-click. Not a big deal for 100 chests. But only if all reachable.

Re: Copy-multiple paste ?

Posted: Tue Jul 26, 2016 9:13 am
by binbinhfr
Yes, good idea, I'll try it tonight !!!

Re: Copy-multiple paste ?

Posted: Sat Jul 30, 2016 3:03 pm
by binbinhfr
Well running is not for me.

So I wrote a mod !

For those who are interested :
viewtopic.php?f=92&t=30163

https://mods.factorio.com/mods/binbinhf ... ttingsTool