1.) Insert a new value works for settings files ( my plasment control for settings files to if its not lost)
2.) I like PY's sliders he included in the mutation rates , I want them to actualy mutate and work for each robot seporatly, I cant say what there defult range should be , I use PY standerd it works fine exsept:
cond
30 'number
20 'number
>
is the same as
4 'number
1 'number
>
The solution is not to let two numbers mutate in one cond part.
3.) (Sliders Part Two) I need new sliders to reprosent the following:
The chance to insert *number , or *.sysvar, or any-number, or .sysvar-or-number
Into the actions part of the gene.
4.) All Mutation Rates are saved in the robots dna file , simuler to the way hash saves (but dont incript too heavy please)
5.)A Minor Bug with inserting [you]new instructions [/you]and [you]new values[/you]:
While pos < fd
If ppos = pos Then Exit Function
ppos = pos
pos = NextElement(DNA, pos, 4, 2) + 1 'position of the start element
endg = NextElement(DNA, pos, 4, 3) 'end of the gene
While pos <= endg
If Random(1, prob) = 1 Then
If MakeSpace(DNA, pos, 1) Then
DNA(pos).tipo = 2
DNA(pos).value = Random(1, 9)
x = x + "Inserted instr," + Instrname(DNA(pos).value) + ", at pos " + CStr(pos) + vbCrLf
InsertRandomInstr = InsertRandomInstr + 1
'pos = pos +1 'MUST BE ADDED HERE
End If
End If
pos = pos + 1
Wend
Wend
For bouth functions , the system forgets to skip positions after inserting a new value , witch means that all the new values and instructions always end up in the bigging of the gene.
6.)I cant even biggin to describe what happens if all rates or portions of rates are set to "1", I never seen so mutch hang-ups. As a long term project we need to fix the mutations not to mutate the dna so mutch that it causes hang-ups in the run time.
***
Num, How do you wont the charts to "save"?
***
If you need help on any of the items above please specify