Multiple Genotype Groups 

When I try to create more than three genotype groups, the message "A
component named _1 already exists." is shown.

Here are some lines from my experiment definition:

...

~
code:~
onExpDefLoad:

GenotypeLibrary.clear();
GenotypeGroup.name="Genepool 1";
Simulator.print("Genepool 1");
GenotypeLibrary.addGroup("Genepool 2");
Simulator.print("Genepool 2");
GenotypeLibrary.addGroup("Genepool 3");
Simulator.print("Genepool 3");
GenotypeLibrary.addGroup("Genepool 4");
Simulator.print("Genepool 4");
GenotypeLibrary.addGroup("Genepool 5");
Simulator.print("Genepool 5");
...

Forums: 
Maciej Komosinski's picture

> When I try to create more than three genotype groups, the message "A
> component named _1 already exists." is shown.

Yes, this problem was already reported. It is a Windows
problem :-( and it has been worked around, wait for GUI v2.9.

You can also use the command-line which is not affected
by this problem.

MacKo

> Yes, this problem was already reported. It is a Windows
> problem :-( and it has been worked around, wait for GUI v2.9.
>
> You can also use the command-line which is not affected
> by this problem.

Hallo Maciej,
thanks for your answer and for one of the most interresting
alife-programms I've seen.

But I have another suggestion/bug (?):
The functions
Loader.loadObject(); and
GenotypeLibrary.copyGenotype(group);
do not keep the user1 value.
Are the user values thought for saving genotype specific informations? I
would like to use them to save the lowest distance to an given target
point (and then use it in the fitness formula)

Thanks for your help,
Richard

Szymon Ulatowski's picture

Richard Nauber wrote:
[...]
> But I have another suggestion/bug (?):
> The functions
> Loader.loadObject(); and
> GenotypeLibrary.copyGenotype(group);
> do not keep the user1 value.
> Are the user values thought for saving genotype specific informations? I
> would like to use them to save the lowest distance to an given target
> point (and then use it in the fitness formula)

yes, you're right.
user1/2/3 values should be preserved by all genotype functions.
thank you for reporting this bug, it will be fixed in the next release.

sz.