Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[General] Improve VDFS article #134

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 36 additions & 11 deletions docs/zengin/general_info/vdfs.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,49 @@
---
title: VDFS virtual file system
---
# VDFS
# VDFS virtual file system

VDFS is the virtual file system used by ZenGin to distribute and store many, but not all, game assets.

!!! Example "Learn more"
If you want a more technical documentation of the VDFS format, you can find it on [ZenKit site](https://zk.gothickit.dev/engine/formats/vdf/).

## Loading

### VDF
`.vdf` files can usually be found in the `Data/` directory of Gothic installations and the game loads them automatically.

Volumes are loaded based on the [timestamp](../tools/vdfs_tools/gothic_vdfs.md#viewer) specified inside the `.vdf` file. The volumes with the latest timestamp are loaded first.


### MOD
`.mod` files are stored in the `Data/ModVDF/` directory and loaded when they are specified in the current game `.ini`.
```ini title="MyMod.ini"
// [...]
[FILES]
VDF=MyMod.mod MyMod_Textures.mod
muczc1wek marked this conversation as resolved.
Show resolved Hide resolved
// [...]
```
!!! Warning
Notice that two spaces are used as a separator between the `.mod` files.
muczc1wek marked this conversation as resolved.
Show resolved Hide resolved

## Tools

The community created variety of different modding tools for work with VDFS volumes over the times, such as:

[**GothicVDFS**](../tools/vdfs_tools/gothic_vdfs.md)
### [GothicVDFS](../tools/vdfs_tools/gothic_vdfs.md)
Most popular tool for working with VDFS volumes. Allows viewing, extracting and building `.vdf` and `.mod` archives, and has CLI interface.

### [VDFS Tool](../tools/vdfs_tools/vdfs_tool.md)
New tool for working with VDFS volumes, created to support features introduced by [Union](../union/index.md). Apart from viewing, extracting and building `.vdf` and `.mod` archives, it also supports optimizing and compressing them.

- Viewing
- Extracting
- Building `.mod` and `.vdf` archives

[**VDFS Tool**](../tools/vdfs_tools/vdfs_tool.md)
### Comparison

- Viewing
- Extracting
- Building
- Optimizing
- Compressing `.mod` and `.vdf` archives
| Features | GothicVDFS | VDFS Tool |
|----------|------------|-----------|
| Viewing | ✔️ | ✔️ |
| Extracting | ✔️ | ✔️ |
| Building | ✔️ | ✔️ |
| Compression | ❌ | ✔️ |
| CLI | ✔️ | ❌ |