MGSV Modding Wiki

View My GitHub Profile

Adding "pack small" files to an custom map

Categories:FoxKit

Contents Contents:
  1. Requirements
  2. Making the game load the pack_small files
  3. 2 - Adding the pack small files

Requirements

Making the game load the pack_small files

First thing you want to do is download the required files from the GitHub Repo

After downloading open the .zip with WinRAR, if you use the default files explorer it will take ages to open

When you open that file, you will see 3 folders and 2 GitHub files, the GitHub files are useless, extract ONLY expl_fpk and expl_fpkd on your map folder, in this case its Assets\tpp\pack\location\expl. (expl stands for your 4 map letters)

keep the WinRAR window open, the “pack_small” is for later

Should look like something like this:

Now rename both folders, remove the “expl” and replace by your map 4 letters, in this example it will be “aaaa”, select the 2 folders and use

You can use Bulk Rename Utility to do that,

Windows 11: select the 2 folders and right click -> show more options –> Bulk rename here Windows 10: select the 2 folders and right click –> Bulk rename here

Now, the program should open with those 2 folders selected,

Next you want to check the option “Subfolder” on Filters(12), after that, all files and folders inside those 2 folder are going to appear on the tree window (where the green circle is on the image above), now you have to select either all files (shift click 1st and last entry) or select only those that contain “expl” on the name, they are 6 to be precise, after you selected them, got to the area 3, called “Replace” On the “Replace” textbox, write expl and on the “with” textbox write your 4 map letters, in this example they are “aaaa” Was you can see, the names are going to be different, the expl is now the 4 letters that you placed on the “with” textbox, all you have to do now is confirm that all “expl” are renamed, if yes, press “rename”

You should get the confirmation that all files were renamed and an “OK” will appear on front of the files renamed at the tree window. The folder should now look something like this

Inside the fpkd folder there is a file called (4mapletters)_stage.fox2, open that file with Foxtool and edit the xml, on lines 60 and 63 you need to change “expl” to your map 4 letters Same was to be done on Line 148, replace expl_common_packages.fstb with (4mapletters)_common_packages.fstb and the expl folder too

After editing the xml, delete the original fox2 and drop the xml on Foxtool to generate the new one.

Now the last step is editing the fstb file, for this you are going to need an Hexadecimal editor, HxD can do it fine. Open your hexadecimal editor and drag the fstb to there, after that you should be looking at something like this:

Now Open an empty text file on notepad, while editing hexadecimal files you need to be cautious, one space or character on wrong place and all thing wont work. Select all the text after “expl” except the last “.” and copy it to the empty notepad text

It should be done like this example here, the “.” must remain unchanged. Now on the notepad file, change the “expl” folder to your map 4 letters and the “expl_common.fpk” to your map pack common folder name. in my example the folder will be called aaaa and the pack folder aaaa_common.fpk

carefully copy the changed text on notepad and paste it on the right place, 1st delete the text you copied

and then paste the text on notepad, right behind the “.”, it should look like this

after making sure the file is ok, save it and close the hxd app, you can delete the backup file created by the HxD after that.

2 - Adding the pack small files

Now comes the most time consuming part, adding the actual pack small files, open the .zip with winrar again and extract the “pack_small” folder to the same folder were pack common and the previously copied fpk/fpkd are. be warned, there is 8,192 Files and 53,312 Folders, its going to take a while, mainly on HDDs. After that operation finishes you should have your map folder looking like this:

That is good, but its not over yet snake! You still need to rename all the folders and .fox2 from “expl” to your map 4 letters, to do that you have to use bulk rename utility.

Open the pack_small folder and select all 64 folder inside (you can select the 1st and then shift click the last folder to select all of the 64 folders at once), then press Bulk rename here option was done before, while on the app, select the Filter “Subfolder” and wait, the app will take some time to map and read all of the stuff inside. The total of objects should be 61504. Select all folders by right clicking on the 1st entry, use the scroll bar to go to the end and shift + right click on the last and they should all get selected, it will take a while for the app to select them all

After you selected them all, go to the replace area and on the “replace” textbox with “UNSA” and the “with” textbox with your map 4 letters, in this example it is “aaaa”. The app will freeze while preparing to change the names. After that check if the new names are fine, if they are press “rename”

Renaming will take some time to be done. After its completed your map pack_small files should be working fine.