Description: This area selection tool is an extension of the classical copy-paste settings feature, that allows multiple paste on a group of objects in one operation, but also selectively wiping their settings.
Tested-With-Factorio-Version: 0.13.10
Locale: english, french
Multiplayer compatible: tested on a headless server.
Tags: Copy paste settings
License: You are free to use and distribute this mod and also to modify it for personal use, but not to release a modified version without permission (unless visibly not maintained anymore).
DESCRIPTION
Remember that classical copy paste feature is shift-right-mouse -> shift-left-mouse. From one object to another one, possibly repeatable.
But when you have to change a whole bunch of existing chests, aren't you tired of repetitive pastings, clicking hundredth of times on shift-left-mouse to paste new requests slots on chests ? (read my original complain here)
Then this one-copy/multiple-paste area selection tool is for you !
When you have researched "Automatic construction" technology, you can craft the Copy Settings Tool.
Grab the CST tool in your hand, copy the settings of an object using shift-area-selection (draw a rectangle).
Be sure to select only the one object you want to copy as a source.
Then release shift and just area-select the objects you want to paste on. Et voila !
Note that, in the paste area selection, you can select objects that are not suitable to receive the copied settings : they just won't be affected.
You can also include the original object in the selection : it won't be affected either.
Remember that using this CST tool, you can copy-paste the following settings :
- recipes of assembling machines (can be paste on assemblers but also on requester chests),
- requests of logistic chests,
- hashbar of chests (limiting red arrow),
- filters of inserters,
- train stops names,
- trains schedules,
- and maybe more? (if you know more, tell me).
Note that you can also use this tool to wipe settings : you just have to empty the CST clipboard before. To do this, shift-select an empty area of the map. Then if you select any group of objects with CST, it will ask you what kind of settings you want to wipe. Handy, no ?
Last thing : if you want to quickly grab a CST tool in your bag, just type ALT-V. This key is customisable in Factorio menu options/controls/mods.
Have fun with Factorio !
screen2.jpg (289.16 KiB) Viewed 9397 times
Download
For Factorio 0.13.X : Please use the portal for downloads (see link above or use ingame mod install/update).
Thx guy ! I was missing such a tool to change a whole zone of assemblers in my full-robots factory.
Using EfficienSee, I now can fine tune such a factory more easily.
Sounds wonderful! Love your mods Binbinhfr
I'm a little confused how it would also change the request slots at the same time without ever copying it's settings. Does it check which chests are close by to the source object or did I misunderstand something? Might be more clear after I've tried it in game.
Qon wrote:Sounds wonderful! Love your mods Binbinhfr
I'm a little confused how it would also change the request slots at the same time without ever copying it's settings. Does it check which chests are close by to the source object or did I misunderstand something? Might be more clear after I've tried it in game.
It already exists in game :
if you copy an assembler (with its recipe), and paste it
- on an assembler, you will paste the recipe
- on a requester chest : you will paste the needed ingredients of the recipe
It just made it multiple.
You can now paste on several objects at once.
1.0.1 - now the copy can also be done with the classic shift-right-mouse on one single object.
the copy with the shift-area of the Copy Settings Tool still works : so you have
now two ways to copy.
But the clipboard of the Copy Settings Tool has the priority if it is not empty.
To empty it, you can shift select an empty area.
siggboy wrote:Another great mod, binbinhfr. I really missed that functionality, it's interesting that nobody had this idea earlier.
Thx guy !
I just also added a hotkey and a wipe feature, that I was missing in my factory day-to-day work
1.0.2 - suppress the classic shit-right-mouse copy added in v1.0.1,
to allow a new and more useful feature : "wipe all settings"
If your CST clipboard is empty (to do this, you must shift-select-area an empty zone), and then
if you multiple paste on a group of objects, you will be ask if you want to wipe their settings
and what kind of settings you want to wipe.
- add a hotkey (Alt-V) for grabbing any Copy Settings Tool in your inventory. This key is
customisable in Factorio menu options/controls/mods.
NOTE : several users noticed that there is now a bad interaction with Module Inserter by Choumiko. My tool triggers his tool too... It's because Choumiko made a little mistake in his code, forgetting to test the identity of his tool... It will be the same with any custom Selection Tool mod. I made him a request, and I hope he will update his mod soon. I cannot do anything about it by myself. Sorry.
Jupiter wrote:Edit: you could also add train-stop names and train schedules as copy-multi-paste targets.
For the moment, I just derivate the classic mono Copy Settings integrated in factorio.
If it does not work with trains, it won't work with my mod.
I will see how I can integrate that anyway for schedules, because it can be interesting.
But I do not see the interest of duplicating station names, as you want unique names to avoid identification errors, no ?
siggboy wrote:Station names and train schedules can be copy-pasted in Vanilla with shift-clicking.
So they should already be included in the copy settings tool; if not, then that's a bug, or not? I haven't tested if it works.
It would be useful (at least for the schedules, probably less so for the station names).
I cannot test it until this evening, but if it's part of the vanilla copy-paste, then it should work with my tool.
But I wonder why you would need a multiple paste on stations that are usually not grouped close to each other...
binbinhfr wrote:But I wonder why you would need a multiple paste on stations that are usually not grouped close to each other...
Train stops (a game entity, not stations) are usually grouped together in bigger stations and can benefit from all stops in the station having the same name.
If 2 stops have the same name a train can go to either one, whichever is close and free.
Jupiter wrote:Edit: you could also add train-stop names and train schedules as copy-multi-paste targets.
For the moment, I just derivate the classic mono Copy Settings integrated in factorio.
If it does not work with trains, it won't work with my mod.
I will see how I can integrate that anyway for schedules, because it can be interesting.
But I do not see the interest of duplicating station names, as you want unique names to avoid identification errors, no ?
Oh I don't know if it works with your mod or not. You asked for more ideas in your first post so I posted ideas :p
Does your mod work with modded items like the burner-filter-inserter?
As for the station names, I actually have a bunch (5 or 6 now, might be like 20 in the future) of trainstops all close together with the same name.
Qon wrote:If 2 stops have the same name a train can go to either one, whichever is close and free.
Nice to know !
Jupiter wrote:Oh I don't know if it works with your mod or not. You asked for more ideas in your first post so I posted ideas :p
Does your mod work with modded items like the burner-filter-inserter?
As for the station names, I actually have a bunch (5 or 6 now, might be like 20 in the future) of trainstops all close together with the same name.
So as told before, if it works with vanilla copy/paste, it will work with my mod, that implements the same function, just multiplying it and designing an area tool for that.
If the modded burner-filter-inserter is correctly done, it should work.
But the best way is to test. I cannot test all mods myself But if you discover a problem, I'll do my best to solve it.
So I tried with train stops and trains schedules.
Train stops works but not train schedule, because till now I only pasted on buildable entities.
I changed this and now it works also on train settings.
I filtered out rails in order to easily select-copy train stops or trains, because otherwise it was too hard with the rectangle tool.
binbinhfr wrote:So I tried with train stops and trains schedules.
Train stops works but not train schedule, because till now I only pasted on buildable entities.
I changed this and now it works also on train settings.
I filtered out rails in order to easily select-copy train stops or trains, because otherwise it was too hard with the rectangle tool.