Results 1 to 5 of 5
  1. #1
    Legendary
    Reputation
    723
    Join Date
    May 2007
    Location
    Paris
    Posts
    700
    CoreCoins
    182

    Trade Feedbacks

    Positive
    1
    Negative
    0

    Reversing the DB2 struct in memory

    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
    Elite User
    Reputation
    440
    Join Date
    May 2008
    Location
    Here
    Posts
    489
    CoreCoins
    156

    Trade Feedbacks

    Positive
    0
    Negative
    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
    Reputation
    723
    Join Date
    May 2007
    Location
    Paris
    Posts
    700
    CoreCoins
    182

    Trade Feedbacks

    Positive
    1
    Negative
    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
    136
    Join Date
    Oct 2008
    Posts
    636
    CoreCoins
    98

    Trade Feedbacks

    Positive
    0
    Negative
    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
    88
    Join Date
    Dec 2007
    Location
    Norway
    Posts
    360
    CoreCoins
    77

    Trade Feedbacks

    Positive
    0
    Negative
    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 02:11 AM. Powered by vBulletin® Version 4.2.0
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO
vBulletin Optimisation by vB Optimise. Digital Point modules: Sphinx-based search

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251