Code center > Solved Bugs
Chloroplast cheaters
Testlund:
Ok, this is what I think happened.
In the sim I uploaded in the zip file the program decided that Alzheimer's should mostly affect chloroplasts. That seemed odd and why I thought there was something wrong. Waste threshold was set to 4096 and most bots didn't have any waste when I looked.
When I ran the two beta versions, as Alzheimer's started to build up it favored to affect venom first and once it got to the waste threshold it started to affect everything randomly.
Maybe it was some pseudo random/seed thing that caused this difference.
In my last test with waste threshold set to -1 there was no Alzheimer's.
Botsareus:
I just got back, I may know what is going on here:
I have changed the way feedvegs2 works: I made it work across all robots and I made it dependent how much chloroplasts a robot has:
--- Code: ---Public Sub feedveg2(t As Integer) 'gives veg an additional meal based on waste 'Botsareus 8/25/2013 Fix for all robots based on chloroplasts
With rob(t)
If .nrg + (.Waste / 2) * (.chloroplasts / 32000) < 32000 Then
.nrg = .nrg + (.Waste / 2) * (.chloroplasts / 32000)
.Waste = .Waste - .Waste * (.chloroplasts / 32000)
End If
End With
End Sub
--- End code ---
This means the more chloroplasts a robot has the more waste it converts into energy.
Sorry for the confusion, I only realized this can be the culprit half way to the mall.
edit: I am thinking get rid of the mkchlr block that I just implemented, and do something about this specific function.
Any ideas?
edit:
rofl, how appropriate: the conversation is about Alzheimer's
Panda:
Yeah, I don't like having that block there, I can't see how it's that subroutine that is causing the problem as it doesn't modify the number of chloroplasts does it?
Botsareus:
No, it does not
Your question was:
--- Quote ---Unless they temporarily had a large amount of waste and got rid of it. Could that have happened in your bot, Testlund?
--- End quote ---
I may have your answer.
Botsareus:
What do you think we should do Testlund?
Here is essentially what is happening:
Robot gets a sh*t load of waste
Robot gets Alzheimer's
Alzheimer's causes robot to use chloroplasts
Chloroplasts dump the robots waste into energy
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version