Jump to content

Konctantin

Members
  • Posts

    30
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Konctantin

  1. DBC - This is a binary file that has the following structure:

     
       Header (20 bytes) 
       Data (records count * record size) 
       Text data (string block size)
    

    The structure of the title:

     
       4 bytes (byte[4]) - signature (always 57 44 42 43 or WDBC) 
       4 bytes (uint) - records count (Indicates how many records has the table) 
       4 bytes (uint) - fields count (Indicates how many columns in this table) 
       4 bytes (uint) - record size (Indicates the size in bytes of the line) 
       4 bytes (uint) - string block size (size in bytes of the block with the text) 
    

    * Note: usually a single value occupies 4 bytes (but not always)

    A special feature of reading this file that in the most prompt record does not contain text,

    but contains a offset in string block size

    dbc-viewer http://filebeam.com/f0382f195b6241ba8997eceeaa3c0e96

  2. A simple text list of all maps and their X,Y coordinates would be most helpful. Then all anyone would need to do is plug that data into the generator or batch file.

    I got the coordinates X and Y based on the name file maps

    Example:

    map   X    Y
    000   23   32.map

    created a bat file that runs the generator with the parameters.

    static void Main(string[] args)
    {
       Console.Write("Enter the file size (in bytes) that must pass: ");
       int size = int.Parse(Console.ReadLine());
    
       using (StreamWriter sw = new StreamWriter("mmaps_convert.bat", false, Encoding.ASCII))
       {
           foreach (var file in new DirectoryInfo("maps").GetFiles("*.map").Where(n => (n.Length > size)))
           {
               string str = String.Format("generator.exe {0} {1} {2}", file.Name.Substring(0, 3), file.Name.Substring(3, 2), file.Name.Substring(5, 2));
               sw.WriteLine(str);
               Console.WriteLine(str);
           }
       }
    
       Console.ReadLine();
    }
    

  3. I tested and got here mmaps such errors in the log:

    deal dmg:3 to health:110
    deal dmg:4 to health:107
    WORLD: Recvd ZONE_UPDATE: 12
    deal dmg:3 to health:103
    637661517's UpdatePath failed: invalid start or end polygon
    637661517's UpdatePath failed: invalid start or end polygon
    637661517's UpdatePath failed: invalid start or end polygon
    637661517's UpdatePath failed: invalid start or end polygon
    deal dmg:4 to health:100
    637661517's UpdateNextPosition failed: 0 length path
    WORLD: Recvd ZONE_UPDATE: 12
    deal dmg:3 to health:96
    637661517's UpdatePath failed: invalid start or end polygon
    637661517's UpdatePath failed: invalid start or end polygon
    deal dmg:4 to health:93
    637661517's UpdatePath failed: invalid start or end polygon
    WORLD: Recvd ZONE_UPDATE: 12
    637661517's UpdatePath failed: invalid start or end polygon
    637661517's UpdatePath failed: invalid start or end polygon
    WORLD: Recvd ZONE_UPDATE: 12
    deal dmg:3 to health:89
    WORLD: Recvd ZONE_UPDATE: 12
    637661517's UpdatePath failed: invalid start or end polygon
    

    coordinates:

    Command: gps [Player: Testmag (Account: 1) X: -8988.514648 Y: -301.891876 Z: 71.
    907005 Map: 0 Selected: None (Guid: 0)]
    

    but in general works fine

  4. Extract maps and vmaps, then in mmap.conf to specify the path to the directory where are your maps and vmaps.

    Then create a folder at once mmaps.

    Next, you need to run generator.exe with the parameters xxx - map, xx - X-coordinate, xx - Y-coordinate, and wait a long time.

    For example, we can run the *.bat file:

    generator.exe 000 20 35
    generator.exe 000 20 36
    generator.exe 000 20 37
    generator.exe 000 20 38
    generator.exe 000 20 39
    generator.exe 000 20 40
    generator.exe 000 21 35
    generator.exe 000 21 36
    generator.exe 000 21 37
    generator.exe 000 21 38
    generator.exe 000 21 39
    generator.exe 000 21 40
    generator.exe 000 22 25
    generator.exe 000 22 26
    

    What's hard to understand?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use