-
Notifications
You must be signed in to change notification settings - Fork 208
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
[Bug] Float cost & entryCost fields #658
Comments
Odd I use and almost always have used both KW and AIES and never noticed any problem getting stuck loading. Is this new? |
That was exactly my reaction when i finally found out that this was the cause of the problems...WTH? IIRC the B9 procedural wings also have costs of "0.1" but nobody ever complained. Seems that this is new with KSP 1.2.(2). I do not have access to older versions currently so if someone can verify it for older (1.1.3) versions of KSP then please do so. Edit 1: all RO procedural fairings also use floats. But they load just fine under KSP 1.2.2! https://github.com/KSP-RO/RP-0/blob/master/tree.yml#L104-L124 Edit 2: and the stock KSP parts: https://github.com/KSP-RO/RP-0/blob/master/tree.yml#L223-L242 |
Cost always used to be a float. I guess @JPLRepo or @TriggerAu changed it?
…On May 24, 2017 9:50 AM, "Phineas Freak" ***@***.***> wrote:
That was exactly my reaction when i finally found it out...WTH? IIRC the
B9 procedural wings also have costs of "0.1" but nobody ever complained.
Seems that this is new with KSP 1.2.(2). I do not have access to older
versions currently so if someone can verify it for older (1.1.3) versions
of KSP then please do so.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#658 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE5-Io8eamYRUUyInxvc36jSswTtbs_Qks5r9F_xgaJpZM4NlYFa>
.
|
Sorry everyone, I totally remembered this incorrectly
Looking back, it looks like |
That sounds correct
…On May 24, 2017 10:33 AM, "Joseph Wong" ***@***.***> wrote:
Sorry everyone, I totally remembered this incorrectly
cost can still be a float, but entryCost must now be an integer.
Looking back, it looks like entryCost was always supposed to be an
integer, but it would have silently failed to parse it before and set to
zero. Now it will fail loudly.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#658 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AE5-IhAQ_2QA4r7TTAmKyGPUIZFry0LJks5r9GoCgaJpZM4NlYFa>
.
|
Odd inconsistency but ok. |
OK, i went through every entryCost field and they all seem OK (all entries have integer values). So, what is actual RP-0 problem? |
Part.cost is a float. No change. |
@PhineasFreak it looks like for parts that don't define |
It must be handled by the patch creator itself. Got it. Should we also add a check to disallow entry cost fields that are floats? Or, can Travis by itself handle this? Just to be on the safe side... |
You could certainly check in the case that |
@pap1723 Will this still be a problem with the next RP-0 releases? If not then it is time to close this issue. |
The user GordonDry mentioned on the forums that:
@blowfishpro noted that:
Meaning the cost and entryCost fields cannot be floats. RP-0 has been using float values for many parts but it seems that nobody ever used KW Rocketry with it? I did a quick test using MM and a completely stock install with the following patch:
The result:
None of the parts were compiled (not even the asteroids). Changing the values from 0.1 to 1 allowed the parts to complile correctly.
Known parts affected are AIES Aerospace and KW Rocketry but i am sure that there are more.
The text was updated successfully, but these errors were encountered: