Author Topic: Strange thingie RESOLVED (BY DESIGN)  (Read 2465 times)

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Strange thingie RESOLVED (BY DESIGN)
« on: October 24, 2007, 05:36:52 PM »
Not sure if this is a bug or a feature   Just noticed strange thing in my sim - a bot apparently connected to hundreds of other bots throughout the whole sim. As I zoom in on the bot the ties disappear, zoom out - appear back. See the attached pictures.
« Last Edit: October 30, 2007, 03:04:28 PM by EricL »
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Strange thingie RESOLVED (BY DESIGN)
« Reply #1 on: October 24, 2007, 05:58:47 PM »
You are bumping up against the 10000 bot limit.  Each cycle, the program kills off bots to keep the population at or below 10000.  Actually, it doesn't kill them, it re-uses their slots in the bot array, effectively killing them.  You don't see the actual sim population hit 10000 because births are handled before deaths in the cycle and some bots die nautrally each cycle, dropping the population at the end of the cycle to something less than 10000.  It's the high water mark mid cycle that isn't allowed to go above 10k.

The super long ties only last a cycle.  The program still draws them even though the slot a tied bot is using gets re-used for a different bot.   They all end up going to the same bot, the one that is occupying position 10000 in the rob array (I think).  

So, technically, it's a bug.  I should probably formally kill bots (and their ties) according to some human defined policy (oldest, weakest, etc.) when the population exceeds 10k, but today it's essentially random death.   The logic to detect overly long ties and delete them kicks in the following cycle, which is why the ties dissappear after a cycle.  I've not fixed this to date since few peopel run sims this populous and also, its a simple visual way to know your sim is clipping.
Many beers....