phetsims / build-a-molecule

"Build a Molecule" is an educational simulation in HTML5, by PhET Interactive Simulations.
GNU General Public License v3.0
8 stars 7 forks source link

Reset All inconsistent collection. First reset won't let you continue #135

Closed KatieWoe closed 4 years ago

KatieWoe commented 4 years ago

Test device Dell Operating System Win 10 Browser Chrome Problem description Found when checking https://github.com/phetsims/build-a-molecule/issues/122. Seems unrelated to that issue. When you reset the first or second screen after completing a collection, the first time it will reset to show the first collection. If you hit reset again it shows you Collection 1, but it will be the collection you were on before, with those atoms and molecules. If you try to complete the collection after the first reset you will not get the continue dialog after completing it. Steps to reproduce

  1. Go to the first or second screen
  2. Complete a collection
  3. When in the second collection, hit reset all
  4. Try to complete the first collection again
  5. Hit reset all a second time

Visuals firstreset newresetbehavior

Troubleshooting information:

!!!!! DO NOT EDIT !!!!! Name: ‪Build a Molecule‬ URL: https://phet-dev.colorado.edu/html/build-a-molecule/0.0.0-dev.33/phet/build-a-molecule_en_phet.html Version: 0.0.0-dev.33 2019-12-16 16:05:03 UTC Features missing: touch Flags: pixelRatioScaling User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36 Language: en-US Window: 1536x722 Pixel Ratio: 2.5/1 WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium) GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium) Vendor: WebKit (WebKit WebGL) Vertex: attribs: 16 varying: 30 uniform: 4096 Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32) Max viewport: 32767x32767 OES_texture_float: true Dependencies JSON: {}
KatieWoe commented 4 years ago

Now that I think of it, it may be related to https://github.com/phetsims/build-a-molecule/issues/121

Denz1994 commented 4 years ago

I think this has been fixed in the above commit. It can be verified on the latest dev version.

Denz1994 commented 4 years ago

Can you confirm this is fixed @KatieWoe?

ghost commented 4 years ago

If you hit reset again it shows you Collection 1, but it will be the collection you were on before, with those atoms and molecules.

This is fixed.

If you try to complete the collection after the first reset you will not get the continue dialog after completing it.

This is not fixed.

Denz1994 commented 4 years ago

I see. I wasn't resetting the allFilledProperty along with the flag determining if the dialog has shown once on the BAMScreenSubtypes. This change has been made in this dev version.

loganbraywork commented 4 years ago

Appears to be fully fixed now

Denz1994 commented 4 years ago

Nice. Closing this one.