Bots and Simulations > DNA - General

5 Questions re DB opns

(1/7) > >>

AZPaul:
Howdy 'gin folk,

Some simple inquiries to facilitate my understanding:

1.  Console

Usefull debug tool. Console window says "type help." Do that...nothing happens.
Can we see a bot's specific memory values thru console? Also, would like ability to expand that window some to see more.  My DNA is (as am I) quite verbose.

2.  Specific to memloc/memval

Do we have to "shoot" .eye5 to gain these values? I've looked for an example, not extensively tho since I'm being somewhat lazy this week, and can't find one.  If I shoot a memloc thru .eye5 does the target bot have to "shoot" back the memval? (I hope not). Any code example (some specific bot in the library)?

3.  Criteria for "Saving Best Bot"

Is this based soley on # offspring produced (I would assume) and what is the tiebreaker when you have 30 bots with same # of prodgeny?

4.  Organism vs DNA save

Say what? So once the best is saved I have to go back retrieve it into a sim and capture the DNA? The DNA is the organism, yes? Why not just save the bot's DNA in the usual .txt format? There is a reason, I'm sure. What is it? What am I missing?

5.  DNA limits

In building my base evo sim bots I am throwing all code efficiency to the cows.  I am purposely breaking gene conditionals into separate genes using switches/triggers for control. When .sexrepro is working well enough the gene swap routines will produce copious variability. I have a base herbivore now that goes out looking to cuddle up to a mate (proximity sets off the .repro gene) and I haven't even built in the sex selection criteria yet. She just gets close enough to any other of her species and drops the kid. Already up to 30+ genes. What are the limits? # of genes? overall DNA length?

OK, I lied, again. 6 questions.

6.  Racial memory

The racial memory is passed onto junior one location per cycle after the 20-cycle birth tie is severed?  Even if mom & junior are in the process of swimming away from each other? Is this intended to be the "nurture" side of the "nurture vs nature" duality? No, I'm not complaining. I can make use of this.  Just curious.

I gotta tell ya, I love this thing. Not just the academic exercise. It's down right fun.

One of the first areas to be "mutated" is often that "break birth tie" logic (at least that's the one most immeadiatly visible). The result can be hilarious (I'm easily entertained).  I had a cluster of 16 cells all linked and thrashing about like a tenticled anemone enveloping one of those cabbages (alga_minimalis).  Even though no mutated code showed any coordinated action, when a delta came up to take a nibble the "arms" seemed to fold around it and each cell shot the ever-livin bejesus out if it. One dead delta. This happened atleast a dozen times.  Eventually, about 6 deltas all found it all at once and ripped it to shreds. The thing lasted a good 20,000 cycles.

Enough for now. Gotta go.

Thanks, as always.

-P

Numsgil:
I'll answer what I can, but some of this I never use, so I don't know how it works.

1.  What are you typing exactly.

Type exactly what I put on the line beneath this one and hit enter
help

that should tell you all about various console commands.

The widow that shows DNA should have a slider on it.  It's uinfortunate that each bit is given it's own line.  Makes the DNA very long.

2.  Okay, memval works exactly like the ref variables.  It returns whatever is in the memory location memloc of the robot in eye5.  There aren't any shots involved, it's all automatic.

memloc likes to reset in 2.35, so make sure you're resetting it the turn before you're reading it.  I have this at the start of my DNA, takes care of everything:

cond
*.memloc .yourvalue !=
start
.yourvalue .memloc store
stop

where .yourvalue is the memory location you want.

3.  Yep, most numerous offspring, though I'm playing with the idea of returning the bot who has the most vested energy between it and it's offspring.

So it's whichever species can retain the most energy, not necessarily number of individuals.

But that's all for later of course.

4.  No idea.  I just copy and paste DNA from the console to a text file.

5.  In 2.35, the number of genes is like 300 I think and the DNA length is 1000 I think.  The DNA length in the newer version will be removed, but I think the gene limit is still there.

6.  
--- Quote ---The racial memory is passed onto junior one location per cycle after the 20-cycle birth tie is severed
--- End quote ---

Close, it's:
The racial memory is passed onto junior one location per cycle after the 20-cycle if the birth tie isn't severed.

AZPaul:
Whoa, that was quick, Nums. Thanks.

1. Console

Yes, just

help

in the console window and I get zip. Not even character feedback.
The console is not "running" at the time.
Again curious, what are the "nose" and "hand" for?

2. Memloc/memval

Excellent answer! Just what I needed. You coded this just for me and my strange peccadillos, didn't you. Excellent answer, indeed.

3. Best bot offspring

So what does the code in 2.35 do now when there are numerous bots with the same # offspring?

4.  Organism vs DNA

Not that there isn't enough on the programmers' plates, but, maybe consider changing this. Unless there is real reason it is the DNA code we want to look at on these mutants. Might as well save a step and write best bot to .txt  

I'm not sure how an "organism" is defined in DB. We save the color, display size, that little gene display in the center, mem locations and values? Doesn't really matter. Unless there is some hidden need unknown to us both?

5. So after the 20-cycle period, [you]if the birth tie is still there[/you], the transfer will take place one location per cycle? I thought DB disolved the tie automatically at 20 cycles, no?

-P

shvarz:
4.  When you save organism, you save the whole thing, even if it is multicellular.  And I beleive you save everything, including all memloc values, energy and stuff.  For multibots you also save the relative positions of all bots in the organism.

PurpleYouko:

--- Quote ---5. So after the 20-cycle period, if the birth tie is still there, the transfer will take place one location per cycle? I thought DB disolved the tie automatically at 20 cycles, no?
--- End quote ---

No you got that wrong.

Birth ties last 100 cycles.
Ties that robots attach themselves remain soft and pliable for 20 cycles before hardening.

 :D  PY  :D

Navigation

[0] Message Index

[#] Next page

Go to full version