Code center > Bugs and fixes

Veggies don't repop RESOLVED 2.43t

(1/2) > >>

Peter:
Like the title, veggies don't repop.

Peter:
Bots seem to be overwriten or anything by the errorsim, so overwriting the first bots of a new sim. I hope the picture is clear.

Edit
I am btw(it could be important) getting this error by loading a settings-file with the settings of a sim. Keeping somehow the older bots, not sure if it even has to do with the error-sim.

EricL:
Please post a sim.

Peter:
Well you could just open every sim you have I am pretty sure you will notice then. But okay for you. Here is a sim.

And for the second case I am not sure what to upload. I suggest you just try to load a settings file and start a sim with it. Hopefully that  reproduces it.

Oh, right I am using 2,43s

EricL:

--- Quote from: Peter ---Well you could just open every sim you have I am pretty sure you will notice then. But okay for you. Here is a sim.
--- End quote ---
C'mon.  Don't you think people would have noticed this?  You can't make those kind of assumptions.

But as it happens, this is in fact a bug.  It happens only in the case where all the veggies in the sim die in the same cycle and the veggie population falls to 0.  Months ago, I added code to fix a long time problem with loading sims.  The veggy population doesn't get updated until the end of the first cycle, yet the veggy repopulatiuon code allowed veggies to reproduce befofe this.  The result was that on the first cycle when you loaded a sim, all the veggies would reproduce even if their popualtion was above the limit resulting in way more veggies than the sim allowed.  Unfortunatly, my fix was broken.  I fixed this by simply not allowing repopulation when the veggy population was 0, assuming this would never be the case except in that first cycle after you load an existing sim.  My mistake.

Fixed in 2.43t.


--- Quote from: Peter ---I am btw(it could be important) getting this error by loading a settings-file with the settings of a sim. Keeping somehow the older bots, not sure if it even has to do with the error-sim.
--- End quote ---
All I see in the attached bitmap is the top portion of the options dialog.

Navigation

[0] Message Index

[#] Next page

Go to full version