[Heroes of the Storm] [Gamepedia] Tutorial - Finding Heroes of the Storm Portraits Files
(Make sure to expand the description because there's a lot of important info here as well, all the commands and steps are here as well)
This is a power-user guide, be careful on what commands you run, I recommend you watching the entire thing first before doing anything. You may need Administrator privileges in order to be able to modify files on C:/. If you're not an administrator, try copying the files temporarily on a new folder, and change the cygwin commands to accommodate these new folder locations.
Here's the required programs:
* Cygwin: [https://cygwin.com/install.html (choose whether 32-bits or 64-bits installer, choose the one that fits your machine architecture, I'm using the 64-bits version). We will be using Cygwin in order to run Linux-based commands that helps finding DDS files for the portrait images, because this program is an emulator, it's most likely that this process may also be able to achieve by using a Linux machine;
* A program capable of opening and/or converting DDS files. We will be using '''ddsview''' by amnoid on this tutorial: http://www.amnoid.de/ddsview/download.html . This will be used to quick-review DDS images, and then save them as PNG files;
* InfranView: http://www.irfanview.com/download_sites.htm (32-bits) or http://www.irfanview.com/64bit.htm (64-bits), on the first link, I recommend download the one directly from their website, scroll down until you see "Alternative IrfanView download site (second click on the white page required):". This program will be used to split the portrait sheets (which in sheets, each portrait has 128x128 of size and there 6 portraits per row and column, being then 6x6);
* Optional: DupeGuru / DupeGuru Picture Edition - This program lets you find exact copies of the files and then mark them for deletion or move to older folders. This can useful for future updates of the game, for instance, after extracting the first batch of things and finding what you need, you can move them all to a folder, later on, when you want to find the new portraits from a recent update, you'll get the old ones again when running the Cygwin script, so you can use this program to eliminate all duplicate files and just see what's new. The Picture Edition has a system to detect similar images, but I recommend downloading the standard version because we will be dealing with exact match files (100% to 100%), so Picture Edition may not be recommended here, to avoid mistakes made by this version. Development for DupeGuru has ended for Windows, but it still works just fine for this tutorial: https://www.hardcoded.net/dupeguru/ (choose 32-bits or 64-bits).
What you need to do:
1) Open Heroes of the Storm, this is required because the portraits are downloaded when you open the game and so on, they aren't located in the game Installation folder, instead, they're downloaded from Blizzard's cache, I recommend checking the Portrait section on the Collection tab, just in case;
2) Follow the cygwin commands like in the video and how it's below.
Here's the scripts/codes I've used on the video:
In order:
1) cd /cygdrive/c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/
(This will open this folder, which will be the folder necessary to run the program on the second item);
2) for file in $(find . -type f); do if [ ! -z "$(grep DDS ${file})" ]; then cp -v ${file} FilesWithDDS/; fi; done
(This is the script that finds the Header DDS file, and copies any file with the word "DDS" to "FilesWithDDS" folder. You will also need to create it if you don't have it yet, this is case-sensitive);
3) cd /cygdrive/c/ProgramData/Blizzard\ Entertainment/Battle.net/Cache/FilesWithDDS/
(This will open the "FilesWithDDS" folder, make sure to not forget this one, don't make the same mistake as I did!);
4) for file in *; do mv $file "${file}.dds"; done
(This will add the ".dds" extension to all files in the folder).
After doing the cygwin process, you will need to do these extra steps:
1) Now you have only the new DDS files, open them with ddsview and keep pressing space to go to the next file. If you find a new portrait along the mix, press S, and save as PNG, organize if you feel like to;
2) Open the new PNG file with InfranView, and split the image as shown in the video;
3) Now you have the entire image sheet separated by 152x152 size (this is the maximum size, when playing the game on a higher resolution, the portraits are simply upscaled, so 152x152 are the true and maximum size that the server sends to you, sometimes, the Heroes of the Storm website may have higher resolution portrait images that comes from an Update or something, but the ones in game are all 152x152);
4) Have fun with them. You can use them as avatars (like Steam, Youtube, etc), you can use this to help the Heroes of the Storm Wiki Gamepedia or for your website, and so on. Just a heads up, Blizzard owns these images, so, don't make anything risky.
Other Videos By Gabrielwoj
Other Statistics
Heroes of the Storm Statistics For Gabrielwoj
Gabrielwoj presently has 125 views for Heroes of the Storm across 1 video, and less than an hour worth of Heroes of the Storm videos were uploaded to his channel. This makes up less than 0.11% of the total overall content on Gabrielwoj's YouTube channel.