Bots and Simulations > DNA - General

Ties help

<< < (3/4) > >>

EricL:
If you can get me a clean repro that shows a problem in 2.4, I'll be happy to fix it...

Welwordion:
Even sharenrg does not seem to work for me :/

EricL:
Build the simpliest bot you can that demonstrates the problem.
Put it in the simpliest sim you can.
Zip it up and post it in the bug report forum with instructions as to how to reproduce the problem.  Be as specific as you can as to what you expect and what is actually happeneing and how to see that in the sim.
I will take it from there and fix the code off the 2.4X code base.

abyaly:

--- Quote from: Elite ---Did anyone else making tiefeeders come across this problem? If so how did you fix it?
--- End quote ---

*.eye5 > 70 or so
if *.tiepres != (value for ties this bot creates)
*tiepres .deltie store

But I never managed to get the bots to properly feed through ties ^^

Endy:

--- Quote ---Did anyone else making tiefeeders come across this problem? If so how did you fix it?
--- End quote ---

The main problem you're having is that the parent and child share the same tie number. This can make it tricky to distinguish between the two, resulting in the need to use readtie. It's normally best to randomize your tie number at birth that way you can auto delete any other ties that are not yours. It also helps to prevent an enemy from figuring out your species' tie number and using it to rapidly delete your ties.


--- Code: ---cond
*.robage 0 =
start
31999 rnd 1 add 50 store
' stores a random number from 1-32000
stop

cond
*.refeye *.myeye !=
*.eye5 45 >
start
-6 .shoot *.robage sgn mult *.refage sgn mult store
*50 .tie *.robage sgn mult *.refage sgn mult store
stop
 
'These genes above decrease the likelihood of child-parent or parent-child tieing

cond
*.tiepres *50 !=
*.tiepres 0 >
start
'deletes the tie if it's not mine
*.tiepres .deltie store
stop

cond
*.tienum 1 =
start
' tie and feed
*.50 .tienum store
-1000 .tieval store
*.tieval sgn .tieloc store
' above normally results in -1 .tieloc store, if another bot tries to reverse tie feed however
' it will auto-shift to storing thousands of nrg units in their up location :)
stop
--- End code ---

Since the chances of robage or refage being zero are relativly slim normally, it's best to SG'ize the code. The odds of two conspecs having the exact same tie number is extremly unlikely, making it easy for a bot to realize another bot has accidentally(or not  ) tie to you. You can also delete a tie in case of extreme pain, helping to avoid the possibility of reverse-tiefeeding.

Hope all this helps, there should be some tutorials on the wiki. I'll take a look and see whats there again.

http://www.darwinbots.com/WikiManual/index...7s_Tie_Tutorial

Here's the link. I added some info on tie feeding, leaching, and sharing.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version