Fallout 4

Fallout 4

View Stats:
Jakewhistler Mar 16, 2017 @ 7:37am
Is it possible to use the console to copy player upgraded items?
I want to equip all of my settlers with combat armor and a decent weapon. I just upgraded and renamed 50 combat armor helmets, and I really don't want to go through that again! (Plus, I counted on the map it seems the number is closer to 90 that I'll need...) Is there a way to get the base ID of a player modified item? Or is there a way to use a macro or something to do all of this relatively unattended? I'm giving everyone Heavy Combat Armor and a weapon to be decided later. A t-shirt and a pipe pistol just won't cut it.
< >
Showing 1-13 of 13 comments
DouglasGrave Mar 16, 2017 @ 6:44pm 
There are around 30 settlements (a few more with the DLC), and even if you only have the minimum Charisma 1, you can have 11 settlers at each, while you could have 20 or more if it's higher. So, the calculations suggest you could have a heck of a lot of settlers. Having given almost all my own settlers different kinds of Institute clothing (depending on their jobs), I can confirm that it takes a lot of work to equip them all.

As for duplication, I don't know of a command that makes armour with specific modifications, but you could make a batch file that executes specific changes with console commands and run it on a selected item. For selection, you want the reference ID (the ID for that individual copy of the item) rather than the base ID (which is used for all instances of that item in the entire game); you can get it either by clicking on the visible item while the command console is open, though this can often be off-target, or manually grabbing the item and using the "getplayergrabbedref" command to get its reference ID.

There is also a "duplicateallitems" command that duplicates all items in a selected container (putting copies of them in another container with a given ID), you might be able to use that. This is probably quicker, if you can get it to work, since you can dump the copies back into the original container to quickly multiply them.

There's also a glitch where you can duplicate items by grabbing them at the exact moment they disappear into a conveyor belt storage (from the Contraptions Workshop DLC) so that they end up both in your inventory and the storage. This is passably efficient if you've got a setup constantly cycling things back through conveyors and vacuum hoppers, but is more useful if you need or want to avoid console commands.
Jakewhistler Mar 16, 2017 @ 7:48pm 
So far what works is getting the ref ID with getplayergrabbedref and then prid (ref) then spawndupe for as many copies as I want. How do you run a batch file inside the Fo4 console?
Gropax Mar 16, 2017 @ 8:06pm 
with an 11 cha i have and the 34 settlements that means i would have to have 724 weapons and 724 sets of armor. hell no i am not going to outfit all of them now there is an easy way to get them guns just give them 1 ammo of each type and then stick in the workshop what ever weapons you come across in your travels. now next time they are attacked they will go grab the best weapon they can use. i know with text files you can give settlers weapons and armor i saw a guy on youtube do it.
Zee_ Mar 16, 2017 @ 8:43pm 
Easiest way is with .bat files. You can set up outfits, save em in a text file, then use the files in game by opening the console and using the command BAT [name of the file here].

Its explained pretty well here. https://www.youtube.com/watch?v=wkbaW0MjIDU

You can set up different bat files for different outfits and weapon combinations, which is why you need to name them something simple and easy to remember.
Last edited by Zee_; Mar 16, 2017 @ 8:46pm
DouglasGrave Mar 16, 2017 @ 8:52pm 
Originally posted by Zee_:
Easiest way is with .bat files. You can set up outfits, save em in a text file, turn them into a .bat file, then run the .bat files in game by opening the console and using the command BAT [name of the .bat file here].

Its explained pretty well here. https://www.youtube.com/watch?v=wkbaW0MjIDU

You can set up different bat files for different outfits and weapon combinations, which is why you need to name them something simple and easy to remember.
It's certainly quicker to have the batch (.BAT) file run its batch of commands directly on the settler, but, offhand, I can't think of how you'd include upgraded and named armour in that.
Jakewhistler Mar 16, 2017 @ 9:02pm 
@DouglasGrave Thanks so much!! I batch-duplicated the rifles with just a couple of easy manual steps, the downside being that they spawned through to the floor below me and all over the place, as these games do. Next time I'll build walls around myself in Vault 88 or something.
@Gropax Thank you for your advice, but really I've sort of dedicated myself to trying to do this too much to stop now, in a way that says "Let's see how fast this thing can go!" XD
Jakewhistler Mar 16, 2017 @ 9:03pm 
@Zee_ I'll watch that video in a bit, thanks for pointing it out to me. :)
Jakewhistler Mar 18, 2017 @ 4:39am 
@Zee_ I've outfited all my settlers, it took me a while.... I wish I had gone and watched that video first. :D
Jakewhistler Mar 18, 2017 @ 4:47am 
UPDATE: So I've managed to duplicate everything I needed to and get my settlers outfitted. What works for me (mostly) is grabbing the item in question and using getplayergrabbedref and then using prid <ref ID> then spawndupe for the desired number of copies. I have a batch file that gives me 100 copies, just 100 lines of "spawndupe". The problem with this is that items will land clipped through walls and floors. I sometimes didn't retreive all 100 of every item because I couldn't find them. (Dogmeat was no help here either.) I even enclosed myself in a 3x3 room in Vault 88 with no doors or windows, and things still went missing. It seems worth noting that items will spawn in the direction you are facing when you open the console. I was looking primarily down, having just grabbed an item off the floor, so spawned items sort of shot at the floor and then spread out from there, and if they slid into a wall they might mostly clip it making that one piece hard or impossible to get to if you can find it. But overall I think this was a success.
Thank you Everyone for all your help! :)
The Courier Mar 18, 2017 @ 5:17am 
Originally posted by Jakewhistler:
I want to equip all of my settlers with combat armor and a decent weapon. I just upgraded and renamed 50 combat armor helmets, and I really don't want to go through that again! (Plus, I counted on the map it seems the number is closer to 90 that I'll need...) Is there a way to get the base ID of a player modified item? Or is there a way to use a macro or something to do all of this relatively unattended? I'm giving everyone Heavy Combat Armor and a weapon to be decided later. A t-shirt and a pipe pistol just won't cut it.
I know I'm late, but.


http://www.nexusmods.com/fallout4/mods/13285
Jakewhistler Mar 18, 2017 @ 12:27pm 
From the list it looks like it does a lot of things that the console already does, plus some other tricks. Right now though I'm trying to get mods to run without that pesky "mod flag". >.<
Zee_ Mar 18, 2017 @ 2:40pm 
Originally posted by Jakewhistler:
From the list it looks like it does a lot of things that the console already does, plus some other tricks. Right now though I'm trying to get mods to run without that pesky "mod flag". >.<

Theres a mod for that! (I had to say it that way, cause mods that fixes mods so you can get rid of the mod flag is the best thing ever)

If you run the game with F4SE you can use this one. http://www.nexusmods.com/fallout4/mods/12465/

If you don't use F4SE you can use this one. http://www.nexusmods.com/fallout4/mods/15639/

Please make note of the non-script extender versions requirements and instructions, you must manually install it.
Jakewhistler Mar 18, 2017 @ 3:56pm 
I have that mod, and F4SE, but there's a comment on a thread there that mod-flagged saves won't change back. :( I need to look into that.
< >
Showing 1-13 of 13 comments
Per page: 1530 50

Date Posted: Mar 16, 2017 @ 7:37am
Posts: 13