Bots and Simulations > DNA - General
A condition in one gene is having effect on another?
Peter:
--- Quote from: EricL ---By removing that line, you are changing the value of *.myeye from 1 to 0. As Endy said, since *.refeye is not updated on the first cycle of life, it will always be 0 when *.robage is 0. Thus, removing that line in the first gene has a direct impact on whether gene 4 fires or not and thus on whether the bot creates a tie to replace the birth tie or not and thus on whether the bot becomes a multibot or not.
--- End quote ---
Sorry, was overlooking that one.
Oh, by the way,
The old mulibot tutorial at the wiki didn't really work well. I removed it and I just putted in this one together with the first three genes of animal minimalis. It tends to work remarkably well together, good enought for a tutorial anyway.
It is pretty annoying to have a tutorial whereby the final bot doesn't run as supposed.
Numsgil:
That tutorial was quite old, probably written by PY.
Peter:
--- Quote from: Numsgil ---That tutorial was quite old, probably written by PY.
--- End quote ---
Nope, it was made by endy. I can remember it use to work. Some way all multibots just tend to be very breakable becouse of version changes.
EricL:
--- Quote from: Peter ---Some way all multibots just tend to be very breakable becouse of version changes.
--- End quote ---
I would be interested in understanding what specifically broke. It is my goal to minimize or eliminate unintentional version-to-version compatibility differences.
Endy:
Does look weird if you don't know about the robage zero eye thing. Had me going there for a second, below is the rewritten code. The first gene is fine, the fourth gene was rewritten.
--- Code: ---cond
*.refeye *.myeye =
*.eye5 0 >
start
stop
'multi control center
cond
*.multi 1 = or
start
50 .sharenrg store
150 .fixlen store
100 .stifftie store
628 .fixang store
stop
'if alone create a second part
cond
*.numties 0 =
*.robage 0 !=
start
50 .repro store
stop
'second part is recombining with it creator.
cond
*.robage 0 =
'removed line below, invalid at birth unless bot has zero eyes
'*.refeye *.myeye =
start
'made tie inc to save energy
.tie inc
stop
'if enough energie split.
cond
*.nrg 30000 >
start
.deltie dec
stop
--- End code ---
The MB tutorial I believe I wrote, I honestly only vaguely remember it now... PY's tutorial written for a single bot is on the wiki too and is still pretty useful to look at. Both are pretty old. If I can ever figure out the new eye stuff I might write a new one.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version