Thread: M&M 3rd ed. BBCode Export
View Single Post
Duggan
Senior Member
Volunteer Data File Contributor
 
Join Date: Nov 2009
Posts: 1,502

Old March 5th, 2019, 10:23 AM
Quote:
Originally Posted by jmucchiello View Post
Found another one:

When you use a custom descriptor, the XML output gives you:

<descriptors>
<descriptor name="- Custom Descriptor -"/>
</descriptors>

Of course the data is in the internal file:

<pick thing="pdsOther" index="490" batchindex="245" refcount="0" fieldcount="1" source="pwDescs">
<field id="pdsUserNm" text="My super special descriptor"></field>
</pick>

You just can't get it from the XML unless you parse the summary attribute.
FWIW, the relevant bit of code is in the "xopower" procedure, available in the editor:

Quote:
~add all descriptors on the power
childnode = xml[node].addchild["descriptors"]
foreach pick in focus.gizmo from PowerDesc
grandchild = xml[childnode].addchild["descriptor"]
xml[grandchild].attr["name"] = eachpick.field[name].text
nexteach
Unfortunately, the ability to replace procedures is very limited due to that you have to change all of the references to them, so this is something that Lone Wolf would have to fix, and they haven't been doing a lot of that.
Duggan is offline   #13 Reply With Quote