Fixed
The problem was the missing response file and the simple way of packing.
Have the solution for the more complicated but working way here:
You have to follow the way mentioned on the developer page of valve
https://developer.valvesoftware.com/wiki/Vpk.
Scroll down down and down, an example of that file will be there under
Response File.
After installing
phyton i edited the pythonscript for my needs.
In this script the file endings which have to be packed are in. As well the path to
the vpk.exe. In my case the path to the bin folder in "Source SDK Base 2013 Singleplayer".
- Code: Select all
# User settings (don't use the \ character)
target_folders = [ "materials", "models", "scenes", "sound" ]
file_types = [ "vmt", "vtf", "mdl", "phy", "vtx", "vvd", "pcf", "vcd", "wav" ]
vpk_path = "C:/Program Files (x86)/Steam/SteamApps/common/Source SDK Base 2013 Singleplayer/bin/vpk.exe"
# Script begins
import os,subprocess
from os.path import join
response_path = join(os.getcwd(),"vpk_list.txt")
out = open(response_path,'w')
len_cd = len(os.getcwd()) + 1
for user_folder in target_folders:
for root, dirs, files in os.walk(join(os.getcwd(),user_folder)):
for file in files:
if len(file_types) and file.rsplit(".")[-1] in file_types:
out.write(os.path.join(root[len_cd:].replace("/","\\"),file) + "\n")
out.close()
subprocess.call([vpk_path, "-M", "a", "pak01", "@" + response_path])
I added the folder "sound" and the ending "wav" in this script.
The ending ".py" was added and the edited script was placed in the mod folder.
After doubleclicking and executing that file automatically the content of that folders
were packed and a "response file" named "vpk_list.txt" were added.
In this list all names of the files added to the vpk are enlisted. The resulting vpak files were than named as
pak01_000.vpk
pak01_001.vpk
pak01_002.vpk
... and so on. Additionally a pak01_dir.vpk were added. It contains the path informations.
If you like to extract files from the .vpk files, you may open this _dir.vpk file with GCFScape.
Last Step: Editing the gameinfo.txt and adding the path to the vpk files:
- Code: Select all
// This lines are added by peegee for vpk regognition
game+mod |gameinfo_path|pak01.vpk
It will find the vpk files, the _000 etc is not necessary.
Than I removed the original files, except of the "materials/vgui" folder.
That's it. So lucky 2013 ends with a solved problem.