Welcome To Darwinbots > Newbie

Hi! From a new guy, and of course a few questions!

(1/3) > >>

vrukt:
Hello! Firstly, I cannot say how much I love this program! It is very interesting, and seems to have a ton of potential.

Now for the inevitable question questions.

I've been trying to make a basic bot, I've never made one before, so I thought I would approximate yeast using pondmode.

It's 1 cell, should be simple right? Well I broke it down as; absorbing light instead of sugar, giving off waste (maybe .nrg to), floating to the surface and sinking back down to the bottom, and budding to reproduce.

So everything went smoothly, except for making it sink and float.

I wanted to attach that to light, so when it got under a certain amount of light it floated, and when it got to another percentage it started to sink again.

I tried

cond
*.light 10 <
start
32000 .setboy store
stop

cond
*.light 90 >
start
-32000 .setboy store
stop

I've also tried a lot of differen't combinations based on that, but I've also fiddled with .sun a bit, lower values on the .setboy, playing with the values on the .light, but I can't seem to get it to float and sink based on the light energy.

However as I have no clue what I'm doing, and don't know the values for .setboy or .light, as well as not being able to find much info about them, does anybody know if that is even possible? Or if I'm heading in slightly the right direction?

I know .setboy has a max value of 32000, but to get back to 0," 0 .setboy store" didn't seem to work so I used -32000

My brothers solution was to just tie .nrg to .ypos. When it gets too low on energy it moves up, and when it fills up to a certain point it shoots energy to drop down. Then stops, and starts moving back up. It actually works very nicely, and he's onto fiddling with reproduction.

I'm being stubborn though, so any tips towards the .light vs .setboy would be much appreciated.

Panda:
When you are using .light, what are you expecting from that, the amount of light it is receiving because of how far away it is from the top?

vrukt:

--- Quote from: Panda on August 21, 2014, 06:37:50 AM ---When you are using .light, what are you expecting from that, the amount of light it is receiving because of how far away it is from the top?

--- End quote ---

Yes. I had the light set to a gradient in the pond mode. At least that's what it appears to be. I have no clue about the values, or if .light is even usable in that manner (tied to movement, instead of chloroplasts)

My understanding was 100% light at the top, tapering off towards 0% light at the bottom, based on the "light intensity = 100" setting for pond mode. I also have sediment set to 10 and magnitude sent to 6, which leaves the example picture showing a fairly nice gradient.

On the sysvar's wiki page, it lists .light under the "chloroplasts" heading. Which is leading me to believe the .light variable is only used to refer to .chlr, .mkchlr, etc.

Panda:
Yeah, it is unfortunately. I think your brother's way of doing it is probably the best.

vrukt:
Darn thought so.

Thanks for the help though, you really put an end to my wild-goose chase.  :D

Will modify mine now to compete with his for the most "real" looking yeast.

Navigation

[0] Message Index

[#] Next page

Go to full version