benelot / minemonics

(Alpha Stage, work in progress) An open-source 3D virtual creature evolution simulator built in OGRE rendering engine in C++ to experiment with emergent gait-periodicity in evolved creatures on unknown terrain.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix generation number when loading

benelot opened this issue · comments

A saved population will contain the current_generation +1 in the file, which causes the simulation to crash because it can not find a matching generation to load. Fix this by traversing back in the generation number until you find a valid folder.