Darwinbots Forum
Bots and Simulations => Bot Tavern => Topic started by: MrMound on February 23, 2006, 11:32:09 PM
-
this is a battery bot that I made. its pretty fun to watch all the little bots pulling around veggies.
cond
*.robage 0 =
start
.tie inc
stop
cond
*.robage 1 =
start
.deltie inc
stop
cond
*.numties 4 <
start
10 .up store
stop
cond
*.numties 4 =
*.eye9 add *.eye8 add *.eye7 add *.eye6 add *.eye5 add *.eye4 add *.eye3 add *.eye2 add *.eye1 0 =
start
1 .fixpos store
stop
cond
*.numties 4 <
start
0 .fixpos store
stop
cond
*.numties 2 =
*.nrg 2000 >
start
60 .repro store
stop
cond
start
*.tiepres .readtie *.numties sgn mult store
.tiepres .memloc *.robage -1 mult 1 add sgn mult store
.numties .tmemloc *.robage -1 mult 1 add sgn mult store
55 10 rnd add .tie *.refeye sgn -1 mult 1 add sgn mult *.eye5 45 sub sgn mult *.memval sgn -1 mult 1 add sgn mult *.robage sgn mult store
628 .fixang *.numties sgn mult store
200 .fixlen *.numties sgn mult store
*.tiepres .tienum *.numties sgn mult store
.fixpos .tieloc *.numties sgn mult *.treffixed mult store
0 .tieval *.numties sgn mult *.treffixed mult store
80 .sharenrg *.multi mult store
*.tiepres .deltie *.tmemval 1 sub sgn mult store
*.tiepres .deltie *.myeye *.trefeye sub sgn abs -1 mult 1 add mult store
stop
end
-
heres version 2. bwahahaha!! little bots everywhere!!
cond
*.eye5 30 <
start
.aimsx store
stop
cond
*.robage 0 =
start
.tie inc
stop
cond
*.robage 1 =
start
.deltie inc
stop
cond
*.numties 1 <
start
10 .up store
stop
cond
*.numties 1 =
*.eye9 add *.eye8 add *.eye7 add *.eye6 add *.eye5 add *.eye4 add *.eye3 add *.eye2 add *.eye1 0 =
start
1 .fixpos store
stop
cond
*.numties 4 <
start
0 .fixpos store
stop
cond
*.numties 1 =>
*.nrg 2000 >
start
60 .repro store
stop
cond
start
*.tiepres .readtie *.numties sgn mult store
.tiepres .memloc *.robage -1 mult 1 add sgn mult store
.numties .tmemloc *.robage -1 mult 1 add sgn mult store
55 10 rnd add .tie *.refeye sgn -1 mult 1 add sgn mult *.eye5 45 sub sgn mult *.memval sgn -1 mult 1 add sgn mult *.robage sgn mult store
628 .fixang *.numties sgn mult store
200 .fixlen *.numties sgn mult store
*.tiepres .tienum *.numties sgn mult store
.fixpos .tieloc *.numties sgn mult *.treffixed mult store
0 .tieval *.numties sgn mult *.treffixed mult store
80 .sharenrg *.multi mult store
*.tiepres .deltie *.tmemval 1 sub sgn mult store
*.tiepres .deltie *.myeye *.trefeye sub sgn abs -1 mult 1 add mult store
stop
end
-
Found a bug in my gene: need to put this code into it:
*.tiepres .readtie *.numties sgn mult store
It should work much better
Hey MrMound
Don't you want to do something with all the energy you're recieving. Store body, make slime and shell, use really powerful shots etc.
With several veggies powering the bot it's got lots of energy to burn :D
-
With several veggies powering the bot it's got lots of energy to burn
Well that kinda depends on the initial feed rate for the veggies. You get a bunch on th default settings but I always turn it way down to about 10 or 20 in my sims so I wouldn't get anything like as much free energy.
-
My veg feed rate is 30
Still enough to power a bot. So long as it's not fighting for it's life from it's first waking moment there's some periods of low energy expenditure that it can use to build up it's defences.
The default is several thousand :blink:
When I first ran a sim I wondered why the veggies were twice as large as the regular bots
-
The default is several thousand
Really?
Guess I never noticed. After Num modified and improved the GUI, the first thing I did was to set up a new default.set file.
I have uploaded it to the forum at various times as the new "default" settings file but I suppose many people are still using the old file.
Anyway, just set it how you like it and save the settings over the default so that your own settings just pop up each time you turn on. Saves a lot of grief that way.
You probably already did this yourself.
This is just general advice to anyone who hasn't.
-
ya I am working on that now. I only worked on this for a few minuts last night so I didn't have much time to do that.