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

Issues reading from at least one other XWS file #2

Closed
stickus opened this issue Jun 5, 2017 · 3 comments
Closed

Issues reading from at least one other XWS file #2

stickus opened this issue Jun 5, 2017 · 3 comments

Comments

@stickus
Copy link

stickus commented Jun 5, 2017

Still getting the issue I had before with "Failed to import XWS file". Tested with the following file:

{ "version": "0.3.0", "name": "Biggs, Rex, Thayne, Jess", "faction": "rebel", "points": 99, "description": "Rebel Mini Swarm", "pilots": [ { "name": "thanekyrell", "ship": "arc170", "points": 31, "upgrades": { "amd": [ "m9g8" ], "crew": [ "jynerso" ], "title": [ "allianceoverhaul" ] } }, { "name": "captainrex", "ship": "tiefighter", "points": 14 }, { "name": "jesspava", "ship": "t70xwing", "points": 26, "upgrades": { "amd": [ "r2d6" ], "mod": [ "integratedastromech" ], "ept": [ "adaptability" ] } }, { "name": "biggsdarklighter", "ship": "xwing", "points": 28, "upgrades": { "amd": [ "r5p9" ], "mod": [ "integratedastromech" ] } } ], "vendor": { "voidstate": { "squadron_id": 709191, "link": "http://xwing-builder.co.uk/view/709191/biggs-rex-thayne-jess", "builder": "Voidstate's Unofficial X-Wing Squadron Builder", "builder_link": "http://xwing-builder.co.uk/build" } } }

@sheepeatingtaz
Copy link
Owner

sheepeatingtaz commented Jun 5, 2017

Thanks, I can see the problem with this, and some guidance on what do do to resolve it would be appreciated!

The issue is Adaptability. The same xws is used in xwing-data for 2 separate upgrades (+1 and -1 ps).

I can pick an arbitrary one to use, but that isn't necessarily correct: The player doesn't decide up or down until placement.

I could pick one, and then leave it to the overlay controller to adjust the pilot skill if desired prior to the match starting (already available in the overlay control interface). Is this too much hassle? What do you think?

@sheepeatingtaz
Copy link
Owner

sheepeatingtaz commented Jun 5, 2017

On looking into it further, this might be the only solution at the moment: Adaptability as an Upgrade (despite there being a distinction between + and - in the data) doesn't actually 'grant' a PS skill change (VI, for comparison 'grants' a skill increase of 2).

There's a PR outstanding on xwing-data (guidokessels/xwing-data#81) which I will keep an eye on, but the fix just pushed will at least allow the data to load.

@stickus
Copy link
Author

stickus commented Jun 5, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants