Author Topic: Big cyan dots!  (Read 1937 times)

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
    • Games And Electronica
Big cyan dots!
« on: July 09, 2006, 03:34:47 AM »
I'm not sure if this could be a bug. Check out the screenshot. Big cyan dots flooting around inside 3 bots. This screenshot is from my evosim.
« Last Edit: July 09, 2006, 12:10:01 PM by Testlund »
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
    • Games And Electronica
Big cyan dots!
« Reply #1 on: July 09, 2006, 12:07:59 PM »
Here's another one. A big cyan dot attached to a really tiny bot. This one kept reproducing dispite it allmost had no energy! This screenshot is from a sim with Animal Minimalis and Alga Minimalis.
« Last Edit: July 09, 2006, 12:11:18 PM by Testlund »
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
    • Games And Electronica
Big cyan dots!
« Reply #2 on: July 09, 2006, 12:08:38 PM »
Here's an attached save of the sim.
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Big cyan dots!
« Reply #3 on: July 09, 2006, 09:55:31 PM »
I couldn't find this in your sim.  It only has about a dozen bots in it and tons of veggies.

A cyan dot is a virus shot impacting.  That is probably what you are seeing.  Shot impacts have radius 20, so if your bots are super small and you are zoomed in, they will seem large by comparison to the bot, whose radius may be smaller.   Shot impact dots should only last one cycle though.  Note that the point of impact where the impact circle is displayed may not appear on the edge or inside the bot.  This is because the impact may have occurred early in the cycle and the bot may have moved since then.  Bots are displayed where they are at the end of the cycle.  Shot collisions can happen anytime during the cycle.  This difference can be pronouced for small raidus bots, so shot imapct dots can oftne appear outside the bot.
Many beers....

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
    • Games And Electronica
Big cyan dots!
« Reply #4 on: July 10, 2006, 08:26:30 AM »
Ok, check out this save instead. It's from my evosim. Somewhere near the upper left corner there are some bots wich have made ties together. Two of them have cyan dots in them, but there are no virus dots entering from anywhere. The cyan dots just keeps on flooting around inside the bots. Also some of the bots eye dots are located inside the bots instead of sitting at the edge of the cell wall, where they should normally be.
"God is an ever receding pocket of scientific ignorence." - Neil DeGrasse Tyson

"God is a kid with an ant farm" - Constantine

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
    • http://community.webshots.com/user/objack2
Big cyan dots!
« Reply #5 on: July 10, 2006, 09:08:49 AM »
I have noticed this as well ...
and often have cyan dots attached to a bot ...
as if tied, but with no tie visible ...
moving along with it as if it were a shadow
for as long as the bot lives.
trying to click on it to see what it is ...
results in the bot being selected instead.
so it's like a blue ghost ...
seems friendly ...
I think I'll call them 'Caspers'.
they seem to 'haunt' certain bots more than others ...
as I notice them with my CW 'circling' bots all the time.

attached is a sim which seems to generate a lot of them ...
there are at least 3 here ...
bottom center, another just to the left of that one ...
and another in the upper right.

checking out your new incoming energy thang ...
seems to work just fine.
I do have a question on energy input tho ...
will do it in another post.
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Big cyan dots!
« Reply #6 on: July 10, 2006, 09:26:49 PM »
Okay, found this.  When I added the new shot impact dots in 2.42.7, I missed the case where the creation of a virus shot fails because the gene being referenced is beyond the end of the DNA.   In Testlund's sim, bot 37 (and presumably other bots which display similar persistant dots) is attempting, over and over, to create a virus shot using gene number 10661, which is of course, beyond it's 11 genes.  The creation of the shot fails as expected, but in the process of almost creating and then failing the creation of the virus shot, an erronous  virus shot impact dot is displayed at the point of shot origin, over and over each cycle, as the bot trys to create a new virus each cycle.

Any bot trying and failing to create a virus will exhibit a dot for that cycle.

Totally harmless.  Fixed in 2.42.8.

Quote from: Testlund
Also some of the bots eye dots are located inside the bots instead of sitting at the edge of the cell wall, where they should normally be.
This is an artifact of your monitor/ graphics adapter resolution/dimensions.  The edge of the bots are displayed as perfect ciricles on the screen (because the underlying VB circle command is aware of your monitor resolution and adjusts accordingly and it is used to display the bot edge) but unless you are using monitor resolution dimensions with an aspect ratio of exactly 4:3 (e.g. 800X600) the bot's eye will be displayed on the true, actual, underlying edge which will not coincide with the displayed edge (the eye will trace an ellipse).  If you watch the eye, it will touch the bot edge either at the top and bottom or on the sides, depending on whether you are using short and fat or tall and skinny monitor dimensions respectivly, then go inside the bot the rest of the time, tracing an elipse.  Shot impacts will exhibit the same issue.  Some shots will appear to go inside the edge and yet not impact.  In reality, this is just an artifact of the way the edge is displayed on monitors with aspect ratios that do not exactly match the field dimensions - the shot did not actually go inside the bot, it just looks that way.  The ellipse that the eye traces is the true bot edge and shot impacts only occur if they go inside that.

Don't worry, the underlying physics of everything is fine.  It's just an artifact of the way bot edges are displayed using the VB6 circle command.

Some day I may implement custom field dimensions and this will get fixed as a side effect of that, but not today.
« Last Edit: July 10, 2006, 09:41:54 PM by EricL »
Many beers....

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
Big cyan dots!
« Reply #7 on: July 11, 2006, 06:48:50 AM »
Large numbers in .vshoot prevent the virus from firing. Is there an upper limit on .vshoot?

Also, sometimes virus shots aren't visible for some reason
« Last Edit: July 11, 2006, 06:52:18 AM by Elite »

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Big cyan dots!
« Reply #8 on: July 11, 2006, 12:33:38 PM »
Quote from: Elite
Large numbers in .vshoot prevent the virus from firing. Is there an upper limit on .vshoot?

I need to spend some hours on the virus code to better understand it.  The code in this area is total spagettii and probably rife with problems.  In fact, I think I just caught one with how costs are applied for firing a virus....

From a quick look, syntanticly, 32000 is the legal limit in vshoot of course.  Semantically, the nrg of the resulting shot (which impacts the shot's range) is clipped at 32000/20 or 1600 so using values abouve 1600 in vshoot equates to 1600.  

I could find nothing related to vhsoot that would prevent the virus from firing, but if the virus is longer than 10 base pairs, then the virus shot is stored for a number of cycles equal to twice the number of base pairs in the virus.  This could be what you are seeing.

Note that this is just how the code appears to work today.  It may not be how it is supposed to work.  

Quote from: Elite
Also, sometimes virus shots aren't visible for some reason
Don't know about this one.  If you have a sim which demonstrates this, I'll take a look. As above, perhaps what you are seeing is the delay in actually firing the virus...
« Last Edit: July 11, 2006, 12:34:39 PM by EricL »
Many beers....

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
Big cyan dots!
« Reply #9 on: July 15, 2006, 06:42:27 PM »
On a related note, what kind of shot do the green blobs represent?

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Big cyan dots!
« Reply #10 on: July 15, 2006, 08:23:03 PM »
Quote from: Elite
On a related note, what kind of shot do the green blobs represent?
FlashColor(1) = vbBlack         ' Hit with memory shot
FlashColor(-1 + 10) = vbRed     ' Hit with Nrg feeding shot
FlashColor(-2 + 10) = vbWhite   ' Hit with Nrg Shot
FlashColor(-3 + 10) = vbBlue    ' Hit with venom shot
FlashColor(-4 + 10) = vbGreen   ' Hit with waste shot
FlashColor(-5 + 10) = vbYellow  ' Hit with poison Shot
FlashColor(-6 + 10) = vbMagenta ' Hit with body feeding shot
FlashColor(-7 + 10) = vbCyan    ' Hit with virus shot
Many beers....

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7716
    • View Profile
Big cyan dots!
« Reply #11 on: July 15, 2006, 09:33:36 PM »
I like your signature Eric

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Big cyan dots!
« Reply #12 on: July 16, 2006, 10:18:41 PM »
Quote from: Numsgil
I like your signature Eric
 I think you and PY are the only ones who can truly understand...
Many beers....

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2554
    • View Profile
    • http://kuro-tejina.com
Big cyan dots!
« Reply #13 on: July 17, 2006, 08:56:39 AM »
You're probably right there Eric.

On a very literal note  
I once spent a week or two in northern Italy trying to rewrite a manual for an Italian made Gas Chromatography Autosampler that had originally been written in Italian and then badly translated.
I can testify that actually reading Italian is about the hardest thing I ever tried to do.
There are 10 kinds of people in the world

Those who understand binary.

and those who don't

:D PY :D