johnroper100 / CrowdMaster

Crowd Simulation for the Masses
http://crowdmaster.org
GNU General Public License v3.0
133 stars 24 forks source link

Saving Sim on frame other than frame one causes agents to start future sims from saved frame position #52

Closed axb2035 closed 7 years ago

axb2035 commented 7 years ago

Current behavior: After generating a sim if you move the current frame to any frame other than frame 1 and save the file when you generate the sim again it returns the current frame 1 but the agents start from where they were on saved frame. This necessitates a "regen" of the agents to get them back to their starting position, which if generated randomly cannot be identical to what you had before...

Note 1: I am assuming this is not an undocumented "feature" allowing you to set the start point of your sim.

Note 2: Cannot test if this also occurs with frozen agent groups due to issue #31

Expected behavior: Agents always start from frame 1 in their original position.

Steps to reproduce

Step 1: generate agents image

Step 2: run sim to at least frame 100. Does not seem to matter if you interrupt the sim part way through or let it run all the way to the end.

Step 3: Move to frame 100 and save file image

Step 4: Regenerate Simulation - agents start in Frame 100 position. image

johnroper100 commented 7 years ago

Moved to asana