Gravity setting glitch

  • Darmagon
    30th Jun 2018 Member 0 Permalink

    It appears that sometimes if I switch saves then it appears that sometimes the gravity setting carries over. This can result in things like a city imploding into a planet and things like that.

  • lamyipfu
    1st Jul 2018 Member 0 Permalink

    Can confirm this bug(Got this before but I forget it).

    How to reproduce:
    1. Draw a lot of GRVT with newtonian gravity on and let it runs a few frames.
    2. Clear screen
    3. Draw a lot of WIFI in the region where GRVTs had occupied.
    4. Observe that the WIFI breaks due to the leftover g-field

    Reloading a save will also have similar effect.

    Likely caused by the fact that g-field updates with some latency.
    Should be relatively easy to locate the bug, Gravity::Clear() forgets to reset buffers.
    But taking care of the buffers without breaking the threads might need some careful reading.

  • Cracker1000
    1st Jul 2018 Member 0 Permalink

    @Darmagon (View Post)

     I think its a bug where gravity fields didn't reset even after ctrl+z.Its fixed in the snapshot 42 i guess.

    Edited once by cracker1000. Last: 1st Jul 2018
  • jacob1
    1st Jul 2018 Developer 0 Permalink
    I added a note on github to fix this for 94.0. I haven't looked into it, but I can reproduce this bug.

    Also I don't think the ctrl+z bug was fixed in the snapshots. The github issue about it is still open.
    Edited once by jacob1. Last: 1st Jul 2018
  • Cracker1000
    1st Jul 2018 Member 0 Permalink

    @jacob1 (View Post)

     Hmm.This is what changelog of snapshot 42 says

    "Fix gravity field appearing after ctrl+z even if gravity is off"

  • jacob1
    1st Jul 2018 Developer 0 Permalink
    @cracker1000 (View Post)
    Snapshot 42 was a really long time ago. That's sounds like a similar a separate bug. In this bug, newtonian gravity is still on the entire time
  • Cracker1000
    1st Jul 2018 Member 0 Permalink