fuel all stages percentage includes volume of dumped stage until dumped stage is out of range, Causes 'while fuel Stage > 0' to end prematurely on 2nd stage. Also causes 'while fuel AllStages > 0' to not end when fuel of all stages = 0 on 2nd (final) stage.

Bug Done Found in 0.8.401.0 Fixed in 0.9.202.0
Sandbox View

11 Comments

  • Log in to leave a comment
  • Profile image

    @bspawn ok I get it now no one uses all stages

    4.3 years ago
  • Profile image

    @bspawn ok well I just finished my automatic moon landing program which includes the launch from earth and it actually works I’m incredibly surprised

    4.3 years ago
  • Profile image
    235 bspawn

    @Boingaircraft never mind. Whatever the glitch is, it has been picked up and fixed for the next version.

    4.3 years ago
  • Profile image

    @bspawn just do fuel equals zero and while throttle above zero if that doesn’t work in a repeat loop with a wait for throttle then break before the second wait

    4.3 years ago
  • Profile image

    @bspawn ok so what’s the glitch then

    4.3 years ago
  • Profile image
    235 bspawn

    @Boingaircraft

    what does work with all stages is this:

    while (true)
    wait until fuel stage <=0
    wait 2 seconds
    activate stage
    wait 2 seconds
    endwhile

    4.3 years ago
  • Profile image

    @bspawn my staging is a repeat loop stage wait a second

    4.3 years ago
  • Profile image

    @bspawn I can make a 2 stage rocket stage can you explain it simpler so I can understand maybe

    4.3 years ago
  • Profile image
    235 bspawn

    @Boingaircraft "use current stage fuel = 0"
    Thanks for the comment but that does not work, except supposedly with a long enough "wait x second" before it - i have not (yet) tested that.
    It may or may not have something to do with 'fuel all stages percentage includes volume of dumped stage'.

    4.3 years ago
  • Profile image

    @bspawn just use current stage fuel = 0

    4.3 years ago
  • Profile image
    235 bspawn

    "fuel all stages percentage includes volume of dumped stage until dumped stage is out of range" appears to be fixed, and did not cause the issues with fuel Stage / AllStages on 2nd stage.

    Vizzy code 'While Stage fuel > 0' works for the first stage but does not work for the second stage: the While loop is skipped.

    'While AllStages fuel > 0' also does not work for 2nd stage: the While loop never ends.

    The workaround i found is to use 'fuel AllStages' instead of 'fuel Stage' for the 2nd stage AND within the loop check for fuel AllStages < 0.001 and break out of the loop if true. This only works because it is a 2 stage rocket...

    +1 4.4 years ago

5 Upvotes

Log in in to upvote this post.