Add a log statement with the planet mass expression specifying the default (Droo) as the planet.

Expected: The mass of the planet should be logged.
Actual: The mass of the planet is reported as 0.0

Bug Rejected Found in 0.9.200.0
Sandbox View

6 Comments

  • Log in to leave a comment
  • Profile image
    10.4k sflanker

    I'm sure you already know this but it looks like new Planet elements are being spawned with the wrong op attribute: op="Radius" even though the drop down shows Mass selected in the UI.

    Also, good news, it looks like all I have to do is change the dropdown and then change it back, to get it working, no extra steps needed.

    5.1 years ago
  • Profile image
    10.4k sflanker

    Yup, that fixes the expression. I can repeatably repro: new expression with Mass selected returns zero, change drop down to Radius, save to craft, launch, exit, change drop down to Mass, save to craft, launch, correct value is returned. Thanks for the workaround!

    5.1 years ago
  • Profile image

    Try switching the planet expression to something other than mass and then switch it back to mass and see if that fixes your particular issue.

    5.1 years ago
  • Profile image
    10.4k sflanker

    Doesn't look like that was a factor, here is a brand new craft that has the problem: https://www.simplerockets.com/c/09JQ5v/Mass-Expression-Bug.

    I was haxin with my FlightPrograms/__new__.xml file and one point trying to get a library of useful expressions to show up in all my new flight programs, but that didn't work because SimpleRockets seems to always overwrite it with the original. Here is what that file looks like now (except that all of the XML entity escaping is introduced by this websites broken markdown renderer):

    <?xml version="1.0" encoding="utf-8"?>
    <Program name="New Program">
       <Variables />
       <Instructions>
          <Event event="FlightStart" id="0" style="flight-start" pos="-10,-20" />
       </Instructions>
       <Expressions />
    </Program>
    
    5.1 years ago
  • Profile image
    10.4k sflanker

    Hmm, I have been known to do that. Let me try again from scratch.

    5.1 years ago
  • Profile image

    Did you hand edit any XML in your Flight Program?

    5.1 years ago

No Upvotes

Log in in to upvote this post.