(C#) Reading cache file - help menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    miclis's Avatar Member
    Reputation
    33
    Join Date
    Mar 2009
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    (C#) Reading cache file - help

    Hi

    If someone can help me out, i will give a 1 month rapidshare or megaupload premium if ou can realy help me out ...
    I have skype, just PM me if you are interested.

    What i need ?
    I want a tool thats read a .WDB file (wow cache) into variable, so i can use it to add into a mysql database.

    I started, my i am stuck with the row lenght (bytes)

    Code:
    private void button1_Click(object sender, EventArgs e)
            {
                ASCIIEncoding encoder = new ASCIIEncoding();
                ItemReader teader = new ItemReader();
                byte[] file = teader.FileToArray("itemcache.wdb");
                byte starting = file[0 + 24];
                int test = 0;
                int lengt = 0;
                DataTable dt = new DataTable();
    
    
                dataGridView1.DataSource = dt;
    
                dt.Columns.Add("ID");
                dt.Columns.Add("Name");
    
                while (test < 5000)
                {
                int Id = file[(27 + test) & (26 + test) & (25 + test) & (24 + test)];
                lengt = (file[(31 + test) & (30 + test) & (29 + test) & (28 + test)] * 25) / 10;
    
                int namebyte = 24 + 20 + test;
                string name = encoder.GetString(file, namebyte, 15);
    
                MessageBox.Show(lengt.ToString());
                DataRow anyRow = dt.NewRow();
                anyRow["ID"] = Id;
                anyRow["Name"] = name;
    
                dt.Rows.Add(anyRow);
                test = test + Convert.ToInt32(lengt);
                }
            }
    AND

    Code:
     public Byte[] FileToArray(string sFilePath)
            {
                
                System.IO.FileStream fs = new System.IO.FileStream(sFilePath, System.IO.FileMode.Open, System.IO.FileAccess.Read);
                System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
                Byte[] bytes = br.ReadBytes((Int32)fs.Length);
                br.Close();
                fs.Close();
                return bytes; 
            }

    Thanks

    (C#) Reading cache file - help

Similar Threads

  1. Reading strings from WDB cache files.
    By Nesox in forum WoW Memory Editing
    Replies: 4
    Last Post: 06-08-2013, 03:03 PM
  2. [Client] [Error] - Immediate help wanted: Failed to read adt file - V 4.0.6.13623
    By Vorreth in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 01-21-2012, 07:33 PM
  3. Question, WMO files ->Help
    By thesixth in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 08-16-2007, 01:56 PM
  4. [HELP]--Widow's Remorse M2 file --[HELP]
    By Quagmar in forum WoW ME Questions and Requests
    Replies: 5
    Last Post: 12-23-2006, 01:19 AM
  5. File help
    By Tayo in forum World of Warcraft General
    Replies: 0
    Last Post: 09-16-2006, 01:22 PM
All times are GMT -5. The time now is 09:30 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search