Darwinbots Forum
Bots and Simulations => DNA - General => Topic started by: Light on April 24, 2005, 10:54:57 AM
-
Basically I want to share shell in my MB's, so I thought using
cond
*.shell *.trefshell !%=
*.multi 1 =
start
50 .shareshell store
stop
I thought it would work just like sharenrg, but it just seems to make them act weird, losing a lot of energy, am I using it wrong or is it broken?
-
It should work exactly as you have made it.
The thing is that I don't think anyone has ever actually tried using it before. maybe it has been broken all along and nobody ever noticed. :unsure:
-
I think there are alot of features that may be broken, but since no one can figure it out they think it's them.
If you can't get something to work, post it! It may be actually broken.
-
Yup seems broken to me. It doesnt update the view of the other bots shell for a cycle so it thinks that it needs more shell when it doesnt.
Bot1 has 200 shell
? .shell-> 200
? .shell-> 100
? .shell-> 75
? .shell-> 31
? .shell-> 11
? .shell-> 4
? .shell-> 1
? .shell-> 0
----
Bot2 has no shell
? .shell-> 0
? .shell-> 100
? .shell-> 50
? .shell-> 50
? .shell-> 18
? .shell-> 6
? .shell-> 2
? .shell-> 0
-
It was a BUG sure enough!
Bot B was getting a percentage of Bot A's shell instead of the total of the 2.
Fixed but not posted yet.