Welcome To Darwinbots > Newbie

hi im new

(1/2) > >>

nimbim:
i recently found this amazing program and need some help with my bot.

This is basically a modified animal minimalis eating gene

--- Code: ---cond
  *.eye5 50 >
  *.in1 37 !=
start
  -6 .shoot store
  16 .shootval store
  2 .out2 store
  *.refveldx .dx store
  *.refvelup .up store
stop

cond
  *.out2 2 =
  *.eye6 5 sub *.eye5 >
start
  35 .aimdx store
stop

cond
  *.out2 2 =
  *.eye7 5 sub *.eye5 >
start
  70 .aimdx store
stop

cond
  *.out2 2 =
  *.eye4 5 sub *.eye5 >
start
  35 .aimsx store
stop

cond
  *.out2 2 =
  *.eye3 5 sub *.eye5 >
start
  70 .aimsx store
stop
--- End code ---
I wanted to make the bots turn their head if they aren't hitting their prey properly, it doesn't seem to work at all however.
Also, do I have to store the shootval for every shot? It's like this now because I improved the waste dump gene (*.waste .shootval store) and didn't think of a good way to set it back to 16 again yet.

What are good ways to make a bot commit suicide? My virus doesn't seem to be lethal to some bots I tried.

--- Code: ---cond
  *.out1 37 !=
start
  5 .repro store
  *.thisgene .mkvirus store
  200 .vshoot store
  1 .fixpos store
stop
--- End code ---

Thanks for any help

Numsgil:
How does it not work exactly?  It might just be a matter of tuning the numbers a bit; I think the idea is sound.

I think shootval gets reset once a shot is fired, so you'll need to reset it every time, yeah.

There isn't a great way to commit suicide, on purpose, since it could be a really good weapon.  Your best bet is probably to fire nrg shots and build venom and poison and body to exhaust the nrg supplies.

nimbim:
I've looked into the bot's memory when it isn't hitting properly and it turns out every relevant eye returns the same value. I use growing algae, so there really should be a difference.

Numsgil:
Oh, maybe that eye value is based on the distance value from the center of each bot instead of the suface-to-surface distance.

Botsareus:
The best way to emulate a robot committing suicide is to emulate essentially a corpse.

1.) Turn all current genes off.
2.) Turn a simple gene on that makes the robot turn slowly and shoot away its energy

Navigation

[0] Message Index

[#] Next page

Go to full version