xerxes
07-08-2022, 09:15 AM
Hello,
Using this example zone filter file:
<seqfilters>
<section name="Hunt">
<oldfilter><regex>Name:.*ape.*:Race:Gorilla.*:Type:Animal.*</regex></oldfilter>
<oldfilter><regex>Name:.*gorilla.*:Race:Gorilla.*:Type:Animal.*</regex></oldfilter>
<oldfilter><regex>Name:.*tottering.*:Race:Gorilla.*:Type:Undead.*</regex></oldfilter>
</section>
<seqfilters>
It would be more intuitive if instead being an entire line match, you could just specify the filters you cared about. So I could include Name, Race, and Type, without the extra trailing ".*" to catch all of the other useless nonsense in the middle. It took me forever to realize I needed to do this to get the filters working.
Also, that begs the question. All of the filters I've seen use "oldfilter"... is there a "newfilter" or better way of formatting these files?
Using this example zone filter file:
<seqfilters>
<section name="Hunt">
<oldfilter><regex>Name:.*ape.*:Race:Gorilla.*:Type:Animal.*</regex></oldfilter>
<oldfilter><regex>Name:.*gorilla.*:Race:Gorilla.*:Type:Animal.*</regex></oldfilter>
<oldfilter><regex>Name:.*tottering.*:Race:Gorilla.*:Type:Undead.*</regex></oldfilter>
</section>
<seqfilters>
It would be more intuitive if instead being an entire line match, you could just specify the filters you cared about. So I could include Name, Race, and Type, without the extra trailing ".*" to catch all of the other useless nonsense in the middle. It took me forever to realize I needed to do this to get the filters working.
Also, that begs the question. All of the filters I've seen use "oldfilter"... is there a "newfilter" or better way of formatting these files?