durian icon indicating copy to clipboard operation
durian copied to clipboard

search terms?

Open Turmfalke2 opened this issue 10 years ago • 20 comments

hi, I can't figure out how what I need to type in the search field. Like what would I need to type to search for ignite chance? or a jewel with increased mine damage?

Turmfalke2 avatar Jan 31 '16 01:01 Turmfalke2

Hi, in the current versions terms file these mods are not possible to be searched. but if you add the following lines to mod-ofs.txt you will be able to search for them

inc(reased)?MineD(amage|mg)             =       mod_name=#% increased Mine Damage&mod_min=&mod_max=&$MG
(\d+)(inc(reased)?MineD(amage|mg))       =       mod_name=#% increased Mine Damage&mod_min=$GROUP1&mod_max=&$MG
(\d+)-(\d+)(inc(reased)?MineD(amage|mg)) =       mod_name=#% increased Mine Damage&mod_min=$GROUP1&mod_max=$GROUP2&$MG

Ign?(ite)?Ch(ance)?                     =       mod_name=#% chance to Ignite&mod_min=&mod_max=&$MG
(\d+)(Ign?(ite)?Ch(ance)?)              =       mod_name=#% chance to Ignite&mod_min=$GROUP1&mod_max=&$MG
(\d+)-(\d+)(Ign?(ite)?Ch(ance)?)        =       mod_name=#% chance to Ignite&mod_min=$GROUP1&mod_max=$GROUP2&$MG

if you find that any more things you currently cant search for please post them here so that they can be added to the base version, Also if you find that common abbreviations for search tokens are not supported please post them as well, so that they can be added

zocke1r avatar Jan 31 '16 07:01 zocke1r

Not working, parentheses aren't balanced, had to add some closing parentheses for the minedamge, trap damage is also missing.

E: increased area damage

Turmfalke2 avatar Jan 31 '16 14:01 Turmfalke2

thank you, looks like i forgot to fix that in this post in the pull request i fixed it already, added trap damage aswell to pull request #60

zocke1r avatar Jan 31 '16 14:01 zocke1r

hi, how do i search for global crit multiplier on amulets, etc? how do i search jewel mods? how do i search gems and gem level? e.g. ice crash lvl 20 (not the requirement lvl, but the gem lvl)

ghost avatar Jan 31 '16 19:01 ghost

the search term for global crit multi is gcritmulti. the term for your example would be amulet gcritmulti Which jewel mods do you mean? to search for gem level and map lvl the search term is glvl. the terms for your eaxmple would be icecrash glvl20

zocke1r avatar Feb 01 '16 02:02 zocke1r

Why aren't these on terms tab? Jewel e.g. +2 mana gained on attacks + % inc max life

ghost avatar Feb 01 '16 08:02 ghost

increased max life is already supported just use mlife, the thing is jewels have no separate file for their mods, and what is not on the terms tab?

zocke1r avatar Feb 01 '16 11:02 zocke1r

It's missing documentation on what terms to use, e.g. I didn't find how to use accuracy mod

ghost avatar Feb 01 '16 11:02 ghost

I'm sorry but i have to disagree on your first point the help page clearly states which search terms are supported and to what poe.trade mod they represent

1. Open the terms directory and you'll see text files. These text files contain the 'search terms' that Durian will understand.
2. One line in the txt file is equivalent to a one search term.
3. The format is {search term} = {http key-value pair(s)}. 

And all terms that support numbers follow with a few exceptions the same pattern

f(lat)?acc(uarcy)?                      =       mod_name=+# to Accuracy Rating&mod_min=&mod_max=&$MG
(\d+)(f(lat)?acc(uarcy)?)               =       mod_name=+# to Accuracy Rating&mod_min=$GROUP1&mod_max=&$MG
(\d+)-(\d+)(f(lat)?acc(uarcy)?)         =       mod_name=+# to Accuracy Rating&mod_min=$GROUP1&mod_max=$GROUP2&$MG

and in case you are not familiar with regex, (\d+) represents at least any one digit. for example 15facc equates to a minimum of 15 to Accuracy Rating mod

zocke1r avatar Feb 01 '16 20:02 zocke1r

I tried 15facc and I get Invalid: 15facc in red next to Run button.

ghost avatar Feb 06 '16 15:02 ghost

@vibrasphere after verifying that the above mentioned regex does match against 15facc, i have to ask did you add these lines to any of your terms files?

f(lat)?acc(uarcy)?                      =       mod_name=+# to Accuracy Rating&mod_min=&mod_max=&$MG
(\d+)(f(lat)?acc(uarcy)?)               =       mod_name=+# to Accuracy Rating&mod_min=$GROUP1&mod_max=&$MG
(\d+)-(\d+)(f(lat)?acc(uarcy)?)         =       mod_name=+# to Accuracy Rating&mod_min=$GROUP1&mod_max=$GROUP2&$MG

zocke1r avatar Feb 07 '16 04:02 zocke1r

Ok it works now.

ghost avatar Feb 07 '16 08:02 ghost

nice to hear, if you have any more problems feel free to post them

zocke1r avatar Feb 07 '16 09:02 zocke1r

increased Elemental Damage is missing, all we have is wed

Turmfalke2 avatar Feb 08 '16 11:02 Turmfalke2

@Turmfalke2 created pull request for it #70

zocke1r avatar Feb 08 '16 12:02 zocke1r

Can you give me lines for global multiplier, gcritmulti is not working.

ghost avatar Feb 11 '16 14:02 ghost

@vibrasphere what do you mean with doesnt work?

zocke1r avatar Feb 11 '16 14:02 zocke1r

I get errors for searching gcritmulti and there is no Global Crit Multiplier terms in my Terms tab.

ghost avatar Feb 11 '16 14:02 ghost

gcritmulti                          =       mod_name=(pseudo) (total) #% increased Global Critical Strike Multiplier&mod_min=&mod_max=&$MG
(\d+)gcritmulti                     =       mod_name=(pseudo) (total) #% increased Global Critical Strike Multiplier&mod_min=$GROUP1&mod_max=&$MG
(\d+)-(\d+)gcritmulti               =       mod_name=(pseudo) (total) #% increased Global Critical Strike Multiplier&mod_min=$GROUP1&mod_max=$GROUP2&$MG

here are the terms for, but that is weird because as it looks like gcritmulti was part of the mod-ofs file since the beginning

zocke1r avatar Feb 11 '16 15:02 zocke1r

Well, it wasn't. Works now, thanks.

ghost avatar Feb 11 '16 15:02 ghost