This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Understanding the DBC Format  (Read 11340 times)

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Understanding the DBC Format
« Reply #15 on: April 08, 2013, 06:03:49 pm »
Perhaps a better way to phrase my question is, "What part of the code changes the returned column?" I've tried figuring this out by tinkering with different aspects but nothing seems to work.

Though this is an editor for 3.3.5 (at least initially) I plan to allow adding, removal, and editing of profiles. The core profiles will be included as defaults that can be reverted to at any point (really easy to do with NSUserDefaults).

Steff, this is what my profile editor looks like so far. What's missing? Going by the list you've provided perhaps this is too simple.



EDIT: After more tinkering, I figured it out! You just increment by the length of an int. Very simple.



My next question, then, is what do flags count as? They're not ints or strings as far as I can tell

EDIT 2: Nevermind, it's just an int in hex format
« Last Edit: April 09, 2013, 12:08:37 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Understanding the DBC Format
« Reply #16 on: April 08, 2013, 11:55:36 pm »
I use an open and external format to:

1 Change it fast if new stuff is invented.
2 Other people can help me to create the definitions.

I also use them just to import the dbcs into mysql and edit them then there.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Understanding the DBC Format
« Reply #17 on: April 09, 2013, 12:09:45 am »
Quote from: "Steff"
I use an open and external format to:

1 Change it fast if new stuff is invented.
2 Other people can help me to create the definitions.

I also use them just to import the dbcs into mysql and edit them then there.

I'm planning to allow importing and exporting of profiles in XML format, does that sound good?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: Understanding the DBC Format
« Reply #18 on: April 09, 2013, 12:14:04 am »
Quote from: "iindigo"
Quote from: "Steff"
I use an open and external format to:

1 Change it fast if new stuff is invented.
2 Other people can help me to create the definitions.

I also use them just to import the dbcs into mysql and edit them then there.

I'm planning to allow importing and exporting of profiles in XML format, does that sound good?
Use .txt or .ini - it is not a special format like XML and does not require overly complicated instructions to form proper tables.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Understanding the DBC Format
« Reply #19 on: April 09, 2013, 12:17:07 am »
Quote from: "Ascathos"
Quote from: "iindigo"
Quote from: "Steff"
I use an open and external format to:

1 Change it fast if new stuff is invented.
2 Other people can help me to create the definitions.

I also use them just to import the dbcs into mysql and edit them then there.

I'm planning to allow importing and exporting of profiles in XML format, does that sound good?
Use .txt or .ini - it is not a special format like XML and does not require overly complicated instructions to form proper tables.

I see your point. I might do multiple formats. Text will actually take me more time to write since there's built-in functions for reading and writing XML.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

iindigo

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 198
    • View Profile
Re: Understanding the DBC Format
« Reply #20 on: January 19, 2014, 10:21:03 pm »
I've been working on this again lately and have been making nice headway. It's nowhere near complete but it's approaching usability. The definitions editor is almost finished as is mapping... there are a few types that aren't mapped and cross-file references aren't working yet so those will be the next targets.


Click to Enlarge
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: Understanding the DBC Format
« Reply #21 on: January 19, 2014, 11:53:52 pm »
Looks good.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: Understanding the DBC Format
« Reply #22 on: January 20, 2014, 06:58:32 am »
When you get to mapping the Spell.DBC file, hit me up.

I have extensive documentation on how that DBC works.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Understanding the DBC Format
« Reply #23 on: January 20, 2014, 09:07:10 am »
If you have more information about something than it is in the wiki at wowdev.wiki, please add it there! Holding information in private does not help anyone, even if you share it upon private messaging request!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: Understanding the DBC Format
« Reply #24 on: January 20, 2014, 09:19:36 am »
I don't have any  new information that would help out at WoW Dev Wiki, I least I don't think it could help.  Ive been using the TrinityCore Source code and QTSpellWork program  to figure out what the Effect columns do for each spell Effect and Aura.

It won't be private much longer, I've already shown Steff what I have.  But right now its nothing more than a collection of notes on about 100 different Auras and Effects.  I'm not going to release something that isn't useful in it's current state.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Understanding the DBC Format
« Reply #25 on: January 20, 2014, 06:59:31 pm »
As you can see in the pm, it does contain information not on the wiki, thus is helpful.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »