Fallout 4

Fallout 4

31 ratings
Batch Files Tutorial
By Apsidal Crab
This guide will show you how to create and use batch files in Fallout 4, as well as show some examples of what you can do with them.

This is currently a work in progress and I will be adding more examples and showing you how to do other things later on.
   
Award
Favorite
Favorited
Unfavorite
What are Batch files?
Batch files are basically text files you can create that will have a list of console commands that you can run. This is useful if you don't want to type each individual code over and over or if you want to make some simple mods.
Getting Started
Before you start making batch files I recommend backing up your saves, just in case.

To make a batch file, first create a text file using notepad or something similar. Then save the text file in your Fallout 4 directory, mine is "C:/Program Files/Steam/Steamapps/Common/Fallout4/" your one might be different.

This is an example of something you could put in a batch file:

//My First Batch File player.setlevel 40 player.additem f 700 player.additem a 12 player.additem 00023431 1

Running this batch file will set your level to 40, give you 700 caps, 12 lockpicks and army fatigues. The part that says "//My First Batch File" is a comment, and the game will ignore it.

Then you would load up your save, open console and type "bat [FILE]" [FILE] being whatever you named your batch file.

Example: If I named the batch file "test" I would open console and type "bat test" (without quotes) and it would run whatever code I put in it.

If you want a list of codes and commands, check out this guide I made, or you can go to the wiki and learn more about console commands here[fallout.wikia.com]
Example: Completing the first 2 acts
//Act 1 completequest 00655649 completequest 0001c22a completequest 001a001c completequest 000229e5 completequest 0001f25e completequest 000229e6 completequest 000229e7 //Act 2 completequest 000229e9 completequest 000229ea completequest 0006b500 completequest 000229eb completequest 000b1752

Running this code will complete the first 2 acts of the game.
Example: Become a tall nuclear god
tgm setgs fJumpHeightMin 2000 setscale 5 player.additem 000BD56F 1 player.additem 000E6B2E 50 player.modav strength 10 player.modav perception 10 player.modav endurance 10 player.modav charisma 10 player.modav intelligence 10 player.modav agility 10 player.modav luck 10

This will increase your jump height to 2000, set your scale to 5, give you a fat man and 50 mini nukes and max out your SPECIAL
11 Comments
puckman637 16 Feb, 2023 @ 4:10pm 
So I have a small problem. I don’t have a fallout folder inside of steam apps/common/fallout. Any suggestions?
P. 17 Feb, 2021 @ 3:32am 
Testing in the current game version, I found out that the batch file should go in the data folder, and its extension should be ".txt".
mr Green 2 Sep, 2016 @ 10:42pm 
found the issue, most crafting components changed from a 5 letter/number combination to one with 6 ..
Apsidal Crab  [author] 2 Sep, 2016 @ 6:50pm 
@mr green Sorry, I have no idea. Your batch file seems fine, so the patch must have broken something. Hopefully a new patch will be released soon to fix it.
mr Green 2 Sep, 2016 @ 1:13pm 
quick question, i am using a bat file to add some craft components, but for some reason, my entire game freezes when i use it, after today's patch. do you know if something important has changed? screenshot of my batch file > http://puu.sh/qXIBZ/401020be98.png
willmiller3 22 Mar, 2016 @ 4:46am 
Nevermind found the error put in wrong file. facepalm :steamfacepalm:
willmiller3 22 Mar, 2016 @ 4:41am 
Altering the permissions did nothing wondering where I went wrong
willmiller3 22 Mar, 2016 @ 4:37am 
I followed what you suggested to the letter but for some reason I am not able to ge this to work I have saved the files to "C:/Program Files/Steam/Steamapps/Common/Fallout4/". I am saving them as text files I have tried altering the permissions to see if that is the issue I have not tried it yet
Kahn 21 Dec, 2015 @ 7:26pm 
Oh nice! Thanks for the guide! :3
Apsidal Crab  [author] 21 Dec, 2015 @ 4:12pm 
Yeah, you can have as many as you want