I'm trying to use a Catalog set to change the value of an effect but everything I've tried so far has given be syntax errors when attempting to save. Specifically, I'm having trouble figuring out what the Field Path is for the VitalArray in a Modify Unit effect. Its raw data is given as CEffectModifyUnit_VitalArray + and the value is (a|b|c):(a|b|c) for Change:Change Fraction respectively and (Life|Shields|Energy) but I can't figure out what the specific Field Path is named (I'm trying to get the Life Change).
Catalog Field Value Set:
Catalog: Effect
Entry: whatever the name of the effect is
Field Path: VitalArray.Change[0]? VitalArray[0].Change? VitalArray +[0]?
I tried a bunch of stuff and it's all syntax errors. Am I going completely in the wrong direction?
If you have a custom effect, you can see it's XML implementation by going to the import editor, clicking on the "Show reserved" button on the upper right and look for the effectdata.xml in the list.
It isn't highlighted, though.
Well, here's a tip instead of going through import/xml/mpq stuff.
(a|b|c) is an array. First uncheck "Combine Structure Values" while in raw data view, since raw data combined isn't too useful when fetching field info.
You'll see CEffectModifyUnit_VitalArray_Change . Whenever there's a word like "VitalArray" and it contains data that's an array, it's pretty safe to assume that it's an array, and you know where the array likely begins at with this word usage.
Change the value you want, and if it says e.g. (1|0|0), you know the index is 0.
So VitalArray[0].Change = the value.
It may sound confusing, but really that's about as complex as it gets, anyways. And it's a lot faster to learn how to view it in the data editor than having to use a 3rd party app or another module every time you want information like that.
Now what's more annoying/fun to learn is what can be catalog edited, and what can't. I've heard a certain tip of "If an upgrade can modify a value of something, then a catalog set can too". This seems to be the case pretty often, but not always. Really I don't see any rhyme or reason on what can or cannot be catalog edited, it's just what Blizz decided.
Most effect values, however, can be modified with catalog set. Not all, but most.
I'm trying to use a Catalog set to change the value of an effect but everything I've tried so far has given be syntax errors when attempting to save. Specifically, I'm having trouble figuring out what the Field Path is for the VitalArray in a Modify Unit effect. Its raw data is given as CEffectModifyUnit_VitalArray + and the value is (a|b|c):(a|b|c) for Change:Change Fraction respectively and (Life|Shields|Energy) but I can't figure out what the specific Field Path is named (I'm trying to get the Life Change).
Catalog Field Value Set:
I tried a bunch of stuff and it's all syntax errors. Am I going completely in the wrong direction?
VitalArray[Life].Change
The easiest way to figure out the field path is to take a look at the raw XML.
@RileyStarcraft: Go
Awesome! Thank you! I suppose I should find out how to view the raw XML now to avoid future re-occurrences.
I haven't found a way to view it from within the editor, so I use Ladik's MPQ Extractor to unpack the map file.
If you have a custom effect, you can see it's XML implementation by going to the import editor, clicking on the "Show reserved" button on the upper right and look for the effectdata.xml in the list.
It isn't highlighted, though.
Well, here's a tip instead of going through import/xml/mpq stuff.
(a|b|c) is an array. First uncheck "Combine Structure Values" while in raw data view, since raw data combined isn't too useful when fetching field info.
You'll see CEffectModifyUnit_VitalArray_Change . Whenever there's a word like "VitalArray" and it contains data that's an array, it's pretty safe to assume that it's an array, and you know where the array likely begins at with this word usage.
Change the value you want, and if it says e.g. (1|0|0), you know the index is 0.
So VitalArray[0].Change = the value.
It may sound confusing, but really that's about as complex as it gets, anyways. And it's a lot faster to learn how to view it in the data editor than having to use a 3rd party app or another module every time you want information like that.
Now what's more annoying/fun to learn is what can be catalog edited, and what can't. I've heard a certain tip of "If an upgrade can modify a value of something, then a catalog set can too". This seems to be the case pretty often, but not always. Really I don't see any rhyme or reason on what can or cannot be catalog edited, it's just what Blizz decided.
Most effect values, however, can be modified with catalog set. Not all, but most.