Bots and Simulations > DNA - General
All For One
spork22:
Has anyone ever made a bot in which it's entire population focuses only on a singular target? As in, the whole species attacking one target? I know Bubbles has a limited range, but I have never seen a bot that acts this way and I want to know if it could be possible.
Shadowgod2:
in theory it should be possible though difficult. maybe you could make a bot such as this.
i prefer evo and broad range bots. i had worked on a bot that had a bot learning type of system but found too many issues for me :wacko:
spike43884:
Well. Russian babies generally attacks 1 target, but only in its sub-pops though, they have infinite range.
What it does is the body can move as it wishes, but if the head decides to move somewhere it has to follow (head has movement priority then).
Thus, they all focus on one or two targets.
Also, it wouldn't be hard to get it going for bots joined up. Just have a head and bodies. Put the x-location and y-location into tout1 and tout2 put the orientation into tout3 (once the enemy is in eye5) then put dist into tout4. Force bodies to make tout1/2/3/4 to equal tin1/2/3/4 then force them to follow that.
The only problem is if a body got hit then it couldn't retaliate.
spike43884:
Ok. I got a framework developed for it
I started a 'all for 1' bot derived from russian babies (mobilised I believe).
It removes the head priorities, also has a lovely horrible script to force their aiming to spin randomly (courtesy of me using advanced shot bot tutorial in an overcomplex manor).
The problem is, it'll need some form of weird algorithm with mults and such to combine the factors to travel to the signal. What it does is if *.dist is less than *.tout1 (which stores the lowest dist in the colony) then it will hopefully go to the location of the lowest dist from enemy. This system is ULTRA EFFICIENT in the means of even if the bot that set tout1 dies, unless another oponent gets closer. Then its not reset, meaning they know the location of oponents, they might not even be able to see. A reset would have to be added in 'IF WITHIN X OF LOCATION' but otherwise the framework is done.
The algorithms need to be added in of course. I hope shadowgod could do that, he's best when it comes to algorithms. Anyway, the code is below!
--- Code: ---'-------------------------------All for 1 sequence-------------------------------'
'YPOSITION
cond
*.follow 1 =
start
stop
cond
*.follow 0 =
start
stop
'XPOSITION
cond
*.follow 1 =
start
stop
cond
*.follow 0 =
start
stop
'ORIENTATION
cond
*.follow 1 =
start
stop
cond
*.follow 0 =
start
stop
'DIST
cond
*.tin1 *.dist <
start
1 .follow store
stop
cond
*.tin1 *.dist =>
start
0 .follow store
*.dist .tout1 store
*.aim .tout2 store
*.ypos .tout3 store
*.xpos .tout4 store
stop
'--------------------------------------------------------------------------------'
--- End code ---
spork22:
Nice. I'll try it. I might try and use this code to make a Frankenstien bot (that's my name for a bot with DNA that's been stitched together), that is, if it doesn't work well enough already.
Navigation
[0] Message Index
[#] Next page
Go to full version