Bat file installer for Fallout 4 - Texture Optimization Project by torcher by Shambles1980
Fallout 4 » Utilities
Added: 19/05/2017 - 07:47PM
Updated: 23/06/2017 - 09:24PM

72 Endorsements

1.0.2 Latest version

829 Unique D/Ls

1,047 Total D/Ls

9,853 Total Views

Uploaded by ShambleS1980


Last updated at 21:24, 23 Jun 2017 Uploaded at 19:47, 19 May 2017

1.0.2 is now uploaded.
it does everything that was previously done, but also now.
Sets folder permissions for the data folder and sets file atributes for BA2 files to read and write..
this should fix any issues people had with "permission denied"
(all changes are added to the change log on this web site, so you can check the changes tab above to see all the changes)

If you are unable to run the bat file. or have to run it in admin mode then something is not quite right as it needs no elivated provilages. 
Some people have reported this to be the case so please read this:

Windows has security features in place so the 1st thing it can do that may cause an issue is to block apps that came from a diferent computer.
You can check this by right clicking the bat file then going to properties. if you see an un-block option in the bottomr right corener.. then that is probably your issue.. just unblock it and run it normaly. do not run it as an administrator..

The reason i say do not run as an admin is because of the second windows issue..
UAC will not allow an elevated bat file to interact with a non elvated app "explorer.exe is not elivated" this means at the very least you cannot drag and drop the folders to get the locations. at the worst it would mean that apps that need to run to do the work will also be unable to function proerly..

So Do not run as an admin, and do un-block the bat.. if you cannot unblock the bat then scrll down and find the code from the bat file in this description and copy and past it in to a text file and save it as a bat file..

Aditional notes:
Some people have had to change the permisiions on the fallout 4 data folder to allow read and write access.
I have now added this functionality as default behaviour to the bat file. i have also added atribute flags of -r to the ba2 files so they are read and write enabled. V1.0.2

Some people have also commented that their anti virus application prevents this bat file (or some tool that it uses) from running properly.
there is Nothing i can do about that only advise that you disable your antivirus whilst you are running the process if you have any isues wth it.

as some one requested i added a new choice variable to the bat file that allowed independant optimisation of files 7 and 8.ba2 i have now re worked the options section. you now get an option to optimise 7 and 8.bat even if you chose NOT to optimise vanila files.. (usefull if you optimized vanilla files already and chose not to do 7 and 8, but later decide that you needed to optimise 7 and 8)
That should be about it. Its as optimised as possible now, variables that i had not conciderd but were requested are now added. and folder and file permissions are taken care of.

i also noticed that i had missed a "\" in the previous versions so "DLCrobot" was not geting backed up, this has now been fixed.

-=bat file creation if needed=-

if you do not know how to save a file as a bat file please read the contents of this spoiler:


This bat file HAS to be placed in your fallout 4 DATA folder

Please skip down to Needed files section if this is all the info you needed.

V1.0.1a Video

(re-made the video showing the whole process showing exactly what to do, also showing the time started and time finished at the bottom.
V1.0.1.a Was written just to shave off Some time from the whole process. Right now, from start to finish. It takes approx 80mins to back up all the files and optimize all the files "vanilla + all the suported dlc") 'tested on a q6600 stock with 6gb of ram using a mechanical hard drive" faster systems may have better times. I think its mainly down to the hard disk rather than processor speed.


You need archive2 which you can get from bethesda as part of the fallout 4 creation kit You can get that HERE
you need to make a free account to login and download, and after installing you would usually  find the ARCHIVE2 folder in "C:\Program Files (x86)\Bethesda.net Launcher\Games\Tools\"

You also Need the origional mod found  HERE

After you download the mod extract it any where you like,
then run the bat file you downloaded from this page from your fallout 4 data folder. "please check you have enough free
space to back up files on the hard drive as you will get an option to back up." (i would allocate 22gb of freespace. 17.5gb for the backups. and then 5gb should be plenty of free space for the extraction and compression) you can skip the back up if you really feel comfortable in doing that, but if you do
end up with an error you will need to delete all the textures.ba2 files and then have steam validate install to re download them.. (and 17+gb isnt fun to download)

to prevent errors, you MUST have the bat file extracted to your fallout 4 DATA folder.

watch the video if needed the 1st minute or so will show you all you need to know. But the whole process is in the video condenced down to give a reasonable demo of what its like.

What it does

Its a bat file. and all it really does is ask you where all the folders needed for the origional mod to work are (just drag and drop). it asks which of the files you want to optimise are.
it then extracts a single ba2 file to a folder then it copies the correct optimised files to the same folder it extracted the ba2 file too, then recompresses those extracted files as a correctly named  ba2 file. it also moves that new ba2 file to your data folder.
It repeats this for all the ba2 files that can be optimised.
(it does all the steps people seem to struggle with to use the t.o.p mod properly.)
it also skips 2 of the vanilla texture ba2's because they were not added to t.o.p at the time of writing, but to future proof there is an option to optimise those as well (it wont hurt to optimise them whilst t.o.p does not support them it just takes more time for no benifit)

when its done all the texture files will have been optimised properly and be in the correct location.

it also asks you if you want to backs up your origional ba2 files, just incase you want to revert at any time.

Here is the full content of the bat for those who want to check what it does and how it does it.