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

Vessel identifiers can become unassigned between generation and acceptance #496

Closed
jrossignol opened this issue Mar 24, 2016 · 7 comments
Closed
Labels
Milestone

Comments

@jrossignol
Copy link
Owner

It's possible for a vessel identifier that was valid when a contract was generated to become unassigned by the time the contract is accepted. Because of the way stuff in data nodes and requirements get checked, it's not currently possible to write a contract that will properly check stuff like this after generation.

My current thoughts on a solution would involve targeting this specific case, and adding a ValidVessel requirement that takes a vessel identifier, replacing the expression entirely.

Raised based on the RP-0 Crew Rotation Contract and this discussion.

@jrossignol
Copy link
Owner Author

@inigmatus and @severedsolo should probably also check this one out as it may come in useful for their contract packs.

@NathanKell
Copy link

ValidVessel seems a reasonable solution, yeah.

@severedsolo
Copy link

That would be very useful as long as I can still use expressions to check I've got a vessel that makes sense

@jrossignol
Copy link
Owner Author

jrossignol commented Mar 24, 2016 via email

@inigmatus
Copy link
Contributor

interesting. my contracts typically center around following one from launch to landing. i'll keep the feature in mind though!

@severedsolo
Copy link

This worries me:
If at any point the vessel is no // longer valid, this will return false and fail the contract.
When you say "fails" does that mean penalties get applied (even if it isn't the players fault) or will the contract just go away.

@jrossignol
Copy link
Owner Author

Penalties will get applied.

Long term I'd like to do a revamp to improve contract requirements to allow more flexibility (allow flags to specify whether checks are done for active contracts, whether failure penalties apply and messages in #464). If you have specific stuff that you want (or specific details for the ones mentioned before), then raise an issue to track it.

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

No branches or pull requests

4 participants