Darwinbots Forum

Code center => Bugs and fixes => Bug reports => Topic started by: Tilthanseco on June 06, 2012, 05:17:46 AM

Title: Quadratic Plant Energy 2.45.01 [False Alarm]
Post by: Tilthanseco on June 06, 2012, 05:17:46 AM
I don't think this setting is working in 2.45.01  :(

I'll have to stick with kilobody...
Title: Re: Quadratic Plant Energy 2.45.01
Post by: Numsgil on June 06, 2012, 01:33:34 PM
Can you double check against this formula:

Multiplier = (1 - 30 / 512) + (kilobody points)^2 * 30 / 512

Energy in = Multiplier * (number in NRG textbox)

So bots have to be pretty big before the quadratic nature of the feeding takes over.  For bots below 1000 body, it's basically the same as nrg per bot.
Title: Re: Quadratic Plant Energy 2.45.01
Post by: Tilthanseco on June 06, 2012, 11:04:32 PM
Yep sorry, false alarm. It follows your equation.

It doesn't work like I expected it. I thought that little plants would barely get any energy, but like you said they get what's in the box, just big plants get way more.

Is there a way we can get rid of that constant (241/256)?  That way little plants get no energy and DIE :Muahaha:

...ya probably not a very good idea... I'll just set the energy to 50 times less than what I want...  :devil:
Title: Re: Quadratic Plant Energy 2.45.01 [False Alarm]
Post by: Numsgil on June 07, 2012, 06:02:22 PM
Yeah, the equation past-me came up doesn't seem to encourage what I said it did.

How does this formula sound:

energy multiplier = 29/31 * kilobody^2 + 2/31 * kilobody

At small body values it's basically linear, but as the body increases the multiplier does too.

At 32K body, you're getting about 30x the energy that 32 1k body bots are.
Title: Re: Quadratic Plant Energy 2.45.01 [False Alarm]
Post by: Tilthanseco on June 07, 2012, 07:38:25 PM
That sounds good. It's a lot more direct (need body to get energy).

But there's no need to change if you don't want to change.  :blink:
Title: Re: Quadratic Plant Energy 2.45.01 [False Alarm]
Post by: ikke on June 08, 2012, 10:32:59 AM
At the very least drop the constant. This is a bonus for cancerous growth
Title: Re: Quadratic Plant Energy 2.45.01 [False Alarm]
Post by: Tilthanseco on August 08, 2012, 12:30:20 AM
Actually, upon more experimentation, I think you should leave the formulas alone and just re-describe the settings.
Something Like:

Name:              New Description:                                 Reason or Test Results:
Veggy Per Cycle  = Keep Same or "Favors Small Veggies"            - All veggies live, small ones can hide and still get same nrg as large

Kilobody Point   = "Favors Large, Discourages Small Veggies"      - Large get nrg, small ones can starve if too small

Quad             = "Favors Large, Neutral towards Small Veggies"  - Large get a bonus, but small still get enough nrg no matter size
                or "Favors Large Veggies"

Title: Re: Quadratic Plant Energy 2.45.01 [False Alarm]
Post by: Botsareus on August 08, 2012, 12:45:11 PM
How about we just change what it says in the comment box? (see attachment)
Title: Re: Quadratic Plant Energy 2.45.01 [False Alarm]
Post by: Tilthanseco on August 08, 2012, 04:56:44 PM
Sorry for the confusion, that's what I meant by "description"; just the stuff in the comment box.  I have no opinion on the names or the hover thing. Didn't even know there was a hover description, keep that the same.

The comments were just misleading. With normal settings, cancer barely survives on Kilobody, but is renegade on Quadratic and of course Per Veggie.