Code center > Darwinbots Program Source Code
Chloroplasts
Panda:
Botsareus? You know the "light available"? Shouldn't that be the corrected area, because, the more bot area there is, the less light available for them? It currently increases when there are more bots.
Botsareus:
I thought it was:
1 - total robot area / screen area
So like if robot area is 1000 units and screen area is 1000 units then ...
eh, I see your point
Yes you right "light available" should be corrected area, that day was intense I probably fuged it up. :P
Move stuff out of global and move the proper variable to global.
I'll review stuff this Sunday.
edit:
I need to be a little more clear:
sudo:
That light sysvar should be = ( 1 - robot.area / screen.area ) * 32000
so, at max density it will be zero and at little density it will be close to 32000
Hey btw Panda, you might want to consider adding in a way to share chloroplasts trough ties. (Now that I actually understand your approach that sounds like a good idea)
edit: Also I think we need to add "addchlr" ( or is it mkchlr as in mk47) , "rmchlr" and "chlr" as separate variables
I think "chlr" should be a read only variable
we should charge for addchlr (or is it mkchlr)
we should not give a robot free energy for rmchlr in my opinion.
--- Quote ---Wouldn't it have been easier to update all of the bots memory counts separately to everything else. They all seem to be updated much more than once all the way through it.
--- End quote ---
That is a lot of recoding, and there are later memory depending on earlier memory. But, what specifically did you have in mind?
Numsgil still wants some kind of automated system to help old plants transition into the new system.
Panda, Put together an Alga minimalis that uses the new feeding methods (I still don't know if we are going to use AddChlr or Chlr so I don't have a clue how this robot will look like)
I am seriously considering having a checkbox something like "Add a chloroplast gene" in the settings that automatically inserts the gene into the robot. It must be simple, cost effective, and normalize at 16K Chloroplasts.
edit: I see a few ways of doing this, I can take this part over when it is time
Not so good news:
I really wish I can do more then just give instructions :banghead:,
But, If that was the case I would have start digging into DB3 and trying to figure it out :)
Good news: I am getting an UPS for my laptop this weekend.
Peter:
Why an UPS for your laptop, dead battery?
Panda:
Right, I'm probably dropping off the radar this weekend. I can't really submit my changes as they're mid change. Do you plan on adding anything soon?
Botsareus:
--- Quote ---Why an UPS for your laptop, dead battery?
--- End quote ---
People strongly recommend not to use your battery when running a laptop 247, something to do with it unchanging and then charging again. Don't know to what extent this is true for a vaio laptop from 5 years ago.
--- Quote ---Right, I'm probably dropping off the radar this weekend. I can't really submit my changes as they're mid change. Do you plan on adding anything soon?
--- End quote ---
Few, Panda, that is a good thing because I am kinda overwhelmed with this project right now, I keep making stupid mistakes in my descriptions.
Leave the lighaval code the way it is, I might have to use it for something else later:
--- Code: ---
LightAval = TotalRobotArea / ScreenArea 'Panda 8/14/2013 Figure out AreaInverted a.k.a. available light
AreaCorrection = (1 - LightAval) ^ 2 * 4
--- End code ---
When you actually tell the robot how much light it has available then we invert it:
--- Code: ---rob(n).mem(light) = 32000 - LightAval * 32000
--- End code ---
sorry for the confusion :)
I kinda have to wait for you to submit before we can test it.
--- Quote ---Oh, we need to add chloroplasts also to 'snapshot' and my three 'custom graphs' for snapshot I already created space for it , it should be the last cstr(0), not sure about custom graphs though.
--- End quote ---
This is also not a very important change on this stage, I'll take a look at this before we go live with the project.
Also, I would like to have your ideas on this little subroutine:
--- Code: ---Public Sub feedveg2(t As Integer) 'gives veg an additional meal based on waste
With rob(t)
If .nrg + (.Waste / 2) < 32000 Then
.nrg = .nrg + (.Waste / 2)
'.Waste = .Waste - (.Waste / 2)
.Waste = 0
End If
End With
End Sub
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version