Difference between revisions of "Category talk:Oblivion XML"

no edit summary
imported>Nonsanity
imported>Nonsanity
Line 25: Line 25:
[[User:Nonsanity|Nonsanity]]: EXCELLENT documentation! And I guess I should know since I designed "Oblivion XML", wrote the code for it, and made most of the base XML files. These are the docs I always wanted to do, but didn't. :) I was going to suggest using Trait instead of Attribute, since in XML "attributes" are like the "name", "src", and "trait" used here. But if Trait is confusing, go with what you like.
[[User:Nonsanity|Nonsanity]]: EXCELLENT documentation! And I guess I should know since I designed "Oblivion XML", wrote the code for it, and made most of the base XML files. These are the docs I always wanted to do, but didn't. :) I was going to suggest using Trait instead of Attribute, since in XML "attributes" are like the "name", "src", and "trait" used here. But if Trait is confusing, go with what you like.


I DO want to point out that most of the examples with operator tags don't start with a <copy> but instead use the existing value of the... Attribute... as the initial value. I would not recommend this, as examples OR as normal practice. The problem is that there is no control over when the attribute will be recalculated. Originally, the initial value for every numeric tag was 0, but there was one or two special, controlled cases where re-using the old value made sense and was safe. (I think one example was using an OnlyIf operator on the previous value to help determine the new value.) But for the most part, operator chains should always start with a Copy or one of the few other tags that are self-contained, like Rand.
I DO want to point out that most of the examples with operator tags don't start with a <copy> but instead use the existing value of the... Attribute... as the initial value. I would not recommend this, as examples OR as normal practice. The problem is that there is no control over when the attribute will be recalculated. Originally, the initial value for every numeric tag was 0, but there were one or two special, controlled cases where re-using the old value made sense and was safe. (I think one example was using an OnlyIf operator on the previous value to help determine the new value.) But for the most part, operator chains should always start with a Copy or one of the few other tags that are self-contained, like Rand.


I just stumbled on this write up. I may not be back here to read responses unless poked. I welcome emails, though remember it's been years since I made all this...
I just stumbled on this write up. I may not be back here to read responses unless poked. I welcome emails, though remember it's been years since I made all this...
[[User:Nonsanity|Nonsanity]] 15:14, 19 May 2011 (EDT)
[[User:Nonsanity|Nonsanity]] 15:14, 19 May 2011 (EDT)
Anonymous user