Author Topic: battery bot  (Read 3608 times)

Offline MrMound

  • Bot Destroyer
  • ***
  • Posts: 156
    • View Profile
battery bot
« 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.


Code: [Select]
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
cooperation is working together to achive a common goal
mrmound

Offline MrMound

  • Bot Destroyer
  • ***
  • Posts: 156
    • View Profile
battery bot
« Reply #1 on: February 23, 2006, 11:59:28 PM »
heres version 2.  bwahahaha!! little bots everywhere!!

Code: [Select]
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
cooperation is working together to achive a common goal
mrmound

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
battery bot
« Reply #2 on: February 24, 2006, 06:34:33 AM »
Found a bug in my gene: need to put this code into it:

Code: [Select]
*.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

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
battery bot
« Reply #3 on: February 24, 2006, 08:47:01 AM »
Quote
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.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Elite

  • Bot Overlord
  • ****
  • Posts: 532
    • View Profile
battery bot
« Reply #4 on: February 24, 2006, 10:26:40 AM »
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

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
battery bot
« Reply #5 on: February 24, 2006, 11:26:22 AM »
Quote
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.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline MrMound

  • Bot Destroyer
  • ***
  • Posts: 156
    • View Profile
battery bot
« Reply #6 on: February 24, 2006, 02:27:44 PM »
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.
cooperation is working together to achive a common goal
mrmound