{"id":18421925,"url":"https://github.com/pyogenics/wotbdvpformat","last_synced_at":"2025-10-31T03:30:37.568Z","repository":{"id":193910576,"uuid":"686982872","full_name":"Pyogenics/WOTBDVPFormat","owner":"Pyogenics","description":"WOTB dvpm/dvpd file format.","archived":false,"fork":false,"pushed_at":"2023-09-18T18:21:07.000Z","size":19,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-24T18:25:11.229Z","etag":null,"topics":["reverse-engineering","smartdlc","world-of-tanks-blitz","wot-blitz","wotb","wotblitz"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pyogenics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-09-04T11:08:51.000Z","updated_at":"2024-11-17T12:18:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0d79845-bf13-452e-a03f-c57f0de913b7","html_url":"https://github.com/Pyogenics/WOTBDVPFormat","commit_stats":null,"previous_names":["pyogenics/wotb-dvp","pyogenics/wotbdvpformat"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyogenics%2FWOTBDVPFormat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyogenics%2FWOTBDVPFormat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyogenics%2FWOTBDVPFormat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pyogenics%2FWOTBDVPFormat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pyogenics","download_url":"https://codeload.github.com/Pyogenics/WOTBDVPFormat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239099760,"owners_count":19581497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["reverse-engineering","smartdlc","world-of-tanks-blitz","wot-blitz","wotb","wotblitz"],"created_at":"2024-11-06T04:27:20.330Z","updated_at":"2025-10-31T03:30:37.223Z","avatar_url":"https://github.com/Pyogenics.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wotb-dvp\nWOTB dvp type file specification.\n\n## Research materials\n- [DVPL file tool](https://github.com/Maddoxkkm/dvpl_converter) by Maddoxkkm \n\n## .dvpm\nDVPM files are split into 3 sections: meta, file table and footer.\n### meta\nThis section is at the very start of the file and has a magic string of \"met3\".\n```c\nstruct DVPMMeta\n{\n    char magic[4]; // \"met3\"\n    uint32_t fileCount;\n    uint32_t unknownArray[fileCount];\n    uint32_t dvpdCount;\n    struct {\n        uint32_t dvpdUnknown1;\n        uint32_t dvpdUnknown2;\n        uint32_t dvpdUnknown3;\n        uint32_t dvpdUnknown4;\n    } dvpdInfo[dvpdCount]; // For every dvpd there are 16 bytes of unknown data\n    uint32_t filePathStringLength;\n    char filePathString[]; // Null seperated filepath strings\n    uint32_t packStringsRawSize;\n    uint32_t packStringCompressedSize;\n    byte packStrings[]; // lz4 encoded \"pack\" strings\n}\n```\n### file table\n```c\nstruct DVPMFileTable\n{\n    struct {\n        uint64_t fileOffset; // Offset to the file inside the dvpd data block\n        uint32_t compressedSize;\n        uint32_t uncompressedSize;\n        uint32_t compressedCRC32;\n        uint32_t compressionType;\n        uint32_t uncompressedCRC32;\n        uint32_t metaSectionReference;\n    } FileEntries[];\n    byte filePaths[]; // lz4 encoded file paths string (separated by null bytes), see footer \"fileTableFilepaths\"\n}\n```\n#### Compression types\n```\n0 none\n1 LZ4\n2 LZ4_HC\n3 RFC1951\n```\n### footer\nThe footer is 44 bytes large and the last 4 bytes are a magic string that reads \"DVPM\".\n\n```c\nstruct DVPMFooter\n{\n    byte unknown1[8];\n    uint32_t metaSectionCRC32;\n    uint32_t metaSectionSize;\n    byte unknown2[4];\n    uint32_t fileCount;\n    uint32_t fileTableFilepathsCompressedSize;\n    uint32_t fileTableFilepathsRawSize;\n    uint32_t fileTableSize;\n    uint32_t fileTableCRC32;\n    char magic[4]; // \"DVPM\"\n}\n```\n\n## .dvpd\nTODO\n### footer\nThe footer is 32 bytes large and the last four bytes are a magic string that read \"DVPD\".\n```c\nstruct DVPDFooter\n{\n    struct {\n        uint32_t dvpdUnknown1;\n        uint32_t dvpdUnknown2;\n        uint32_t dvpdUnknown3;\n        uint32_t dvpdUnknown4;\n    } dvpdInfo; // Matches with dvpdInfo in DVPM meta section\n    uint64_t dataSize; // File size - header size (file size - 32)\n    uint32_t dataCRC32;\n    char magic[4]; // \"DVPD\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyogenics%2Fwotbdvpformat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyogenics%2Fwotbdvpformat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyogenics%2Fwotbdvpformat/lists"}