Darwinbots Forum

Code center => Bugs and fixes => Bug reports => Topic started by: Testlund on September 29, 2013, 07:31:15 PM

Title: Waste from nothing
Post by: Testlund on September 29, 2013, 07:31:15 PM
After a decaying body had been shooting waste shots until it disappeared, waste continued to build up seemingly from nothing in the brown bots, which I have designed to use waste.
Title: Re: Waste from nothing
Post by: Testlund on September 29, 2013, 07:58:10 PM
It looks like slime gets converted to waste, but that doesn't seem right to me.  :blink:
Title: Re: Waste from nothing
Post by: Botsareus on October 01, 2013, 03:51:13 PM
I'll take a look; Are the chloroplasts converting waste to energy at an optimal rate?
Title: Re: Waste from nothing
Post by: Testlund on October 01, 2013, 03:54:44 PM
Yeah, it looks good.
Title: Re: Waste from nothing
Post by: Botsareus on November 06, 2013, 09:26:32 AM
Hey Testlund, I am looking at your "waster from nothing" simulation. At what point (cycles) does your robot turn in to corps?
What is the robot I should be observing for ghost waste?
Can I write a simpler simulation with only one corps robot and one target robot that does nothing and expect to see the same results?



It looks to me like the robots are naturally getting waste...
Title: Re: Waste from nothing
Post by: Botsareus on November 06, 2013, 10:06:21 AM
[Bump]

I have ran the following simulation (attached 2 files)

I don't see any run away waste due to enabling 'do not decay waste shots.'

edit: Also attaching I_Flimma jic my version different then yours.
Title: Re: Waste from nothing
Post by: Testlund on November 11, 2013, 02:43:09 PM
I'm looking into this again. I've started a new sim with the bots I used when this happened to see if it was just a temporary glitch, but here is a video showing what should happen if you run the sim that I posted at the top of this thread.

https://www.youtube.com/watch?v=80Wcnt5WAco&feature=c4-overview&list=UUZDVh1J8SG8HAfq6qypiANw

While waste is slowly counting down as it gets converted through chloroplast it suddenly make an increase and then again starts to count down.
Title: Re: Waste from nothing
Post by: Testlund on November 11, 2013, 03:13:44 PM
Run this one and check out the bot called Wastebot. Waste starts from 0 and quickly counts up to around 60. It should be 100% reproducible.
Title: Re: Waste from nothing
Post by: Botsareus on November 12, 2013, 02:07:25 PM
I will.
I'll also run it using 2.45.

I should have free time this weekend.

Thx.
Title: Re: Waste from nothing
Post by: Botsareus on November 16, 2013, 09:55:07 AM
Ok so, In 2.45 waste stops building up at 102.xx. In 2.46 the waste seems to build continuously. Let me see if I disable the waste to energy chlr. code. cross-fingers.



Let me also note that Panda was not clear in his description: Although lots of waste is an indicator that the robot is not reproducing, it does not mean that a robot that can reproduce will have zero waste.
Title: Re: Waste from nothing
Post by: Botsareus on November 16, 2013, 10:01:07 AM
That did not work, but I figured it out:
Apparently robot seems to get more waste due to the fact that it is getting fed energy from the chloroplasts.
If I set feeding rate to zero, this stops happenin'

Now I just have to figure out why.
Title: Re: Waste from nothing
Post by: Botsareus on November 16, 2013, 10:33:04 AM
Ok, I figured it out:

There is a gene in your robot:

Code: [Select]
cond
*.fixpos 0 >
and
*.nrg 250 >
and
*.slime 250 <
start
50 .mkslime store
stop

You may be aware that making slime produces waste.
What is happenin' is your robot is constantly producing more slime, as it is constantly getting more energy from chloroplasts ( .nrg > 250 )

This does not happen in 2.45 due to the fact that a robot is not getting any new energy, that is: .nrg < 250
Title: Re: Waste from nothing
Post by: Testlund on November 17, 2013, 05:31:46 AM
Apparently robot seems to get more waste due to the fact that it is getting fed energy from the chloroplasts.
If I set feeding rate to zero, this stops happenin'

Now I just have to figure out why.

Could it be that the code that converts energy from chloroplasts has something in common with energy shots that hits a bot? In that case waste is built up. I'm just guessing there is two kinds of energy code in there.

Quote
You may be aware that making slime produces waste.
What is happenin' is your robot is constantly producing more slime, as it is constantly getting more energy from chloroplasts ( .nrg > 250 )

Yeah, I suspected that early on but it doesn't seem reslistic to me.
Title: Re: Waste from nothing
Post by: Botsareus on November 17, 2013, 01:25:48 PM
Quote
Yeah, I suspected that early on but it doesn't seem realistic to me.

That is exactly what is happenin' though, I have tested it.
I kinda want to leave the waste code the way it is though, if you don't mind.

A good way to test is to set feeding rate to zero.

Oh, I just extracted the robot and tested it solo. That might be a hint too.
Title: Re: Waste from nothing
Post by: Testlund on November 17, 2013, 08:56:13 PM
So waste from slime is a feature, then?

What would you say about slowing the decay rate for slime instead? As it is now it disappears as quickly as it is created. It requires an awful lot of energy to maintain with very little benefit.
Title: Re: Waste from nothing
Post by: Botsareus on November 18, 2013, 11:12:36 AM
sounds good.
Title: Re: Waste from nothing
Post by: Testlund on November 18, 2013, 01:48:43 PM
Maybe 1/3 of current speed or thereabout?  :)
Title: Re: Waste from nothing
Post by: Botsareus on November 23, 2013, 12:23:29 PM
I found something interesting while working on slime: If the robot's costs are nothing, then making slime does not produce any waste.

Anyway, just changed slime's decay rate from 2% per cycle to 1% per cycle. Keep in mind that slime decays in half lives. This means that having tons of slime and having a little slime will decay at almost the same rate.

Title: Re: Waste from nothing
Post by: Botsareus on November 23, 2013, 02:39:15 PM
So, really, what I am trying to say is: If your robot does not have a slime cost it should not build up any waste.
Also the change to slime means that some older robots may not work exactly the same.
Now the question to you is: should I keep my mod or should I change it back and just lower your slime cost?
Title: Re: Waste from nothing
Post by: Testlund on November 24, 2013, 09:39:51 AM
I think a lower slime cost would be the best choice then.
Title: Re: Waste from nothing
Post by: Testlund on November 24, 2013, 09:45:14 AM
I just have to have costs on everything metabolic and morphological otherwise it ruins the whole concept of running unicellular life on a computer, but that's just me. So I'll have to live with the waste build up then.  :closedeyes: