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: [Legion] WDB5 format  (Read 4943 times)

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Legion] WDB5 format
« Reply #15 on: April 19, 2016, 01:15:17 am »
According to the c and c++ standards the padding is implicit by just writing the struct. I think that if we want to mentio it, it should be via ((_aligned_(32))) pragma or alike. It isn't table specific but just a language feature. I realize it can lead to confusion.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Rangorn

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 291
    • View Profile
Re: [Legion] WDB5 format
« Reply #16 on: April 19, 2016, 08:40:20 pm »
Ok i'm done with WDB5

The furry already made a program for parsing All the files into csv format
https://github.com/Arctium-Emulation/Tools

I will maybe only contribute to the wiki by referencing structure + column name.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Rangorn

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 291
    • View Profile
Re: [Legion] WDB5 format
« Reply #17 on: April 28, 2016, 04:37:15 pm »
[deleted]
« Last Edit: May 17, 2016, 02:01:09 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Legion] WDB5 format
« Reply #18 on: April 28, 2016, 07:19:14 pm »
That change happened between cata and wod, to be exact ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Uthil

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 283
    • View Profile
Re: [Legion] WDB5 format
« Reply #19 on: April 28, 2016, 09:15:31 pm »
Build 21531 has WDB5, im looking for an editor/viewer or something similar. All my search end up to find up too wdb2, thats already outdated. It will possible to read WDB5 from now on ?? Since blizz tries to complex things more and more as heading to close legion.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Like my project and you like to support me, you can do it here!

Rangorn

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 291
    • View Profile
Re: [Legion] WDB5 format
« Reply #20 on: April 29, 2016, 01:04:46 am »
[deleted]
« Last Edit: May 17, 2016, 02:01:20 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Legion] WDB5 format
« Reply #21 on: April 29, 2016, 08:10:42 am »
That comes from how they count "columns". It was changed from four fields to an array of four before/in wod. Counting an array as just one column changed in wdb6. So yes, it now shows that it is an array, but the struct used was using an array before
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Legion] WDB5 format
« Reply #22 on: May 02, 2016, 11:48:30 am »
They started earlierwith this grouping. CharRace for example in wod is also in this form.
« 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

Rangorn

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 291
    • View Profile
Re: [Legion] WDB5 format
« Reply #23 on: May 03, 2016, 07:30:54 pm »
Yeah, but i'm talking about the header
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Rangorn

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 291
    • View Profile
Re: [Legion] WDB5 format
« Reply #24 on: May 04, 2016, 06:34:18 pm »
[deleted]
« Last Edit: May 17, 2016, 02:01:33 pm by Admin »

Simca

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: [Legion] WDB5 format
« Reply #25 on: May 04, 2016, 09:01:19 pm »
Yeah, basically old school DBC column guessing strategy.

I use a priority-based system, like:
1. If every value in the column is 0, it's an integer.
2. If every value in the column exists in our string position map, it's a string.
3. If every value in the column where it is not 0 has the exponent bits for floats set to a number greater than ~120, it's a float.
4. Else, it's an integer.

A couple notes for WDB5: string and float fields still -must- be 4 bytes. So if the field is less than 4 bytes, it is automatically an integer.

Also, there are going to be a lot of problems with signed and unsigned integers if you autodetect like this. Foreign keys are generally unsigned and it sometimes makes a big difference. Other values are generally signed, and it sometimes makes a big difference. You might be able to write some form of autodetection for signed vs unsigned (or take it from somewhere else) but it is going to be annoyingly complicated.

Lastly, I recommend against a dedicated flags column type. At the end of the day, displaying the numbers as 0x(some hex value) doesn't actually make flags significantly more clear or useful (imo), so it's best to just parse flags you want later, after converting to CSV or some other form.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Rangorn

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 291
    • View Profile
Re: [Legion] WDB5 format
« Reply #26 on: May 05, 2016, 02:22:06 am »
[deleted]
« Last Edit: May 17, 2016, 02:01:45 pm by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [Legion] WDB5 format
« Reply #27 on: May 05, 2016, 08:39:52 pm »
I think it is great if your tool supports gussing but you should also implement the posibillity to rework your gusses.
Just save the structure in a xml.csv whatever format and let the uset change the names of columns and the types.
« 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

Rangorn

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 291
    • View Profile
Re: [Legion] WDB5 format
« Reply #28 on: May 12, 2016, 11:26:39 am »
[deleted]
« Last Edit: May 17, 2016, 02:01:59 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [Legion] WDB5 format
« Reply #29 on: May 12, 2016, 11:49:39 am »
texturefiledata or something
« Last Edit: January 01, 1970, 01:00:00 am by Admin »