[mac] Client DBC (Spell Example) - Struct change? menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [mac] Client DBC (Spell Example) - Struct change?

    I was just curious, did the struct change for DBC reading in 4.x? I wasn't able to find a thread on the matter.

    When I view my Spell.DBC struct in memory, this is how it looks:


    It would appear the row pointer is at 0xC (and when I view this pointer, it looks like a list of the rows like in 3.x).

    Does anyone have an up to date struct? Here is the pre-4.x struct:
    Code:
    typedef struct ClientDb {
        UInt32 _vtable;                     // 0x0
        UInt32 isLoaded;            // 0x4
        UInt32 numRows;                     // 0x8                          // 49379
        UInt32 maxIndex;            // 0xC                          // 74445
        UInt32 minIndex;            // 0x10                         // 1
    	UInt32 stringTablePtr;  // 0x14
    	UInt32 _vtable2;                // 0x18
    	// array of row pointers after this...
    	UInt32 row1;                    // 0x1C                    
    	UInt32 row2;                    // 0x20
    	
    } ClientDb;
    And full mac DBC dump for those that are interested: typedef enum ClientDBC{ AnimKitBoneSetAliasDBC =

    Thanks!
    Last edited by Tanaris4; 02-10-2011 at 02:56 PM.
    https://tanaris4.com

    [mac] Client DBC (Spell Example) - Struct change?
  2. #2
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Code:
    struct WoWClientDB
    {
      void *funcTable;
      int numRows;
      int maxIndex;
      int minIndex;
      void *stringTable;
      void *FirstRow;
      void **Rows;
    };
    Last edited by TOM_RUS; 02-10-2011 at 02:41 PM.

  3. #3
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would you agree that if you look @ my screenshot, if the struct was starting at 0xECE2C8, I'm probably not looking at the correct thing?

    (although this offset is referenced in ALL the lua functions that reference Spell.dbc, just like the windows binary)
    https://tanaris4.com

  4. #4
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Tanaris4 View Post
    Would you agree that if you look @ my screenshot, if the struct was starting at 0xECE2C8, I'm probably not looking at the correct thing?

    (although this offset is referenced in ALL the lua functions that reference Spell.dbc, just like the windows binary)
    .data:00C994B4 g_SpellDB

    in windows binary (not rebased)

  5. #5
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm an idiot, you need to be logged in. Then the data is populated correctly. Sad I didn't realize this.
    https://tanaris4.com

Similar Threads

  1. [Spell Swap] Rogue Changes
    By tofudragon33 in forum World of Warcraft Model Editing
    Replies: 55
    Last Post: 10-06-2010, 09:30 AM
  2. Possible invalid format in file DBC/Spell.dbc (8616)
    By TroyFrostwind in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-04-2008, 12:35 PM
  3. So, what exactly happened with DBC spell edits?
    By Discordian in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 07-22-2008, 06:49 AM
  4. Possible Invalid Format DBC/spell.dbc
    By jonny14 in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-08-2008, 01:48 PM
  5. Client-Side Only Text Color Change Edit
    By orangegold in forum World of Warcraft Bots and Programs
    Replies: 9
    Last Post: 04-23-2007, 01:19 AM
All times are GMT -5. The time now is 05:49 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search