Results 1 to 5 of 5
  1. #1
    Legendary

    CoreCoins User


    Reputation
    899
    Join Date
    May 2007
    Location
    Under your bed
    Posts
    882
    CoreCoins
    4912

    Trade Feedbacks

    Status
    Superior trader
    Positive
    1 (100%)
    Negative
    0 (0%)

    Reversing the DB2 struct in memory



    Donate to Remove Ads, Get ShoutBawx - Elite Forum Access
    Hello,

    I wanted to make a struct for the DB2 struct as I already use it mainly for item-sparse.db2 in memory.

    So I reversed .text:0008CDB0 WowClientDB2_Base__Load (rebased) and I came with this :

    Code:
            public struct DB2
            {
                public uint vTable; // 0x4
                public uint Unknown2; // 0x8
                public uint Unknown3; // 0xC
                public uint MinIndex; // 0x10
                public uint MaxIndex; // 0x14
                public uint NumRows; // 0x18
                public uint Unknown7; // 0x1C
                public uint Unknown8; // 0x20
                public uint Unknown9; // 0x24
                public uint Rows; // 0x28
                public uint Unknown11; // 0x2C
                public uint Unknown12; // 0x30
                public uint Unknown13; // 0x34
                public uint Unknown14; // 0x38
                public uint Unknown15; // 0x3C
                public uint Unknown16; // 0x40
                public uint Unknown17; // 0x44
                public uint Unknown18; // 0x48
                public uint Unknown19; // 0x4C
                public uint Unknown20; // 0x50
                public uint Unknown21; // 0x54
                public uint Unknown22; // 0x58
                public uint Unknown23; // 0x5C
                public uint Unknown24; // 0x60
                public uint Unknown25; // 0x64
                public uint Unknown26; // 0x68
                public uint Unknown27; // 0x6C
                public uint Unknown28; // 0x70
                public uint Unknown29; // 0x74
                public uint Unknown30; // 0x78
                public uint Unknown31; // 0x7C
                public uint Unknown32; // 0x80
                public uint Unknown33; // 0x84
                public uint Unknown34; // 0x88
                public uint Unknown35; // 0x8C
                public uint Unknown36; // 0x90
                public uint Unknown37; // 0x94
                public uint Unknown38; // 0x98
                public uint Unknown39; // 0x9C
                public uint Unknown40; // 0xA0
            }
    So basically I have everything needed but I was just curious if someone else has more informations
    Last edited by JuJuBoSc; 04-06-2012 at 09:19 AM.

  2. #2
    Legendary

    CoreCoins User


    Reputation
    724
    Join Date
    May 2008
    Location
    Here
    Posts
    629
    CoreCoins
    4281

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Does it include data from item-sparse.adb (cache) as well? Because last time I looked into it, db2 (static) and adb (cache) data were separate and game somehow does lookup through both db's.

  3. #3
    Legendary

    CoreCoins User


    Reputation
    899
    Join Date
    May 2007
    Location
    Under your bed
    Posts
    882
    CoreCoins
    4912

    Trade Feedbacks

    Status
    Superior trader
    Positive
    1 (100%)
    Negative
    0 (0%)
    I think as I use this struct almost like I do for get DBC row and gather item information such as name rarity etc.

  4. #4
    Contributor
    Reputation
    141
    Join Date
    Oct 2008
    Posts
    647
    CoreCoins
    107

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Sorry for bumping a very old thread, but was just curious. Is it possible to read the DB2 from memory WITHOUT having to traverse the entire list?

    Was just curious if there was a way to just find the row from the item id, from reversing

    Code:
    WowClientDB2::ItemRec_C::GetRow(int db2_ptr, int index, int a3, int a4, int a5, char a6)
    It doesn't seem that way, but was curious if anyone else figured this out.

    Thanks!
    ~ Tanaris
    http://tanaris4.com

  5. #5
    Contributor
    Reputation
    113
    Join Date
    Dec 2007
    Location
    Norway
    Posts
    381
    CoreCoins
    55

    Trade Feedbacks

    Status
    n/a
    Positive
    0 (0%)
    Negative
    0 (0%)
    Quote Originally Posted by Tanaris4 View Post
    Sorry for bumping a very old thread, but was just curious. Is it possible to read the DB2 from memory WITHOUT having to traverse the entire list?

    Was just curious if there was a way to just find the row from the item id, from reversing

    Code:
    WowClientDB2::ItemRec_C::GetRow(int db2_ptr, int index, int a3, int a4, int a5, char a6)
    It doesn't seem that way, but was curious if anyone else figured this out.

    Thanks!
    ~ Tanaris
    Did you find anything on this matter?

 

 

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 07:48 AM. Powered by vBulletin® Version 4.2.0
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved. Resources saved on this page: MySQL 5.88%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2014 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search