VdfsSharp
Building, loading and extracting VDFS archives used by the games Gothic & Gothic 2 NotR
Install / Use
/learn @Szmyk/VdfsSharpREADME
VdfsSharp
Building, loading and extracting VDFS archives used by the games "Gothic" and "Gothic II"
The main aim of the project is to provide a way for the Gothic Mod Build Tool project to extract and build VDFS archives programmatically instead of using external tools.
Example
Reading
using VdfsSharp;
using System.IO;
//...
var reader = new VdfsReader("Anims.vdf");
var entries = reader.ReadEntries(false);
var humansMdh = entries.Where(entry => entry.Name == "HUMANS.MDH").First();
var content = reader.ReadEntryContent(humansMdh);
File.WriteAllBytes(@"_Work\Anims\_Compiled\Humans.mdh", content);
Extracting
using VdfsSharp;
//...
var extractor = new VdfsExtractor("Anims.vdf");
extractor.ExtractFiles("_Work\Anims", ExtractOption.Hierarchy);
Building
using VdfsSharp;
//...
var writer = new VdfsWriter("Scripts.vdf", "Scripts of my mod", GothicVersion.Gothic2);
writer.AddDirectory("_Work\Scripts");
writer.Save();
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
