Author Topic: Too many bots on screen!  (Read 6105 times)

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Too many bots on screen!
« Reply #15 on: November 02, 2005, 11:43:58 AM »
in a nutshell.

The program uses a timer module that keeps constant, real time, independent of the program itself.

The program also increments a counter once per cycle.

Once per program loop, the time on th etimer is captured and stored in a variable. This is compared to the previous time. (last time this point in the loop happened) and the rate in cycles per second is calculated and displayed.

The value you see is real cycles divided by real time.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Too many bots on screen!
« Reply #16 on: November 02, 2005, 12:18:03 PM »
2.4.7 has a button to limit the speed of the simulation to about 10 or 15 cycles/second.

The max speed slider just seemed like a good idea.  Feel free to play with it or not.  Pre 2.4.6 it was set to 60.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Too many bots on screen!
« Reply #17 on: November 02, 2005, 02:31:44 PM »
Quote
Quote
2.4.7 has a button to limit the speed of the simulation to about 10 or 15 cycles/second.
ah. I didn't see that.
so this then doesn't interfere with the sim ...
but only introduces a 'delay' imposed from outside ...
invisible as far as the bots are concerned. yes?
Correct.  Sorry there's no graphics for the new buttons, I have no internet, and well   -_-


Quote
Quote
The max speed slider just seemed like a good idea.  Feel free to play with it or not.  Pre 2.4.6 it was set to 60.
right. I see it defaults to 60 here as well ...
but one should be able to go up to 100 now, yes? is that not what you raised Maxvel to?

180 is actually the max.  Larger than that and it overflows.

You can also use this as a sort of drag force.  Set it really low and bots must move slowly.

Quote
btw ... does 'seed' work in 2.4.7?
seems I get a different sim each time I do a new start.

Mine has the same sim everytime I start a new sim with the seed.  What seed are you using?  Maybe it's a weird one.

I use 86 I think, (cause 86 is a fun number ;))

Offline Old Henk

  • Bot Destroyer
  • ***
  • Posts: 229
    • View Profile
Too many bots on screen!
« Reply #18 on: November 02, 2005, 02:35:55 PM »
regarding limiting the amount of bots:

I think this is one of those things a good scripting system could take care of.

ie "If amount of bots is more than N, eliminate X amount of corpses/bots/bots with least energy etc
« Last Edit: November 02, 2005, 02:36:27 PM by Henk »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Too many bots on screen!
« Reply #19 on: November 02, 2005, 05:42:48 PM »
Maybe I can get a programmer to work on scripting when the C++ port is finished.