Code center > Bugs and fixes

Bugs in 2.36.1

<< < (8/11) > >>

Old Henk:

--- Quote ---Is there a way for the Bot to know it is a "subsequent" generation (not generation 0)?
--- End quote ---
A bot cannot know that absolutely sure, but a gene like
cond
*.robage 0 =
*.eye5 77 =
start
bla
stop

or, since im unsure on the 77 value

cond
*.robage 0 =
*.eye5 70 >
start
bla
stop

Should do the trick

PurpleYouko:
The program knows which generation a robot is. ie. it is stored in the robot array for each bot.
However the robot has no way at present to be able to read this value. The best way I can think of is to have the baby fire a tie at birth then in the following cycle have the mother program the baby with the new value.

Imagine that .generation (custom variable at some value) is used to define generation and .newmom (custom variable at some value) is used to tag each new birth. This sequence of genes should work out for you


--- Code: ---'if .newmom is tagged then program the baby with a generation value
'then reset the tag
cond
*.newmom 1 =
start
1 .tienum store
*.generation 1 add .tieval store
.generation .tieloc store
0 .newmom store
stop

'make a baby and set the tag in .newmom
cond
*.nrg 6000 >
start
50 . repro store
1 .newmom store
stop

'make a tie at birth
cond
*.robage 0 =
start
.tie inc
stop

'best get rid of that tie I suppose before it becomes permanent
'do it at age 2 so that we have time for programming
cond
*.robage 2 =
start
.deltie inc
stop
--- End code ---

Don't change the order of the first two genes or it won't work!

AZPaul:
Henk, PY,

Thanks for the ideas. I like both.


I haven't seen this on the "Bugs" board before:

"Save Sim" puts a .sim file in the DBII/saves directory just fine. "Load Sim" is appearenly not working. I cannot get to the saved sim. When I "Load Sim" the field stays blank. I tried hitting the "start" arrow. Field remains blank and after 3 seconds I get the notice that all bots are dead. I tried going into the "Options" menu and hitting "Continue." Get a "Run-time Error 55 file already open."

If this is a known/repeat-of-what-you-already-knew then, well, never mind. If not, well, then now you know.

Just to add my 2-cents of limited knowledge on "Snapshot": I tried a snapshot of a 45 bot sim (including veggies) and went to get more coffee (the true elixir of all life). After 6 min I got tired of waiting. Task Manager showed DBII as "Not Responding." I've attached the resultant .txt file from the Saves directory.

Speaking of Zodiac signs (say what?), Otto Preminger had the best ever response to being asked his sign. "I am a Do Not Distuuuurb sign."

Much obliged,

-P

shvarz:
Another bug: "Disable all mutations" does not work - my veggies are mutating like crazy.

PurpleYouko:

--- Quote ---Another bug: "Disable all mutations" does not work - my veggies are mutating like crazy.
--- End quote ---
:blink:

Works perfectly in my copy and also in the source code.

You sure your veggies aren't using .mrepro or something?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version