Code center > Darwinbots Program Source Code
Chloroplasts
Botsareus:
Yes, let's do this for now.
If it is very ugly we can always add rules for getting or losing chloroplasts, and change the mass formula from ^ 2 to ^ 1.5 or something like that.
Panda:
Yeah, it does mean a lot less work. :D
Botsareus:
--- Quote ---If it is very ugly we can always add rules for getting or losing chloroplasts
--- End quote ---
Wait a minute, following my own logic, this will not work because robots can be loaded in with some chloroplasts.
I have a better idea, if robot has like under 4000 chloroplasts their chloroplasts are not active and does not count to 'allchlr'
Panda:
I don't think that's a fair limit exactly. We can leave it for a while anyway and discuss it after running a few trials. I'm sure we will have to tweak anyway!
Panda:
--- Quote ---As far as the command, I think all we need is a simple .chlr variable in the 900s range that differentiates between read and write. Look at how I differentiate for tielen...tieang 1...4 in Update_Ties in Ties.bas. There are three stages:
1.) Input: Only change chloroplasts if flag was triggered (this cycle)
2.) Clear Input: Reset flag (this cycle)
3.) Output: current chloroplast levels stored back into memory (this cycle)
--- End quote ---
Why is this necessary? If the number of chloroplasts is different then shouldn't it just change the number of chloroplasts or am I missing something, rather than using flags?
--- Quote ---Now we have to figure out how much energy it costs for sustaining chloroplasts:
--- Code: ---Subtract energy rate = (Chloroplasts the robot has / 32000) ^ 2 * tok
--- End code ---
--- End quote ---
There won't be a cost if it's not daylight because it's written in that way. Unless there's not meant to be a cost overnight?
I believe I have done everything but:
--- Quote ---We just put the value on top of the dna, example:
--- Code: ---'#chlr: 16000
cond
*.nrg
6000
>
start
50
.repro
store
15
.aimdx
store
stop
end
--- End code ---
The value will be displayed in the dna when you click show dna and when you extract dna to file. When you set robots to 'repopulate' (called vegys in version 2.45.01) the system should ask you if you want to reset their chloroplasts to 16000.
--- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version