thirdy / durian

Path of Exile Items watcher
http://thirdy.github.io/durian/
GNU General Public License v2.0
35 stars 10 forks source link

search terms? #64

Open Turmfalke2 opened 8 years ago

Turmfalke2 commented 8 years ago

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?

zocke1r commented 8 years ago

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

Turmfalke2 commented 8 years ago

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

E: increased area damage

zocke1r commented 8 years ago

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

ghost commented 8 years ago

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)

zocke1r commented 8 years ago

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

ghost commented 8 years ago

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

zocke1r commented 8 years ago

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?

ghost commented 8 years ago

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

zocke1r commented 8 years ago

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

ghost commented 8 years ago

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

zocke1r commented 8 years ago

@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
ghost commented 8 years ago

Ok it works now.

zocke1r commented 8 years ago

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

Turmfalke2 commented 8 years ago

increased Elemental Damage is missing, all we have is wed

zocke1r commented 8 years ago

@Turmfalke2 created pull request for it #70

ghost commented 8 years ago

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

zocke1r commented 8 years ago

@vibrasphere what do you mean with doesnt work?

ghost commented 8 years ago

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

zocke1r commented 8 years ago
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

ghost commented 8 years ago

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