Darwinbots Forum

Bots and Simulations => DNA - General => Topic started by: Light on April 24, 2005, 10:54:57 AM

Title: Sharing Shell
Post by: Light on April 24, 2005, 10:54:57 AM
Basically I want to share shell in my MB's, so I thought using

Code: [Select]
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?
Title: Sharing Shell
Post by: PurpleYouko on April 24, 2005, 11:28:18 AM
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:
Title: Sharing Shell
Post by: Numsgil on April 24, 2005, 02:32:51 PM
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.
Title: Sharing Shell
Post by: Shen on April 24, 2005, 03:15:09 PM
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
Title: Sharing Shell
Post by: PurpleYouko on April 25, 2005, 03:35:14 PM
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.