Author Topic: hi im new  (Read 4195 times)

Offline nimbim

  • Bot Neophyte
  • *
  • Posts: 4
    • View Profile
hi im new
« on: October 14, 2012, 07:57:18 AM »
i recently found this amazing program and need some help with my bot.

This is basically a modified animal minimalis eating gene
Code: [Select]
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
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: [Select]
cond
  *.out1 37 !=
start
  5 .repro store
  *.thisgene .mkvirus store
  200 .vshoot store
  1 .fixpos store
stop

Thanks for any help

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: hi im new
« Reply #1 on: October 16, 2012, 02:23:45 AM »
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.

Offline nimbim

  • Bot Neophyte
  • *
  • Posts: 4
    • View Profile
Re: hi im new
« Reply #2 on: October 16, 2012, 09:35:32 AM »
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.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Re: hi im new
« Reply #3 on: October 17, 2012, 03:43:35 AM »
Oh, maybe that eye value is based on the distance value from the center of each bot instead of the suface-to-surface distance.

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Re: hi im new
« Reply #4 on: October 17, 2012, 05:36:39 PM »
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

Offline nimbim

  • Bot Neophyte
  • *
  • Posts: 4
    • View Profile
Re: hi im new
« Reply #5 on: October 18, 2012, 06:53:13 AM »
That eye distance problem is really unfortunate.

Thanks Numsgil+Botsareus.