summaryrefslogtreecommitdiff
path: root/scripts/content_tools/arche_tool.py
diff options
context:
space:
mode:
authorDave Houlton <euclid@lindenlab.com>2021-02-17 22:17:45 +0000
committerDave Houlton <euclid@lindenlab.com>2021-02-17 22:17:45 +0000
commit2cad61d76ba48fe2adfda120bc21ca66166b7385 (patch)
treeab0e80b363385cd6335f133ca0a0a0488f92c8f3 /scripts/content_tools/arche_tool.py
parentde711c213820521aa8afcf991b4af561db54aede (diff)
parent57e0d91d16b28758c41bc6fa96ecb42908d591c5 (diff)
Merged in DV528-merge-6.4.14 (pull request #476)
DRTVWR-528 merge up to v 6.4.14
Diffstat (limited to 'scripts/content_tools/arche_tool.py')
-rw-r--r--scripts/content_tools/arche_tool.py21
1 files changed, 19 insertions, 2 deletions
diff --git a/scripts/content_tools/arche_tool.py b/scripts/content_tools/arche_tool.py
index 23c96fc64e..f99d7be39a 100644
--- a/scripts/content_tools/arche_tool.py
+++ b/scripts/content_tools/arche_tool.py
@@ -79,15 +79,32 @@ def compare_trees(file_trees):
print "Summary:"
print summary
-
+def dump_appearance_params(tree):
+ vals = []
+ for e in tree.getroot().iter():
+ if e.tag == "param":
+ g = int(e.get("group"))
+ if g in [0,3]:
+ vals.append("{" + e.get("id") + "," +e.get("u8") + "}")
+ #print e.get("id"), e.get("name"), e.get("group"), e.get("u8")
+ if len(vals)==253:
+ print ", ".join(vals)
+
+
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="compare avatar XML archetype files")
parser.add_argument("--verbose", help="verbose flag", action="store_true")
+ parser.add_argument("--compare", help="compare flag", action="store_true")
+ parser.add_argument("--appearance_params", help="compare flag", action="store_true")
parser.add_argument("files", nargs="+", help="name of one or more archtype files")
args = parser.parse_args()
print "files",args.files
file_trees = [etree.parse(filename) for filename in args.files]
- compare_trees(file_trees)
+ print args
+ if args.compare:
+ compare_trees(file_trees)
+ if args.appearance_params:
+ dump_appearance_params(file_trees[0])