mike40033 / iitc-57Cell

iitc plugins I may make from time to time, if any
Other
4 stars 1 forks source link

HCF: "Mode Random" randomily fails to find a hcf 5 #11

Closed McBen closed 1 year ago

McBen commented 1 year ago

example portals: https://intel.ingress.com/?pll=51.392946,6.759832 https://intel.ingress.com/?pll=51.392109,6.7721 https://intel.ingress.com/?pll=51.397653,6.768505

with these anchors you can build a HFC Level 5 While mode perfect always finds a solution mode random fails sometimes (randomly, roughly every second time)

Failed (with example solution) grafik found one (with an similar solution) grafik

mike40033 commented 1 year ago

Notes:

One of these is wrong.

I suspect it's to do with whether Marienbild 5 is north or south of the line from Gruft to Arm in Arm, and that portalInTriangle is giving inconsistent answers.

@McBen I'd appreciate a field test to see whether northward or southward links from Marienbild 5 are blocked when Gruft and Arm in Arm are linked.

Portal links:

Gruft: https://intel.ingress.com/intel?ll=51.397653,6.768505&z=17&pll=51.397653,6.768505 Arm in Arm: https://intel.ingress.com/intel?ll=51.395171,6.766774&z=17&pll=51.395171,6.766774 Marienbild 5: https://intel.ingress.com/intel?ll=51.396221,6.767506&z=17&pll=51.396221,6.767506 Brunnen: https://intel.ingress.com/intel?ll=51.394453,6.763827&z=17&pll=51.394453,6.763827 Stone Frau: https://intel.ingress.com/intel?ll=51.395297,6.765352&z=17&pll=51.395297,6.765352

~ 57Cell

McBen commented 1 year ago

"Portal Marienbild is RIGHT of a link from GRUFT to ARM_IN_ARM" ..northward..

used code/math: https://jsfiddle.net/mcben/j6enxyar

McBen commented 1 year ago

Looks like the problem is here: https://github.com/mike40033/iitc-57Cell/blob/master/plugins/homogeneous-fields/homogeneous-fields.user.js#L301

I can't name the situation but seems like a sub Portal is a valid center while current center is not.

mike40033 commented 1 year ago

Fixed in version 1.2.2

Thanks!