This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
forked from simulationcraft/simc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
71 lines (52 loc) · 2.59 KB
/
README
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
DBC Spell Data extraction tool for Simulationcraft
==================================================
Requirements
============
- A decently new Python implementation (2.5+)
Extracting data
================
The extractor tool is able to parse through a set of DBC files, extracting the
following information into a "simulationcraft" representation (spell data
files):
* A "master spell list" for relevant spells
* A talent list, including all pet talents
* Scaling information for spells, combat ratings and mana regen
* Various lists used by simc to automate certain aspects of modeling
* Patch DBC files to a new build version
* A raw view into the fields of the DBC data
All output data is written to stdout.
Using the tool
==============
To extract data, the tool typically requires two things:
1) An input path where your DBC files are located (-p switch)
2) An extraction type, specifying what kind of output will be generated
(-t switch)
3) A build number, specifying the WoW build number where your DBC data
is from (-b switch). Note that some extraction types do not require
a build number (-t header, -t patch).
Some optional parameters may also be specified that modify the output (others
can be seen with dbc_extract.py --help):
--prefix specify a modifier for the data output variable names
--suffix
Additionally, the tool contains a "-t view" switch to view the raw data of a (known)
DBC file. The switch takes two additional parameters:
1) The name of the DBC file in the directory pointed by -p
2) An optional, numerical identifier for the record you are looking for.
If omitted, all records are output.
*NOTE* The identifier search is done as a binary search, so if a DBC file
records are not ordered, things may not be found. *NOTE*
Examples
========
Extract all relevant spell data from the DBC files
$ ./dbc_extract.py -b 13286 -t spell -p /path/to/your/dbc/files > sc_spell_data.inc
Extract scaling data from the DBC files, with a prefix
$ ./dbc_extract.py -b 13286 -t scale -p /path/to/your/dbc/files --prefix=ptr > sc_scale_data_ptr.inc
Patch DBC files to a new build version
$ ./dbc_extract.py -t patch /path/to/your/old/dbc/files /path/to/your/new/dbc/directory \
/path/to/your/dbc/patch/files
Check the DBC header information of a DBC file
$ ./dbc_extract.py -t header /path/to/your/dbc/file
View the spell data of Lightning Bolt
$ ./dbc_extract.py -b 13286 -t view -p /path/to/your/dbc/files Spell.dbc 403
View the spell relationships for a class (VERY EXPERIMENTAL)
$ ./ dbc_extract.py -b 13286 -t class_flags -p /path/to/your/dbc/files Shaman