Author Topic: 2.37.5 veggie controls  (Read 2964 times)

Offline Griz

  • Bot Overlord
  • ****
  • Posts: 608
    • View Profile
2.37.5 veggie controls
« on: November 11, 2005, 09:18:25 PM »
uninstalled. reinstalled 2.11 ...
moved everything to the C: drive where it wants to go.
made sure I had a basic default.set there ...
and got 2.37.5 to run. yea!!!!

wish I could report no problems. ;)
I can get sims running for long periods now at least ....
so can now actually look for bugs other than runtime errors.
here's a couple ...
well, one ... and then another addistioni'd love to see.
I know it can be done as Nums did it in 2.4x?

2.37.5
On occasion ...
 Max # of veggies actually limits population to what the setting is.
but usually it does not.  I played with these settings all day ...
and here is an example of what I found.
with Max number set to 40, and threshold at 35, repop event at 1 ...
one would expect the pop to vary prettly closely around 40.
not so.  try 75. I paused and then killed off some viggies to just above 40 ...
and when it dropped to that, the pop jumps up to 75 again ...
regardless of what I have the population event set to ...
it is as if the thresthold number, 35 is added to the max no, 40.
now I altered these settings to other numbers and found the same thing ...
set at 20 and 15 ... the pop would come down to 20 and they jump to 35.
now this is not consistant!  on occasion, it would control as it should ...
but not often. rare enough so that when it did I was surprised. ;)

now I can work around this by setting them to about half of what I want ...
but I shouldn't have to do this .... those settings should work as they say.

but what I can't work around ...
is the  veggies not repopulating in the start position window I set up
at the start of the sim ... in species selection.
this is essential for the sims I am experiementing with ...
having areas of isolated food supply ... and evolving bots that can find
and/or reach them.
my sims go along well until suddenly veggies are randomly appearing
everywhere and my, up until then, isolated sim populations have food
delivered to them. not what I want to have happen.

also ... the veggies do 'clump' ... but I need to have them fixed to stay
in the postion box I choose ... as gravity is part of these sims as well.

I know Nums did a fix in 2.4 for keeping the repopulation in the set window.
is it possible to use that in 2.37.5?
or can someone point me to it ...
and also the veggie population control settings ...
so I can at least take a look and see if I can finger out what goes wrong?

a form or routine or the variables ... so I can search them out.

also ...
I asked before but Nums, as usual ;) ...
forget to answer the question and got off on some other tangent ...
like he didn't program charts.
that's fine ... but that wasn't what I asked.
so here it is again ...
a simple question:
where is the form/routne where the graphs live?
what are the variables they use for selecting the chart colors of the bots?
I know they are just generic 1-8 and don't correspond to bot colors.
so ... what is the variable name of the color the species of bot uses ...
at the beginning of the sim ... that's the color I want to grab, not just
from the order of bots ... which changes somehow as species die off.
all I need is a pointer to some of these and I'll go play around.

tanks
« Last Edit: November 11, 2005, 09:21:02 PM by Griz »
不知
~griz~
[/color]
   "The selection of Random Numbers is too important to be left to Chance"
The Mooj  a friend to all humanity
[/color]

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
2.37.5 veggie controls
« Reply #1 on: November 14, 2005, 09:59:16 AM »
At least it is good news that you can run for longer periods now.

I would like to make a couple of comments/explanations for some of the things you are seeing here.

Quote
with Max number set to 40, and threshold at 35, repop event at 1 ...
one would expect the pop to vary prettly closely around 40.
Actually I would not expect this to be the case because of the way the program works. What I would expect is that the population would vary between 35 and 78.
What happens is that during each cycle, the veggies in the sim are counted and that value is stored in a variable.
At the start of the next cycle, this variable is used to set a flag which either forbids ALL veggies from reproducing or allows ALL veggies to reproduce. If you have 40 veggies then they will not reproduce next cycle but if you have 39 which all have enough energy to do so then they will ALL reproduce.

Quote
but what I can't work around ...
is the veggies not repopulating in the start position window I set up
at the start of the sim ... in species selection.
this is essential for the sims I am experiementing with ...
having areas of isolated food supply ... and evolving bots that can find
and/or reach them.
my sims go along well until suddenly veggies are randomly appearing
everywhere and my, up until then, isolated sim populations have food
delivered to them. not what I want to have happen.
This one I was not aware of. I really haven't ever paid any attention to placement of any bots.
I will look into it once I get the more pressing crashes eliminated once and for all. Thanks for pointing it out.

Quote
also ... the veggies do 'clump' ... but I need to have them fixed to stay
in the postion box I choose ... as gravity is part of these sims as well.
Have you considered using pond-mode with bouyancy enabled instead of gravity. I have an interesting veggie that actually migrates to different depths by day and night. I will add it as an attachment. just change the depth value for different behaviour in different sim sizes.

Quote
that's fine ... but that wasn't what I asked.
so here it is again ...
a simple question:
where is the form/routne where the graphs live?
what are the variables they use for selecting the chart colors of the bots?
I know they are just generic 1-8 and don't correspond to bot colors.
so ... what is the variable name of the color the species of bot uses ...
at the beginning of the sim ... that's the color I want to grab, not just
from the order of bots ... which changes somehow as species die off.
all I need is a pointer to some of these and I'll go play around.
I would like to answer but the simple fact is that I don't have a clue. As Nums said "I didn't program the charts". Sorry and all that but that is the simple truth. You have about as much chance of figuring this out yourself as I do. I don't know where the charts get their values from. I even spent a couple of unfruitful hours searching for this very information and came up completely stumped.
I think it is in module "Grafico" but the coding is done in a way that makes no sense to me. Just an utterly alien style.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D