Evolutionary tree not working

randomly during a playthrough the evolutionary tree stopped showing and it told me to send a bug report, so here we are.

3 Likes

Thanks for the report. Hereā€™s the relevant error from the logs:

ERROR: World history is out of order, expected generation 13 but got 14
ERROR: Evolutionary tree failed to build with error: System.Collections.Generic.KeyNotFoundException: The given key '13' was not present in the dictionary.
ERROR:    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
ERROR:    at AutoEvo.GenerationRecord.GetFullSpeciesRecord(UInt32 speciesID, Int32 currentGeneration, Dictionary`2 generationHistory) in /home/hhyyrylainen/Projects/Thrive/src/auto-evo/records/GenerationRecord.cs:line 48
ERROR:    at GameWorld.<>c__DisplayClass64_0.<BuildEvolutionaryTree>b__1(KeyValuePair`2 s) in /home/hhyyrylainen/Projects/Thrive/src/general/GameWorld.cs:line 919
ERROR:    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
ERROR:    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
ERROR:    at GameWorld.BuildEvolutionaryTree(EvolutionaryTree tree) in /home/hhyyrylainen/Projects/Thrive/src/general/GameWorld.cs:line 918
ERROR:    at ThriveopediaEvolutionaryTreePage.RebuildTree() in /home/hhyyrylainen/Projects/Thrive/src/thriveopedia/pages/ThriveopediaEvolutionaryTreePage.cs:line 97

Do you have a save file from when this happened? It might have some useful extra information.

This seems like a new error so Iā€™ve opened an issue:

4 Likes

So, @AIKO , do you have a save-file from when this happened? Itā€™d be very appreciated if you shared it. You can embed it into your google disk and make the save-file public via a link, and then post the link to the file here.

i think i figured out the save thing, here you go.

For some explanation, I was using experimental features with it, (forgot to add this) and it was probably why something broke.

1 Like

To my awareness at the present the experimental features only encompass the siderophore feature (for iron organelles), so not sure if it actually has to do with the mode.

2 Likes

Thanks.

With that I was able to investigate the problem and found out that rather than things being in the wrong order, your world data is missing generation 13 for some reason. There is no code in the game that should delete any generations so the generation must not have been created in the first place for some reason.

I canā€™t make a proper fix for this, however I was able to come up with a workaround that makes malformed generation histories like this be able to display the evolutionary tree (but obviously the column for generation 13 is just completely empty).

3 Likes

Thankfully more workarounds wonā€™t be need pertaining to missing/ā€œremovedā€ generations.
I wonder just how many ā€œimproper fixesā€ will we have by the end of Microbe stage developmentā€¦