Файлы vpk cs go что это
VPKs can be created with the command line tool vpk.exe .
The tool can be located in the bin folders for most Source games, such as the ones below. The tool is not game dependent, however it is suggested that you use the tool that corresponds to the game you are creating the vpk for. The version in one game may not be as up to date as the version in another due to game updates.
Game | Path to VPK.exe |
---|---|
Alien Swarm | C:\Program Files (x86)\Steam\SteamApps\common\Alien Swarm\bin |
Team Fortress 2 | C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\bin |
Left 4 Dead | C:\Program Files (x86)\Steam\SteamApps\common\Left 4 Dead\bin |
Counter-Strike: Source | C:\Program Files (x86)\Steam\SteamApps\common\Counter-Strike Source\bin |
Source SDK Base 2013 | C:\Program Files (x86)\Steam\SteamApps\common\Source SDK Base 2013\\bin |
Counter-Strike: Global Offensive | C:\Program Files (x86)\Steam\SteamApps\common\Counter-Strike Global Offensive\bin |
Portal 2 | C:\Program Files (x86)\Steam\steamapps\common\Portal 2\bin |
Bug: For some reason sometimes when vpk.exe is used to extract vpk's it gives empty folders, Portal's vpk.exe
(C:\Program Files (x86)\Steam\steamapps\common\Portal\bin) seems to extract the files fine
(there might be a corruption when used since it is a diffrent version).
For servers installed using SteamCMD, it is located in the server's bin\ directory. On Linux, it is named vpk_linux32 instead of vpk.exe.
В папке csgo ищем файл «pak01_000.vpk» и удаляем
Options
Tip: Please note the case of these options. A capital letter is different than a lowercase letter.
Note: Required if creating a VPK with key values.
- Each chunk is a file limited to around 200MB.
- To reduce patch sizes, chunks are never overwritten. New/modified files are instead written to a brand new chunk every time you run the tool.
Note: Multi-chunk generations only works when creating a VPK from a response file.
Tip: To inspect a multi-chunk VPK open the '_dir' file.
Listed below are some examples of using the tool and what they will do.
Directory
Header
VPK 1
Originally, the VPK file had no header or identifier. This changed when the June 25, 2009 Left 4 Dead update was released adding support for third party campaigns. VPK directory files created after this date have the following header:
If the file data is stored in the same file as the directory, its offset is (sizeof(VPKHeader_v1) + TreeLength) .
VPK 2
If the file data is stored in the same file as the directory, its offset is (sizeof(VPKHeader_v2) + TreeLength) .
The format of the directory tree is a little unorthodox. It consists of a tree three levels deep that seems to be structured for file size. The first level of the tree consists of file extensions (e.g. vmt, vtf and mdl), the second level consists of directory paths (e.g. materials/brick, materials/decals/asphalt and models/infected), and the third level consists of file names, file information and preload data. Each tree node begins with a null terminated ASCII string and empty strings are used to signify the end of a parent node. Pseudo-code to read the directory might look something like:
A nonexistent extension (in example/file), path (in example.txt), or filename is represented by a single space.
If a file contains preload data, the preload data immediately follows the above structure. The entire size of a file is PreloadBytes + EntryLength.
Footer
VPK2 adds a footer section that contains extra CRC data for pure mode "so the dedicated servers do not need to compute them at startup but can be checked with the command sv_pure_checkvpk ".
VPK 2 Sections
File data
This can be read like a separate VPK archive embedded in the directory file (see EntryOffset comment in VPKDirectoryEntry).
Archive MD5 checksums
This section is an array of these:
Since sizeof(VPK_MD5SectionEntry) is 28, the section size must be a multiple of 28.
Valve's VPK tool refers to these as cache line hashes. They can be checked against the file content with the checkhash command.
Other MD5 checksums
Public Key & Signature
This section can be viewed with Valve's VPK tool's dumpsig command.
Games with this section (296 bytes):
Games lacking this section:
All VPKs tested were from the English Language
Versions
1 Alien Swarm Dota 2 Left 4 Dead Left 4 Dead 2 Portal 2 Source Filmmaker 2 Counter-Strike: Global Offensive Counter-Strike: Source Day of Defeat: Source Half-Life: Source Half-Life 2 Half-Life 2: Deathmatch Portal Team Fortress 2
Usage
Display VPK Info
Windows
On Windows, you can easily drag-and-drop folders onto vpk.exe file in the bin folder and get a *.vpk file in return, and vice-versa by drag-and-dropping a *.vpk file instead.
Tip: Some users may find it easier to create a shortcut (*.lnk) linked to vpk.exe as it can be placed anywhere, like a folder that you often are packaging files from, making packaging folders into vpk's and vice-versa quicker and easier than having to return to the bin folder to do so. A good example of this is the custom folder, where placing a shortcut there could make debugging of custom vpk files much quicker.
В открытом окне переходим в папку «csgo»
VPK Integrity/Security
vpk generate_keypair
Note: Remember: your private key should be kept private.
Локализация
- Обновлены файлы локализации для португальского (Бразилия), болгарского, чешского, датского, голландского, финского, французского, немецкого, греческого, венгерского, итальянского, японского, корейского, испанского (Латинская Америка), норвежского, польского, португальского, румынского, русского, шведского, тайского , турецкого, украинского и вьетнамского языков
Linux / Unix
Note: The vpk binary makes VPK files of version 2.0, which are not compatible with games like Left 4 Dead 2 that use an older version of the VPK format (in fact Left 4 Dead 2 will not even start if it detects an unsupported vpk). There is a Python package that can be installed with
which supports the older format. It is also far more convenient than using the built-in tool. Instructions can be found on the Github page.
On Linux / Unix clients, the vpk file can be found replacing " C:\Program Files (x86)\Steam\SteamApps\common " for " ~/.steam/steam/SteamApps/common/ ". However, it is named vpk_linux32 instead of vpk.exe . Note: If you installed Steam via Flatpak, the path is slightly different. Look in ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common
Alternatively, if you're running 64-bit Linux, you can use this script to execute the vpk_linux32 binary successfully. Save this script to " /usr/local/bin/vpk " and set it as an executable in the file's properties, for ease of use:
HELPFUL NOTE: The " $ " is for drag-and-drop with *.desktop files and arguments when using the vpk command via console.
Затем переходим обратно в «Библиотеку» нажимаем правой кнопкой мыши на csgo, выбираем «Свойства»
Conception
Prior to Left 4 Dead , typical Source engine games stored their content in GCF files. Executable files, modifiable files (e.g. configuration files) and custom content were copied and stored locally on the user's hard drive. Possibly brought on by poor performance, the NCF file format was introduced and all game content was copied entirely to the hard drive. This, however, introduced a new problem. Source engine materials and models are stored in thousands of small files and it would be expensive to continuously open and close these files. The solution was the conception of the VPK file format which is used to store Left 4 Dead materials, models and particles in a handful of files which can be quickly accessed.
Обновление файлов
Contents
Creating A Key Value File and VPK
1. Create a folder with the correct directory structure and files that you wish to use such as mymod/resource/ui/
Warning: Never disclose or share your private key vdf or the key. Only share the public key.
- You must distribute your mod with both the mymod_dir and mymod_000 vpks for the keyvalue to work.
A "response file" contains a list of files to be added to a VPK. Paths are relative to the current directory of the vpk tool.
Below is a Python script which generates a response file and then builds a multi-chunk VPK. Put it in your mod folder. You will need to edit the three variables at the top.
To handle this process for portal 2 you can also use the P2 Multichunk Tool, to automate the response file creation and the creation of the vpk files.
Warning: The tool will probably work for other games aside portal 2 if you change the .vpk path accordingly, I have expanded it's functions to make it easier to experiment, but, since I haven't tested outside portal 2 I can't 100% guarantee it will work with other games, feel free to test it, and please let me know if it works.
The VPK file format is a package format used by post-GCF Source engine games to store content.
Extract Files
Note: This is invoked when a .VPK file is dragged onto the VPK tool.
Multiple Archives
Previous Source engine games that had been distributed by the more advanced GCF file format had the luxury of internally fragmenting new and updated files. This meant that new and updated files could be efficiently downloaded and saved with minimal bandwidth and disk IO. Because the new VPK files are independent of distribution (Left 4 Dead is distributed by NCF files and Steam knows nothing of the VPK file format), their content is split up over multiple archives that seem to be limited to about 32 MB in size. Because of this, when a file in a specific file is updated, only the VPK archive that contains the file needs to be updated. Additionally, new files can be downloaded to their own individual archives. This is why most of the newer archives are small in size; their contents are limited the the files added in a single update.
Разное
Example
Заходим во вкладку «локальные файлы» и нажимаем кнопку «Проверить целостность игровых файлов»
О чудо, ошибка устранена!
Если все же Вам не удалось устранить ошибку данным способом, расскажите какой способ использовали вы в комментариях ниже.
Preload Data
In order to efficiently access small or critical files, the beginning of each file can optionally be stored in the VPK directory. In practice, this seems to be limited to the first 1000 bytes of Source engine materials (VMT files) which are typically only a few hundred bytes in size.
Notes
Valve uses nulls to signify if skipping is used. On a normal entry, it uses 2 nulls, and is followed by the format above. However, there are cases where there are only one, or no nulls at the start, and this means that some level of skipping is used.
If there are 2 nulls, no skipping is used, and the extension, path, and name are read as usual. If there is 1 null, the extension is skipped (It's the same extension as the last read entry), and then the path and name are read as usual. If there are no nulls, the extension and path are the same as the last entry (Skipped), and only the name is read.
В предыдущих версиях клиента Steam использовался в единственном экземпляре — ClienRegistry.blob.
Имеет четкую структуру в виде дерева и читается рекурсивно до исчерпания дочерних элементов. Отдельных заголовков не имеет — сразу идет корневой узел, имеющий минимум 1 потомка. Формат несколько нелинейный, о чем укажу далее.
Заголовок узла
Каждый узел имеет 2 заголовка — заголовок самого узла и заголовок данных узла.
Формат заголовка узла:
- 0x5001 — простой узел с дочерними узлами;
- 0x4301 — сжатый узел, необходимо пройтись по данным в нем deflate'ом и считать заголовки полученных данных заново (вот она, нелинейность!);
- прочие значения (обычно 0x0000) — именованный узел, содержащий потомков.
Заголовок сжатых данных
Если узел был сжат, то после заголовка узла следует заголовок сжатых данных:
UncompressedSize — размер «сырых» данных, под которые необходимо будет выделить память;
unknown1, unknown2 — назначение неизвестно, всегда равно 0x00000001, на парсинг не влияют.
Как и писалось выше, для данных, полученных после вызова uncompress из ZLib'а, следует повторно считать заголовок узла.
Разбор данных
После чтения заголовка узла и, по необходимости, распаковки его содержимого, наступает самая «веселая» часть — чтение содержимого узла. Алгоритм был максимально оптимизирован, из-за чего разобраться в нем по прошествии такого промежутка времени оказалось не так-то и просто.
Разбор данных зависит от поля TBLOBNodeHeader.Magic — если оно равно 0x5001, то сразу читаем узлы-потомки.
В противном случае читаем заголовок TBLOBDataHeader
- Если 0x5001 или 0x4301 — читаем новый узел;
- В противном случае — сохраняем как просто данные.
CDR (Content Description Record)
- 0 — версия файла (число, 16 бит);
- 1 — записи приложений;
- 2 — описание пакетов приложений;
- 3, 4 — назначение так и не определено, поэтому просто игнорируются;
- 5 — публичный ключи приложений;
- 6 — зашифрованные приватные ключи.
Много ну очень скучных и длинных перечислений, можно даже не читать. Назначение части полей неясно до сих пор.
Записи приложений
- 1 — ID приложения;
- 2 — Название приложения;
- 3 — Каталог приложения;
- 4 — Минимальный размер файла кэша;
- 5 — Максимальный размер файла кэша;
- 6 — Содержит список параметров запуска;
- 7 — Содержит список иконок приложения;
- 8 — ID приложения. которое необходимо запустить при первом запуске;
- 9 — флаг Is Bandwidth Greedy;
- 10 — Список версий приложения;
- 11 — ID текущей версии приложения;
- 12 — Список файлов кэша приложения;
- 13 — Номер тестовой версии;
- 14 — Дополнительные поля в виде списка пар «имя-значение»;
- 15 — пароль тестовой версии;
- 16 — ID тестовой версии;
- 17 — Оригинальная папка игры;
- 18 — Флаг SkipMFPOverwrite;
- 19 — Флаг UseFilesystemDvr.
- 1 — Описание;
- 2 — Параметры командной строки;
- 3 — Номер иконки;
- 4 — Флаг, отвечающий за отсутствие ярлыка на рабочем столе;
- 5 — Флаг, отвечающий за отсутствие ярлыка в меню «Пуск»;
- 6 — Флаг Long Running Unattended.
- 1 — Описание версии;
- 2 — Номер версии;
- 3 — Флаг, отвечающий за недоступность приложения данной версии;
- 4 — Список ID параметров запуска для данной версии;
- 5 — Ключ дешифрования для контента;
- 6 — Флаг, указывающий наличие ключа дешифрования;
- 7 — Флаг IsRebased;
- 8 — Флаг IsLongVersionRoll.
- 1 — ID файла кэша;
- 2 — Имя монтируемого файла кэша;
- 3 — Флаг, отвечающий за необязательность данного файла кэша.
Описание пакетов приложений
1 — ID пакета;
2 — Имя пакета;
3 — Тип пакета;
4 — Цена в центах;
5 — Какой-то там период в минутах;
6 — Список ID приложений данного пакета;
7 — ID запускаемого приложения (WTF?);
8 — Флаг OnSubscribeRunLaunchOptionIndex;
9 — Список RateLimitRecord;
10 — Список Discounts;
11 — Флаг предзаказа;
12 — Флаг, указывающий требование наличия физического адреса покупателя;
13 — Внутренняя цена в центах;
14 — Международная цена в центах;
15 — Тип требуемого ключа;
16 — Флаг, указывающий что данный пакет только для киберкафе;
17 — Некий игровой код;
18 — Описание этого кода;
19 — Флаг недоступности пакета;
20 — Флаг требования диска с игрой;
21 — Код территории. на которой эта игра доступна;
22 — Флаг, указывающий на то, что пакет доступен в 3-ей версии;
23 — Дополнительные поля в виде списка пар «имя-значение».
VDF
В файлах данного формата хранятся настройки клиента, а в нынешних версиях — еще и информация о приложениях. Может быть как двоичным, так и текстовым файлом.
Как и BLOB имеет древовидную структуру.
Рассмотрим бинарный файл. Есть несколько типов файлов, отличающихся структурой и заголовками, но формат узлов у них одинаковый.
- 0 — содержит только подузлы;
- 1 — строковые данные;
- 2 — целое число;
- 3 — дробное число;
- 4 — указатель (на что??);
- 5 — Unicode-строка;
- 6 — цвет;
- 7 — целое 64-битное число;
- 8 — маркер конца списка узлов.
Рассмотрим основные бинарные файлы, использующие бинарный вариант формата VDF.
appcache/appinfo.vdf
Сперва идет заголовок со следующим содержимым:
Поля version1 и version2 ранее рассматривались как часть сигнатуры, но со временем и они изменились — раньше они были равны 0x24 и 0x06, теперь равны 0x26 и 0x07 соответственно.
Поле type является сигнатурой и содержит 0x4456 ('DV').
Поле version3 всегда содержит 0x00000001.
После заголовка идет список с информацией о приложении, каждый элемент которого имеет свой заголовок:
После заголовка следует список параметров-узлов, содержащих 1 байт метки конца списка (0х00, если конец) и элемент VDF-дерева.
appcache/packageinfo.vdf
- version1 и version2 ранее содержали 0x25 и 0x06, теперь — 0x27 и 0x06;
- type — 0x5556 ('UV').
PAK
Устаревший формат архивов, используемый в первых версиях Half-Life 1. Никакого сжатия, это просто контейнер для файлов.
Заголовок файла:
Sign — сигнатура, содержит 'PACK'.
DirectoryOffset — смещение начала списка элементов.
DirectoryLength — размер списка элементов.
По указанному смещению находится массив заголовков элементов, содержащихся в архиве:
Думаю, тут ничего описывать не надо, всё и так понятно.
VPK
Формат архивов игровых файлов, представленный в виде набора файлов, один из которых содержит описание расположения файлов, а остальные содержат непосредственно сами файлы. Корневой файл имеет имя вида "_dir.vpk", а остальные — "_.vpk".
Рассмотрим структуру корневого файла, начинающуюся со следующего заголовка:
Signature — всегда содержит 0x55aa1234.
PaksCount — количество архивов с содержимым файлов;
DirSize — размер данных с мета-информацией о файлах.
После заголовка следует иерархический список с элементами. Причем структура списка упорядочена по расширениям файлов и пути к ним.
То есть сперва идет NULL-terminated строка с расширением файла, потом NULL-terminated строка с путем, где такие файлы есть, после чего следует NULL-terminated строка имя файла (без расширения) с информацией о файле. Концом каждого уровня списка является пустая строка.
bsp
hl2/maps
map1
map2
map3
wav
sound/amb
amb1
amb2
sound/voice
voice1
voice2
Формат информации о файле:
CRC — контрольная сумма файла;
PreloadBytes — размер данных в начале файла, содержащихся в корневом файле после данной структуры;
ArchiveIndex — номер архива с данными файлами;
EntryOffset — смещение данных внутри архива;
EntryLength — размер данных.
Заключение
Сегодня ночью вышло небольшое обновление CS:GO от 13.05.2022. Разработчики обновили эффект блеска стикеров, а также исправили наклейки и логотип команды Spirit. Детали внутри статьи.
Сегодня ночью вышло небольшое обновление CS:GO от 13.05.2022 (по времени VALVE апдейт от 12 мая 2022 года). Разработчики обновили эффект блеска стикеров, а также исправили наклейки и логотип команды Spirit. Подробности ниже.
File Format
A VPK package is actually spread out over multiple files sharing the same extension. The directory is stored in a specific file called _dir.vpk and the content is spread over several additional archive files called _*.vpk (where * is the zero based archive index). Consequentially, there are two file formats:
Archive
VPK Archives store raw file data. They have no identifying header and know nothing of their contents. Though not necessary, the raw file data is typically tightly packed.
To do: Rewrite and merge Notes section to the format section
Из статьи вы узнаете как устранить ошибку failed to open vpk file cs go.
Всем привет! Прочитав эту статью, вы сможете устранить ошибку failed to open vpk file cs go или как ее еще называют Pure server: file [GAME]\pak01_011.vpk does not match the server’s file
В открытом окне выбрать «Локальные файлы», затем нажать кнопку «Обзор»
Зайти в Steam, выбрать «Библиотека», кликнуть по ксго правой кнопкой мыши и кликнуть по «Свойства»
Features
Версия и размер обновления
- Размер обновления CS:GO 34.3 MB ;
- Версия клиента игры 1.38.2.9 .
Лучшие переводы обновлений CS:GO и их детальные обзоры также можно читать в нашей группе Вконтакте. Будь в курсе последних изменений первым! Подпишись!
Добавить комментарий как гость
04:42 - 29 сентября 2015 Обозначение мест на картах в CS:GO Обозначения мест на самых популярных картах в CS:GO. Названия на двух языках - русский и английский.
15:25 - 9 августа 2018 Параметры запуска CS:GO Что такое параметры запуска и как их использовать? Полный список параметров запуска кс го, включающий так же параметры запуска
10:02 - 31 июля 2015 Настройка радара в CS GO Полная настройка радара для оптимальной игры. Как сбросить установки радара на стандартные значения читай внутри.
09:34 - 12 января 2015 Как сделать маленький прицел в CS GO? (Настройка Делаем маленький прицел в CS:GO такой же как и в старом добром CS 1.6. Готовый набор команд внутри темы.
09:53 - 20 февраля 2015 Как сохранить или загрузить конфиг в CS:GO В этой теме вы узнаете где находится конфиг в кс го, как его сохранить, загрузить, установить и удалить. Все детали внутри темы.
00:31 - 27 января 2019 Чит команды CS:GO sv_cheats 1. Детальное описание. Подробное описание консольных команд sv_cheats 1. Как включить sv_cheats, sv_cheats читы, вх, noclip. Описание r_drawothermodels.
18:04 - 13 августа 2015 Настройка CS:GO и вашего конфига Детальный разбор настройки конфига, рейтов, нетграфа, биндов кнопок клавиатуры для удобной игры. Как сохранять/загружать конфиг -
05:08 - 23 июля 2019 Звания в режиме "Запретная зона" Как выглядят новые значки званий для режима "Запретная зона"? Как называются уровни званий на русском и английском
07:15 - 11 февраля 2016 Звания в CS:GO. Таблица званий всех режимов кс го. Список всех званий в кс го по порядку и их количество. Название каждого CS:GO звания на русском и английском языках, в виде
Вчера, 08:04 Обновление CS:GO от 13.05.2022 Сегодня ночью вышло небольшое обновление CS:GO от 13.05.2022. Разработчики обновили эффект блеска стикеров, а также исправили
Create VPK/Add Files
vpk
Tip: Drag a folder onto the tool in Explorer to trigger this command.
vpk a
Bug: They will appear inside the VPK with their full path ( C:\etc\ ) intact - is there a way to avoid this?
Note: This is invoked when a directory is dragged onto the VPK tool.
Making custom vpks for a mod
Content must be a subdirectory under sound/materials/models in the root dir of your VPK, or else they won't appear in hammer. IE your sounds should be located in sound/foo/thisIsASound.wav in your custom vpk, models under models/, materials under materials/, ect.
VPKs must be mounted in gameinfo.txt.
Читайте также: