Author Topic: Shvartz, can you help me out?  (Read 43830 times)

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
Shvartz, can you help me out?
« Reply #75 on: July 06, 2005, 09:09:12 PM »
Try randomly removing some active genes and see if the behavior changes at all.  Especially with the stak nature of the program, even a gene that just puts 50 on the stack can be useful.

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #76 on: July 06, 2005, 09:15:48 PM »
Ahm, too much work :)

Maybe when I get tired of evolving this thing...

I can post it here though, if anyone is interested.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
Shvartz, can you help me out?
« Reply #77 on: July 06, 2005, 09:42:10 PM »
Yes, post it please!

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #78 on: July 06, 2005, 11:58:48 PM »
Attached.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Sprotiel

  • Bot Destroyer
  • ***
  • Posts: 135
    • View Profile
Shvartz, can you help me out?
« Reply #79 on: July 07, 2005, 11:41:19 AM »
Are you sure it's the right file ? It has only 10 genes and two of them are syntactically invalid (4 and 5).

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #80 on: July 07, 2005, 11:48:53 AM »
More weidness...  The bots in the sim have 14-15 genes.  The bots in the snapshot have 10-11 genes.  Something's messed up for sure.  I saved one of the bots as an organism, I'll attach it here.  It had 15 genes in the sim, try it and let me know what it looks like.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #81 on: July 07, 2005, 11:50:44 AM »
An update:  it turns out that even in the sim the bot has 10 genes, but when I click "show activations" - there are 15 genes in there.  So probably something is messed up there.

Nums, PY, are you reading this?   Another bug!
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Shvartz, can you help me out?
« Reply #82 on: July 07, 2005, 12:29:24 PM »
Looks like there is another bug too.

I can't load the organism file without it totally crashing DB.

How about just posting the DNA.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #83 on: July 07, 2005, 01:44:01 PM »
Good thing I did not try that.  Here is another random-picked bot from the sim:

Quote
cond
  *.nrg  20536 >
  *.nrg  20536 !%=
start
 div  *.tielen3 inc
 inc
 div  *.daytime inc
  *102 inc
 inc
  *133 rnd inc
  50  743  *.myeye  .repro store
  369  380  *297
stop

'''''''''Gene  2: Last 'stop' at position  30'''''''''

cond
  *.nrg  20536 >
  *.nrg  20012 !%=
  *.nrg  19616 !%=
start
 inc
  51  300 add
stop

'''''''''Gene  3: Last 'stop' at position  46'''''''''

cond
  *.nrg  20536 >
  *.nrg  20536 !%=
  *.nrg  20536 !%=
  *.nrg  19616 !%=
start
 inc
  53  300
stop

'''''''''Gene  4: Last 'stop' at position  64'''''''''

cond
  *.out2  *490 !%=
cond
 store
 !%=
cond
 store
stop

'''''''''Gene  5: Last 'stop' at position  74'''''''''

cond
  *.out2  *490 !%=
cond
 store
 !%=
cond
 store
stop

'''''''''Gene  6: Last 'stop' at position  84'''''''''

cond
  *649  *.hitsx <=
  *.shareslime  *180 <
start
  1168  *.refvelsx add  *516  *.refpoison  *.rdboy -12 rnd  *.rdboy  *395 sub -12 rnd  *553 rnd -12 mult sub rnd sub inc
  *.trefvelyourdx sub sub sub rnd div  *.refdn  *640  *387  *.veldx  *.rdboy dec
  *387  *.rdboy store
 rnd  *387  *.rdboy rnd  *387  *.rdboy rnd  *.robage  *159  *.sharenrg sub  *43  *121  *735  *916  *.mydn sub rnd  *.shootval  *.shdx mult  *735  *372  *768 rnd inc
  446 -130 div rnd -130 sub rnd -130 sub rnd  *735 rnd -215  214  775  *.daytime dec
  *615 -1 div -1292  *.pwaste inc
 inc
  *.pwaste -245 inc
 inc
  *.pwaste inc
 mult  *307 div  460 -565  644 -818  1180 store
  *273 store
  *273  *.aimsx rnd dec
  *353 -1179 -1022 dec
  *872 store
  *948  218 -1203  444 inc
  841  *781  11 dec
  847 -549  11  *.sharewaste inc
  *868  *.trefvelmydx -434  0 div div inc
  9 mult  1  354 store
 -813  10 add mult  *.trefvelmydx  1  698  *676 rnd  *.trefaimsx  11 div  342 store
 store
  1278 inc
  1342
stop

'''''''''Gene  7: Last 'stop' at position  254'''''''''

cond
  *.shareslime  *.eye8 !%=
start
  *.tieval  53  1168  *.refvelsx rnd  *652  *553 -12 dec
  *.sx sub dec
  *.sx sub inc
 rnd mult rnd dec
  88 mult  962  *177  *.mysx  *617  *735  *.shdx add  *.trefup  *107 -1195  *224  *676  *772  *.trefypos div  *772  *606  *.shdn div inc
 dec
 rnd  *735 add rnd  *.fixpos inc
 rnd  *.fixpos inc
 rnd  *735 rnd rnd  *44 div rnd rnd div mult  *.refaimdx rnd dec
 sub  *.refaimdx rnd dec
  630 add div add dec
  627 div inc
  *.tieloc rnd sub -952 inc
  *435  *.treffixed inc
  .up store
 div add -1460 -1291  *.bodloss  *.pwaste -505 inc
 sub store
  396 -909 add -187  *307 -229 div add  *.veldx mult  *.hitsx sub div  460 -565  460 -565  460 -565 div store
 div div store
  *.backshot  *.daytime store
  218 -1203 inc
 inc
  9 div dec
  *363  *868  *381 inc
  *868  *381 add div  *955  *288  *.trefvelmydn  2 -564 -494 dec
  9 -8  1  354 store
  10 add  1  *676 store
  11  .up store
 store
  *415 mult  1581 store
  *415  1278 inc
  1342  *.shdn  *40
stop

'''''''''Gene  8: Last 'stop' at position  431'''''''''

cond
start
  *.tieang2  *591 inc
  *.trefypos  *591 sub  *.trefypos  *591 rnd  *175 rnd  *162 rnd  *.shdx rnd -382  *816  128 -331  401 -376 div dec
  401 -376 dec
  1277 -220 -794 inc
  1163 store
  539 -178 div  1465 dec
  1 store
  7 rnd rnd -949
stop

'''''''''Gene  9: Last 'stop' at position  477'''''''''

cond
start
 -1  7 -1  7
stop

'''''''''Gene  10: Last 'stop' at position  484'''''''''

cond
start
 store
 sub store
 sub sub  10 add sub dec
  10 rnd mult dec
  *268  *650 sub  *969 store
 dec
 dec
 inc
 inc
 mult mult dec
 inc
 div dec
 inc
 div dec
 sub sub store
 div sub inc
 div sub -300 inc
 dec
 mult  *50 div sub rnd dec
 inc
 div dec
 rnd inc
 dec
 mult dec
 inc
 -464 dec
 div inc
 add  1 sub
stop

'''''''''Gene  11: Last 'stop' at position  551'''''''''

cond
start
 store
 sub sub  10 add sub dec
  10 rnd mult dec
  *268  *650 sub  *969 store
 dec
 dec
 inc
 inc
 mult mult dec
 inc
 div dec
 sub sub store
 div sub inc
 div sub -300 inc
 dec
 mult  *50 div sub rnd dec
 inc
 div dec
 rnd inc
 dec
 mult dec
 inc
 -464 dec
 div inc
 add  1 sub
stop

'''''''''Gene  12: Last 'stop' at position  613'''''''''

end

It shows up in my sim as having 15 genes.
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Shvartz, can you help me out?
« Reply #84 on: July 07, 2005, 04:37:20 PM »
So I am gessing nothing interesting is happening because Shvartz is getting tierd.

The Bot just moves arround junk , and still just moves in straight lines and shoots...

Were is the evolution?  <_<

And by the way the most resently posted robot (in the quote) runs backwords and does not feed at all  :unsure:  :blink: (I am sure it does not do that in shvartz simulation)

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Shvartz, can you help me out?
« Reply #85 on: July 07, 2005, 04:40:46 PM »
You cant beat reading somthing like this:

Quote
cond
  *.out2  *490 !%=
cond
store
!%=
cond
store
stop

What am I supposed to do with that?

 :sleep:

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #86 on: July 07, 2005, 05:17:27 PM »
I'm guessing this stuff (multiple conds in same gene) is what makes the program beleive that there are 18 genes instead of the actual 12.

Yeah, the bot learned to slow down whenever it hits something (usually food) and does not evolve any further.  The fact that the program's mutation routine is messed up does not help either...  The good news is that it has tons of DNA now and most of the genes are not junk, but are active genes.  I think the current bot is good enough to survive in the current sim and that's why it is stuck in evolutionary pathway.  So I am going to try and create some more selective pressure for it.  After all,  right now the bot's population does not follow the "up and down" curve that is indicative of a good selective pressure.

So, yes, I am getting tired, but I am still far away from giving up!
"Never underestimate the power of stupid things in big numbers" - Serious Sam

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
Shvartz, can you help me out?
« Reply #87 on: July 07, 2005, 07:52:42 PM »
The problem that I found was that any robot not travelling parralel to all the others just gets trashed the moment it steps out of line and crosses the strafing path of the others. Maybe we shouldn't have started with a bot that shoots all the time.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
Shvartz, can you help me out?
« Reply #88 on: July 07, 2005, 08:17:42 PM »
PY, my point for this whole thing was to start from as simple as possible.

I think shoot all the time was as simple as possible.



Atleast now you can see why I was going crazy saying that we need a better mutations code and stuff, its just so mutch stuff this robot needs to learn to do and the dna is going through a lot of chance to find it. This
Quote
916  *.mydn sub rnd  *.shootval  *.shdx mult  *735  *372  *768 rnd inc
  446 -130 div rnd -130 sub rnd -130 sub rnd  *735 rnd -215  214  775  *.
is what the currant mutation system gives you.
And beleave me to write somthing better without hurting the math; (just basic conditions and basic instructions) is difficult.
« Last Edit: July 07, 2005, 08:19:22 PM by Botsareus »

Offline shvarz

  • Bot God
  • *****
  • Posts: 1341
    • View Profile
Shvartz, can you help me out?
« Reply #89 on: July 07, 2005, 10:05:37 PM »
I actually think this part of mutation routine is working fine - we are getting all sorts of mutations.  What needs to be fixed is the abnormal syntax.

As for PY's point - I am now increasing the size of the sim and leaving the same amount of veggies, so food and bots will be more dispersed.  I am at size 9 now and I am already seing bots running in many more than a single direction.
"Never underestimate the power of stupid things in big numbers" - Serious Sam