Bots and Simulations > Bot Tavern

The F1 League lives again!

<< < (28/32) > >>

Moonfisher:
If an enemy bot ties to spinner it pushes a positive value into tieval, so if the oponent is trying to tie feed it will get drained.
Didn't know if it's alowed... tecnicaly it won't affect F2 league results since none of the oponent will attempt to tie feed (If they did they wouldn't be F2).
But it will affect F1 performance... it doesn't change the outcome of the fights, but in some cases it will finish the fight a lot faster.

Either way if there's any doubt just let the gene push 0 into tieval instead of a positive number... then it won't counter leech, it should still beat all the same bots but some fights will take longer in F1, and it might actualy make some fights a litle faster in F2....

I just figured it was a grey area... counter leeching isn't realy tie feeding, and it doesn't affect F2 results... so figured it would be fine.

Peter:

--- Quote from: Moonfisher ---If an enemy bot ties to spinner it pushes a positive value into tieval, so if the oponent is trying to tie feed it will get drained.
Didn't know if it's alowed... tecnicaly it won't affect F2 league results since none of the oponent will attempt to tie feed (If they did they wouldn't be F2).
But it will affect F1 performance... it doesn't change the outcome of the fights, but in some cases it will finish the fight a lot faster.

Either way if there's any doubt just let the gene push 0 into tieval instead of a positive number... then it won't counter leech, it should still beat all the same bots but some fights will take longer in F1, and it might actualy make some fights a litle faster in F2....

I just figured it was a grey area... counter leeching isn't realy tie feeding, and it doesn't affect F2 results... so figured it would be fine.
--- End quote ---
I gues you don't get my point. The bot itself drains other bots with his own ties.

Moonfisher:
Ehm... no that shouldn't happen, the counter leeching gene is only there as a backup for when the bot isn't the one who formed the tie...
When the bot forms a tie it will use the attacks stored in the birth gene.

Here are the attacks used in spinner 1.5 :

[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']'-------Tie actions (5)
.eye5dir .startloc store
682 .startloc 1 add store
.vloc .startloc 2 add store
174 .startloc 3 add store
'.memloc .startloc 4 add store '-- Funny, but no point in both stealing keys and breaking conspecs
'173 .startloc 5 add store
.mrepro .startloc 4 add store '-- Also funny, but can mess up the stolen eye and shoot conspecs
65 .startloc 5 add store
.shootval .startloc 6 add store
32000 .startloc 7 add store
.strbody .startloc 8 add store
31999 .startloc 9 add store
'--------

It's executed here :
[div class=\'codetop\']CODE[div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']*.state .torpedo =
*.toponent .enemy =
*.numties 0 >
*.robage 1 >
start
*.tiepres .tienum store
.locs 1 sub rnd 2 mult .startloc add dup * .tieloc store
1 add * .tieval store

And the bot only uses ties when in the "torpedo" state...

So you should only see the bot drain other bots if it's a tie feeder trying to eat it.

However you will see the torpedoes tie to bots and see them die, but it's not eating their energy, it's making them spend it in other ways.

Peter:

--- Quote from: Moonfisher ---And the bot only uses ties when in the "torpedo" state...

So you should only see the bot drain other bots if it's a tie feeder trying to eat it.

However you will see the torpedoes tie to bots and see them die, but it's not eating their energy, it's making them spend it in other ways.
--- End quote ---
I didn't even knew a F2-bot may send commands to the other bot to spend nrg or do you meant another way?
I did never seen it used in F2.

Strange, I saw it connecting to a bot that isn't forming ties. I isolated it, the 'torpedo' and the tied bot. And I saw torpedo getting nrg and the other bot losing nrg.
If I redo the sim, then I can't see torpedo gained nrg every time I saw it connected, but I do see it in some cases gaining nrg. Atleast I am sure that in those cases the specific 'leaching' gene was activated. I did check that earlier.

Are the sysvars the leach-gene writes too, always overwriten. Or are there specific cases when not. Just thinking at a bot that doesn't make any ties itself.

I bet that bot would win F2 again without that leaching gene. So much harm can't be done then.

Moonfisher:
Are you sure it isn't from eating it's body or something... the only thing in there that could cause leeching is the counter leech gene, so it shouldn't be able to leech from anything other than tie feeders...
I don't see what else could be causing it... there's nothing in there to leech while in torpedo state... Maybe if the bot feeds friends and has been fooled by the conspec thing....
My guess would be the energy comes from eating it's own body or something, check to see if it's losing body size while gaining energy... or maybe a multibot trying to share nrg, I noticed the early versions of seasnake fell for the fake conspec and tried to form a snake with spinner and sharing energy with them...

Either way feel free to replace the 31000 with 0... I also wrote that as comment right above the gene in case anyone had objections to using counter leeching in F2...
But don't remove the entire gene, there's a line with a ' in it, use that line instead of the one with 31000...
And the results should be the same, since the counter leeching gene only affects tie feeders... there's nothing in the code that would cause the oponent to push -1 or -6 into tieloc, so only a tie feeder would be affected by the gene.
All I can say is that if a non tie feeder is ending up giving energy to spinner then I had nothing to do with it
But as mentioned, feel free to swap the tieval line the only difference should be a few fights in F1 that last a litle longer.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version