Code center > Darwinbots Program Source Code
Eyes in DB!?
Endy:
Worth a shot :D
Umm...Nums what's going to happen when the new stand alone * is developed? Could the numbers fo eyes be changed in midstep?(Alright I'll admit I've figured out a [you]very[/you] complex way to do this already) B)
Numsgil:
I have absolutely no idea, to be honest.
In fact, the .view flag is beginning to work strangely, sometimes turning the bot off for no reason. I'm going to have to do some bug hunting :/
PurpleYouko:
OK here is the lowdown on "view" (in V 2.37.2 source)
.view flag is always set to FALSE for any new bot
The only procedure which can set it to TRUE is "Instack" which is called a lot (to say the least) from the DNA parser.
In short you can't sneak an eye cell into the DNA by any means without the flag getting set pretty darned quickly. Add a virus with an eyecell, to a blind bot and it will be caught on the next cycle.
Once set to TRUE the only way to set it to FALSE again is for the robot to die and become a corpse.
This means that if you design a bot that has an eyecell originally but then loses it, it will keep on seeing the refvars for the rest of its life, however its children will be completely blind as they will never inherit the missing gene.
Ulciscor:
Maybe it should be set back to false when the .eye genes count is 0? Although I guess this would happen so rarely I don't suppose it would speed the program up much.
PurpleYouko:
Right it could only happen due to a delgene operation.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version