Results 1 to 5 of 5

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10

    VDK file structure (Ragnarok Online, Requiem)

    The structure of VDK files which are used in Ragnarok Online 2 and Requiem

    Code:
     //--------------------------------------
    //--- 010 Editor v3.1.2 Binary Template
    //
    // File: vdk 1.1
    // Author: Dwar
    // Revision: 2010-09-05
    // Purpose: vdk unpacker
    //--------------------------------------
    
    //vdk header
    struct VDKHeader                    
    {
      char VDK_desk[8];     //VDISK1.1
      int  VDK_unk;         //unknown
      int  VDK_CountFile;   //file count
      int  VDK_CountFolder; //folder count
      int  VDK_size;        //vdk file size without root (+91h) and FileList 
      int  VDK_unk;         //unknown
    } Header;
    
    // read files data until VDK_size + 91h
    struct Files                    
    {
      byte isDir;
      char fileName[128];
      int  SizeOriginal;
      int  SizePacked;
      int  parentDirOffset <format=hex>;
      int  NextAddrOffset  <format=hex>;
    };
    
    //
    struct FileList         // list of files at the end                   
    {
      int  VDK_filecount;   //file count
      char fileName[260];
      int  fileOffset <format=hex>;
    };
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •