Day of Infamy

Day of Infamy

Not enough ratings
How to compile large vpk files using CMD
By KimchiSmash
If you are creating a mod that's bigger than 250mb, chances are, you won't be able to compile it by drag and dropping your folder onto the vpk.exe. You could go about manually dividing your content into multiple parts and use the above method several times and upload them as multiple parts in workshop. That's not ideal as you might have experienced or imagined.

Here I will show you how to compile a mod (vpk file) in any size, with cmd.
   
Award
Favorite
Favorited
Unfavorite
Here's how:
1. Windows Key>CMD>Enter (launch cmd)

2. Change directory to the drive where your mod folder is sitting in, so in CMD, in my case it's in E:\Modding. So type in:
E: (Enter)
cd modding (Enter)
Now your cmd directory is in the exact folder where your mod files are in.

3. Copy the path of the vpk.exe in the DOI folder)
D:\SteamLibraryPlus\steamapps\Common\dayofinfamy\bin\vpk.exe

4. Add to the above:
space
-M
space
The folder name of your mod

5. So eventually, your final command in cmd should look something like below:
D:\SteamLibraryPlus\steamapps\Common\dayofinfamy\bin\vpk.exe -M Soundmod123

6. Hit enter, let it compress. You will get a few vpk files. Using the above example, they should look like Soundmod123_001.vpk, Soundmod123_002.vpk, Soundmod123_003.vpk...Soundmod123_dir.vpk

7. When done, open DOI, create your mod item, upload the one named (using the above sample): Soundmod123_dir.vpk, steam will automatically create this mod item with all the parts.

8. Modding addiction starts..

47 Comments
Funtime Gabe Feb 7 @ 6:17pm 
i changed a few things about the portal gun, portals, and recital, but i cant put the files into a .vpk file, the zip version of the pak01_dir was over 4 million kb for some reason, i dont think this will help unless i can change the size of how it can do...
Kost Jun 4, 2024 @ 9:53am 
Bro what the fuck when i type C: it just doesn't give a fuck and waits for another command
PuzzlePuddles passtime.tf May 20, 2024 @ 8:13am 
i'm stuck on finding files and creating temporary control file

"C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\vpk.exe" -M "C:\Program Files (x86)\Steam\steamapps\common\Team Fortress 2\bin\tf2miscdi"
Finding files and creating temporary control file...

is it doing something? because it's taking way too long, and btw my folder is 2.78 GB in size
G R λ V E S Apr 27, 2024 @ 8:54pm 
u are god.
CarlosFerZar Feb 26, 2024 @ 2:51pm 
Capeless hero!!! thank you so much
Бенито Хуйсосали Oct 27, 2023 @ 9:21am 
This is work but...
Anyone know how to select count of vpk files will created?
T_ufy Sep 21, 2023 @ 4:44pm 
Uh, help??

CDynamicFunction: Loading library 'Kernel32.dll' (75F00000)
CDynamicFunction: Lookup of 'TryEnterCriticalSection' in 'Kernel32.dll': 77150A30
Usage is:
vpk dirname
Creates a pack file named <dirname>.vpk located in the parent of the specified directory.
vpk x vpkfile filename1 filename2 ...
Extract file(s).
vpk a vpkfile filename1 filename2 ...
Add file(s).
vpk a vpkfile @filename
Add files listed in a response file.
vpk k vpkfile keyvalues_filename
Add files listed in a keyvalues control file.
vpk l vpkfile
List contents of VPK.
vpk L vpkfile
List contents (detailed) of VPK.
options =
-v Verbose.
-M Produce a multi-chunk pack file
CDynamicFunction: Closing library 'Kernel32.dll' (75F00000)
촤일드 Aug 26, 2023 @ 12:27pm 
vpk dirname
Creates a pack file named <dirname>.vpk located in the parent of the specified directory.
vpk x vpkfile filename1 filename2 ...
Extract file(s).
vpk a vpkfile filename1 filename2 ...
Add file(s).
vpk a vpkfile @filename
Add files listed in a response file.
vpk k vpkfile keyvalues_filename
Add files listed in a keyvalues control file.
vpk l vpkfile
List contents of VPK.
vpk L vpkfile
List contents (detailed) of VPK.
options =
-v Verbose.
-M Produce a multi-chunk pack file
CDynamicFunction: Closing library 'psapi.dll' (76860000)
CDynamicFunction: Closing library 'Kernel32.dll' (75F00000)

SAME
Raccoon_Guy Aug 2, 2023 @ 3:41pm 
Wow the timing of your comment was great I used quotations and it worked. If you're pasting in for example this which has spaces in the tf2 name
D:\SteamLibrary\steamapps\common\Team Fortress 2\bin\vpk.exe -M your mod name here
You need to put quotations around it like "D:\SteamLibrary\steamapps\common\Team Fortress 2\bin\vpk.exe" -M your mod name here
Magic00Squirrel Aug 2, 2023 @ 2:10pm 
Don't forget to use quotations if your file path includes folders with spaces in the name!