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

ship:control:neutral not giving true/false. #786

Closed
TDW89 opened this issue Apr 13, 2015 · 4 comments
Closed

ship:control:neutral not giving true/false. #786

TDW89 opened this issue Apr 13, 2015 · 4 comments
Labels
bug Weird outcome is probably not what the mod programmer expected.

Comments

@TDW89
Copy link
Contributor

TDW89 commented Apr 13, 2015

print ship:control:neutral. //this gives
kOS.Safe.Utilities.flushable'1[system.Boolean]  //this
if ship:control:neutral {print false.}. // this gives
cannot cast from source type..... // this
@Dunbaratu
Copy link
Member

What on earth is kOS.Safe.Utilities.Flushable - is that a new thing?

@erendrake
Copy link
Member

@Dunbaratu the flushable stuff was a type of dirty bit class i setup so you could tell that it had been updated.

@erendrake erendrake added the bug Weird outcome is probably not what the mod programmer expected. label Apr 13, 2015
@Dunbaratu
Copy link
Member

Ah, then the bug seems to be that the suffix is retruning the wrapper class around the boolean instead of the boolean itself, and the scripts don't know how to deal with the wrapper.

@erendrake erendrake added this to the v0.17.0 Punchlist milestone Apr 13, 2015
@Dunbaratu
Copy link
Member

Can you put commit aee5ff1 into a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Weird outcome is probably not what the mod programmer expected.
Projects
None yet
Development

No branches or pull requests

3 participants