Bots and Simulations > Bot Tavern
multibot theories
Light:
when you set sharefeeding to 90/10 they tend to try and kill each other and act quite strange
tiefeeding isn't out of the question, but you want to mantain the energy levels around the ring so each bot has equal energy, which sharenrg will do, it also wont kill the veg by accidentally sucking to much energy out of it, it will just generally be a lot simpler to implemtent.
It certainly is an interesting idea, I thought about it a while ago but never really found any time to have a go at it.
PurpleYouko:
--- Quote ---Shit making a ring is not that easy somehow the angle direction always gets alternated :/.And somehow I still not understand how this works in Hexagonis.
...ah I see you did not use fixang but aimsx
--- End quote ---
[hint]When creating the ring structure try setting fixpos to 1. That way they won't drift around and screw up your shape before completing the ring. Reset it to zero when the bot goes MB or after some kind of timer[/hint]
Set your sharing to 50:50 and use a condition which looks at trefnrg and compares it to your own within 10%. Something like this.
cond
*.trefnrg *.nrg %!=
start
50 sharenrg store
stop
Light:
Here is how to form a simple ring round some veg :)
--- Code: ---def count 50
def state 51
cond
*.state 1 =
*.count 20 <
start
.count inc
stop
cond
*.eye5 30 >
*.refeye 0 =
*.myeye *.refeye !=
*.robage 20 >
start
1 .tie store
1 .fixpos store
1 .state store
stop
cond
*.count 2 =
start
250 .aimsx store
75 .repro store
stop
cond
*.count 3 =
start
314 .aimsx store
stop
cond
*.robage 0 =
*.eye5 70 >
start
5 .tie store
1 .fixpos store
2 .state store
stop
cond
*.robage 1 =
*.state 2 =
start
550 .aimsx store
stop
cond
*.robage 2 =
*.state 2 =
start
75 .repro store
stop
cond
*.robage 2 =
*.state 2 =
*.eye5 60 >
start
10 .tie store
stop
cond
*.robage 3 =
*.state 2 =
start
-314 .aimsx store
20 .tie store
stop
cond
*.robage 4 =
*.state 2 =
start
628 .aimsx store
200 .fixlen store
stop
cond
*.nrg *.trefnrg !%=
*.multi 1 =
start
50 .sharenrg store
stop
end
--- End code ---
Welwordion:
It makes a nice ring, however has a high rate getting blocked etc
Endy:
Maybe force them to clear the area if there's anything in front, either by feeding or shooting the other's dn. There's always oddball effects trying to form these, ocasionally they'll tie to plants or to other bots. The saddest is when they don't finish forming the mb and just sit there looking pathetic, a incomplete mb not doing anything to help itself.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version