Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing of pirate relic sites is inaccurate #747

Closed
pezz opened this issue Feb 1, 2019 · 16 comments
Closed

Parsing of pirate relic sites is inaccurate #747

pezz opened this issue Feb 1, 2019 · 16 comments
Assignees
Milestone

Comments

@pezz
Copy link

pezz commented Feb 1, 2019

Hey there,

Copy+pasting a sig that is a pirate faction relic site generally doesn't work as it should.

It will either:

  • Just set the sig type to Relic and produce no other output on the row
  • Set the sig type to Relic and add the type of site as a comment
  • Paste as a Relic but put in the completely wrong name (i.e. a Ruined Guristas Whatever could be added as a Sansha Crystal Quarry)

I never see any issues with Gas sites or even with Sleeper Relic sites (i.e. Forgotten).

Cheers.

@exodus4d
Copy link
Owner

exodus4d commented Feb 4, 2019

could you please past in here some example scan results that include pirate relict sides in here? Then I can see and add them.
if the type shows "as a comment" that´s the fallback if no other type match, so it is just missing yet.
The name of the system would be nice as well, not each site shows up in each region,...

@exodus4d exodus4d added minor bug need more information More detailed information is needed. labels Feb 4, 2019
@pezz
Copy link
Author

pezz commented Feb 5, 2019

TMQ-388 Cosmic Signature Relic Site Ruined Guristas Temple Site 100.0% 63.01 AU

screenshot_2019-02-05 pathfinder

@pezz
Copy link
Author

pezz commented Feb 5, 2019

BWO-953 Cosmic Signature Data Site Unsecured Frontier Database 100.0% 46.15 AU
screenshot_2019-02-05 pathfinder 1

@pezz
Copy link
Author

pezz commented Feb 5, 2019

EHR-868 Cosmic Signature Relic Site Ruined Guristas Crystal Quarry 100.0% 69.87 AU

screenshot_2019-02-05 pathfinder 2

@pezz
Copy link
Author

pezz commented Feb 5, 2019

With the wormhole I just scanned, this is how all of the Relic sites pasted.

screenshot_2019-02-05 pathfinder 1

Also the Data site above is from the same wormhole.

This is out of the ordinary for what I normally see, the first example I posted, TMQ, where the name is simply wrong is what I see most often.

@pezz
Copy link
Author

pezz commented Feb 6, 2019

FSP-439 Cosmic Signature Relic Site Ruined Sansha Temple Site 100.0% 5.53 AU

screenshot_2019-02-06 pathfinder

@pezz
Copy link
Author

pezz commented Feb 6, 2019

THA-612 Cosmic Signature Relic Site Forgotten Frontier Quarantine Outpost 100.0% 5.10 AU
TQT-021 Cosmic Signature Relic Site Ruined Serpentis Monument Site 100.0% 11.14 AU

screenshot_2019-02-06 pathfinder

@pezz
Copy link
Author

pezz commented Feb 6, 2019

Forgottens always seem to paste fine.

Anyway, I'll stop with the comments unless you want me to keep adding things, but pretty much every pirate Relic site never pastes properly.

@pezz
Copy link
Author

pezz commented Feb 6, 2019

Actually, one more... :)

VFU-907 Cosmic Signature Relic Site Ruined Blood Raider Science Outpost 100.0% 4.61 AU

screenshot_2019-02-06 pathfinder

@exodus4d
Copy link
Owner

exodus4d commented Feb 8, 2019

@pezz Thanks, what I need to know is the System name (or wormhole JXXXXXX name) with your scan result information. Then I could add the missing names.

@pezz
Copy link
Author

pezz commented Feb 9, 2019

Hmm, nah I don't have that info now.

I live in a C4 with a C3 static, so there's a new C3 every day.

Are you sure that "missing" names are the problem? I always seem to be able to correct the info manually. Any type of pirate relic / data site can spawn in C3s and below (and C13s), so I don't understand why having the Jxxxxxx would help?

@pezz
Copy link
Author

pezz commented Mar 7, 2019

pf

To further demonstrate, what gets pasted is in the type field and what the site actually is I have put in the description to show you.

This is pretty broken.

@jmac077
Copy link

jmac077 commented Mar 26, 2019

They're parsed incorrectly because x-editable does not guarantee order when converting objects to source data for lists. Even though the relic/data sites are given specific int values in /js/app/conf/signature_type.js when itemsByValue is called in /js/app/ui/module/system_signature.js

let selected = $.fn.editableutils.itemsByValue(value, sourceData);

x-editable converts the object definition to an array where it is given the next consecutive int value. The object int values used when the type is encoded are not consecutive so you get a different name when they're decoded to text due to removing the gap in the int values created in the object definitions in signature_type.js.

@exodus4d exodus4d self-assigned this Apr 20, 2019
@exodus4d exodus4d added this to the v1.5.1 milestone Apr 20, 2019
@exodus4d exodus4d removed the need more information More detailed information is needed. label Apr 20, 2019
@exodus4d
Copy link
Owner

@pezz Thanks for your report! I could finally reproduce the issue with the scann results you posted here.

@jmac077 This was not a problem with the "parsing" function, or xEditable plugin. The main issue here was, that I used two different function for getting the typeId of a pasted signature scan result and generating all available type select options afterwards.... my bad :(

@pezz
Copy link
Author

pezz commented Apr 23, 2019

This is working much, much better now - thanks a bunch for the fix.

The only quirk I noticed tonight was with this sig:

GUL-500 Cosmic Signature Data Site Superior Guristas Covert Research Facility 100.0% 6.50 AU

When pasted, "Superior Guristas Covert Research Facility" was put into the description field and not the type field.

Cheers.

@pezz
Copy link
Author

pezz commented Apr 24, 2019

I just worked out why it pasted like that (yeah, took me longer enough heh).

It's because that ghost site spawned in my C4 and you only allow the selection of the sleeper data sites as a type for C4s.

@exodus4d exodus4d mentioned this issue May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants