-
Notifications
You must be signed in to change notification settings - Fork 251
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
Comments
could you please past in here some example scan results that include pirate relict sides in here? Then I can see and add them. |
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 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. |
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? |
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. |
@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 |
This is working much, much better now - thanks a bunch for the fix. The only quirk I noticed tonight was with this sig:
When pasted, "Superior Guristas Covert Research Facility" was put into the description field and not the type field. Cheers. |
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. |
Hey there,
Copy+pasting a sig that is a pirate faction relic site generally doesn't work as it should.
It will either:
I never see any issues with Gas sites or even with Sleeper Relic sites (i.e. Forgotten).
Cheers.
The text was updated successfully, but these errors were encountered: