schrum2 / EvoCraft-SCOPE

0 stars 0 forks source link

Extinction crash #24

Closed schrum2 closed 2 years ago

schrum2 commented 2 years ago

If you evolve for a few generations without selecting anything, the simulation will crash. This is only possible with IN_GAME_CONTROL when you advance to the next generation without flipping any switches ... I think. There seems to be a problem when the whole population has the same fitness. This is an issue with NEAT, but is also related to the weird way we are evolving. Maybe we need to change the InteractiveStagnation class, or maybe we just need a special case to handle this error.

schrum2 commented 2 years ago

Changing settings in NEAT config seems to have fixed this. When whole pop goes extinct, just reset with a new population