Author Topic: Preditor effectivness gene for evo sims  (Read 9076 times)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Preditor effectivness gene for evo sims
« Reply #15 on: November 20, 2007, 11:07:51 AM »
All the conditions in a gene get ANDed together and have to be True for the gene to fire, right?  Just walk through each of your genes for a bot in a sim.  Use the gene activations dailog.  Your genes arn't firing because for varyign reasons, their conditions arn't being met.

Gene 1 will only fire once.  When the bot is born.  Then never again.

Genes 2 and 3 and 4 will only fire when the bot sees a bot of another species.

Gene 5 will only fire if the bot is fat.  I.e. has body > 800

Gene 6 only fies when the bot has tons of nrg

Gene 7 only fies when the bot has low nrg.

You either need to add some more genes that do something (like rotate or move when there is nothing in view) or change these to have less stringent conditions or both.
Many beers....

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Preditor effectivness gene for evo sims
« Reply #16 on: November 20, 2007, 12:37:48 PM »
I would only put it inside the shooting gene, so just only in this one.

If you put it in all genes a bot doesn't do anything at all. And they will suddenly repro and shoot and move at the same moment if population comes under 10%.

If you use this gene it will sudenly shoot if pop under 10%, hmmm, maybe something like a 'rnd' could be nice also. But this should work like that.

Quote
cond
*.eye6 34 >
*.refeye *.myeye !=
*.refeye 0 !=
*.totalmyspecies 100 mult *.totalbots div 10 <
start
-6 .shoot store
16 .shootval store
stop

Edit: heh I posted this when I though the last post on page 1 was the last post.

I just looked, and yes this bot is missing something, by the way, why does this bot use eye6 instead of eye5. Is kinda strange. shoot if it sees something on the right.
« Last Edit: November 20, 2007, 12:43:24 PM by Peter »
Oh my god, who the hell cares.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Preditor effectivness gene for evo sims
« Reply #17 on: November 20, 2007, 12:43:46 PM »
FYI, the problem has nothing to do with the specific line(s) using .totalbots/.totalmyspecies.  The bot would still pretty much do nothing if you remove them all.
Many beers....

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Preditor effectivness gene for evo sims
« Reply #18 on: November 20, 2007, 12:56:08 PM »
Yes, Eric you're right I just didn't looked at the first post of page 2.

I readed something that this bot was swarm2 with some modifications, and I just didn't really looked at the genes, I just thought, well that should be alright.

Wich brings me to anther point.

Quote
It is a carnivore modification of swarm 2.0. It should in theory attack and reproduce when his population is below 10%, but it doesn't do nothing all the time. Where did I made errors? Sorry but I'm not very good at programming.
I am no swarm expert, but the bot in the leagues doen't really look like this(I am pretty sure), compare your swarm with the swarm2.0 at the forum.

This could also explain the problem, that in the other topic where you claim, that the mutation-bot of swarm is stronger than swarm itself.

Is this the bot that is supposed to be swarm without this lines. That could explain something.
Quote
*.totalmyspecies 100 mult *.totalbots div 10 <
Oh my god, who the hell cares.

Offline Ispettore

  • Bot Neophyte
  • *
  • Posts: 32
    • View Profile
Preditor effectivness gene for evo sims
« Reply #19 on: November 21, 2007, 09:19:20 AM »
lol, I mean it is this bot

' SWARM
' (Updated for v2.43)

' Delete birthtie and move

cond
start
.tie 1 *.robage sub 0 floor mult inc
.deltie inc
*.maxvel *.vel sub .up store
stop

' Set eye5

cond
*.robage 0 =
start
1220 .eye5width store
stop

' Swarm

cond
*.robage 5 mod 0 =
*.eye5 0 >
*.refeye *.myeye =
start
*.refaim .setaim *.robage sgn mult store
stop

' Eat food

cond
*.eye5 0 >
*.refeye *.myeye !=
start
*.refvelup 50 add .up store
*.refxpos *.refypos angle .setaim *.robage sgn mult store
stop

cond
*.eye5 50 >
*.refeye *.myeye !=
start
*.refvelup .up store
*.refxpos *.refypos angle .setaim *.robage sgn mult store
stop

cond
*.eye6 34 >
*.refeye *.myeye !=
start
-6 .shoot store
16 .shootval store
stop

' Reproduce

cond
*.body 700 >
start
30 .repro store
314 rnd .aimdx store
stop

' Feed on and store body

cond
*.nrg 2000 >
start
100 .strbody store
stop

cond
*.nrg 500 <
start
*.body 0 floor .fdbody *.body sgn mult store
stop

' Anti-virus (just in case)

cond
*.mkvirus 0 !=
start
*.mkvirus .delgene store
stop

end

wich I found on the forum, only I have set that he can eat only other bots, and I removed the anti virus and the swarming tecnique (I wanted it to be less strong than swarm2.0, wich btw work perfectly)

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Preditor effectivness gene for evo sims
« Reply #20 on: November 21, 2007, 12:23:11 PM »
You broke the bot big time when you removed the first gene.  In particular, this line:

*.maxvel *.vel sub .up store

is critical.
Many beers....