Author Topic: my tryouts. Help plz  (Read 19266 times)

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
my tryouts. Help plz
« Reply #30 on: September 22, 2005, 01:40:07 AM »
I think of it as a sort of constant arms race. Everyone is trying to out do everyone else :)

Offline Ulciscor

  • Bot Destroyer
  • ***
  • Posts: 401
    • View Profile
my tryouts. Help plz
« Reply #31 on: September 22, 2005, 04:06:49 AM »
I would love to build a bot based on emergent behaviour from a set of rules rather than rules for every possible situation, but it's quite difficult to get right.
:D Ulciscor :D

I used to be indecisive, but now I'm not so sure.

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
my tryouts. Help plz
« Reply #32 on: September 22, 2005, 06:03:25 AM »
Yeah that would be cool, also a bot that could learn specific behaviour for evey race of cobots would be great.

P.S Botsareus:That would not be of any use as I want it to continue feeding and at the same time I want it to share energy.Its more of a syntax problem  I seem to have as I wanted it to introduce an cond linked to which tie number is read.
.. hmm probably I tried to set 2 different tie values in the same cycle, I better should try activation in alternating cycles.
...A pity there is no modulo.(dividable bye)Just will do it with memlocs XD

P.S.S:there seems to be commaands not mentioned in the Dna help like signum and floor.(was signum not what I am looking for?)
« Last Edit: September 22, 2005, 07:58:40 AM by Welwordion »

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
my tryouts. Help plz
« Reply #33 on: September 22, 2005, 09:05:39 AM »
Quote
Am I right though , we are going to get rid of blocked vegs all together and replace it with some kind of stuff from the e-grid??

I don't favor getting rid of it. Blocking has its place in the scheme of things.

Fixpos and fixed are going to be combined to save sysvar space but blocked (as an option and as a possibility) must stay.
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
my tryouts. Help plz
« Reply #34 on: September 22, 2005, 09:14:42 AM »
There is a modular command.  "mod".  I'll be writing up all the commands on the wiki after 2.4 is up, since 2.4 has some new ones.

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
my tryouts. Help plz
« Reply #35 on: September 22, 2005, 04:19:21 PM »
Jeez just shot me I can not understand the world anmyore.
Gene 6 the feeding genes gets activated  but it does not feed and ithe bot ties to bots of the same species although that is forbidden (cond in gene 9 ssay there has to be already one tie and it must be a multibot already)

'gen1
cond
*.numties 0 =
*.multi 0 =
*.eye4 *.eye5 > or
*.eye3 *.eye5 > or
*.eye2 *.eye5 > or
*.eye1 *.eye5 >
start
*.eye1 3 mult *.eye2 4 mult add *.eye3 5 mult add *.eye4 6 mult add 10 div
.aimsx store
stop

'gen2
cond
*.numties 0 =
*.multi 0 =
*.eye6 *.eye5 > or
*.eye7 *.eye5 > or
*.eye8 *.eye5 > or
*.eye9 *.eye5 >
start
*.eye9 3 mult *.eye8 4 mult add *.eye7 5 mult add *.eye6 6 mult add 10 div
.aimdx store
stop

'gen3
cond
*.vel 30 <
*.multi 0 =
*.numties 0 =
start
30 *.vel sub 2 div .up store
stop

'gen4
cond
*.eye5 50 >
*.numties 0 =
*.multi 0 =
*refeye 0 =
start
20 .tie store
stop
cond

'gen5
cond
start
885 inc
stop

'gen6
cond
*.numties 0 >
*.trefnrg 4000 >
*885 2 mod 0 =
start
-1 .tieloc store
-1000 .tieval store
20 .tienum store
cond

'gen7
cond
*.nrg 9000 >
*.multi 1 =
*.numties 1 =
start
314 .fixang store
40 .stifftie store
stop

'gen8
cond
*.multi 1 =
*.numties 1 =
*.nrg 10000 >
start
70 .repro store
stop

'gen9
cond
*.eye5 30 >
*.numties 1 =
*.multi 1 =
*refeye *.myeye =
start
10 .tie store
stop

end

Offline PurpleYouko

  • Bot God
  • *****
  • Posts: 2556
    • View Profile
my tryouts. Help plz
« Reply #36 on: September 22, 2005, 04:46:29 PM »
You have a few errors here.

gene4 is the cause of the bot tying to his own species.
Quote
'gen4
cond
*.eye5 50 >
*.numties 0 =
*.multi 0 =
*refeye 0 =
start
20 .tie store
stop
cond

You are missing a dot between the * and the refeye.

In other words this line says 0 0 = which is always true. It is going to fire a tie at anything it sees as long as it doesn't have one already.

You also have an extra "cond" at the end. This may cause problems.

Gene6
Quote
'gen6
cond
*.numties 0 >
*.trefnrg 4000 >
*885 2 mod 0 =
start
-1 .tieloc store
-1000 .tieval store
20 .tienum store
cond

First the trefnrg won't work. It will require a command line "20 readtie store" in a prior gene in order to function. It doesn't know which tie to read otherwise.

You are ending the gene with a "cond" instead of a "stop"

Make these changes and try again
There are 10 kinds of people in the world
Those who understand binary.
and those who don't

:D PY :D

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
my tryouts. Help plz
« Reply #37 on: September 22, 2005, 06:18:33 PM »
Seems to work better(thx) although the mod command seems still to be faulty used by me as it only works if I take this condition out.
(hope I am not annoying you with this kind of mistakes)
« Last Edit: September 22, 2005, 06:29:59 PM by Welwordion »

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
my tryouts. Help plz
« Reply #38 on: September 22, 2005, 06:43:05 PM »
You can't have actions in the cond of a gene pre 2.4.

cond
5 6 add 11 =
start
...

will not work.  I don't know what it will do.

In 2.4, you can totally do this.
« Last Edit: September 22, 2005, 06:43:24 PM by Numsgil »

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
my tryouts. Help plz
« Reply #39 on: September 23, 2005, 07:20:59 PM »
Can robots(not the user) monitor the activation of gens? So the might learn to associate certain genes with certain chnages in their condition?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
my tryouts. Help plz
« Reply #40 on: September 23, 2005, 09:20:32 PM »
Not directly, no.  Natural selection will do this overtly given enough cycles.  You could also program a bot where each gene stored values in certain locations if it activated.

Offline Endy

  • Bot Overlord
  • ****
  • Posts: 852
    • View Profile
my tryouts. Help plz
« Reply #41 on: September 24, 2005, 01:09:37 AM »
To a very limited extent yes. The last gene to activate of another robot can be seen by storing *.thisgene in .memloc. It will readback the number in *.memval.

Possibly use *.thisgene 50 store in the last gene and check *50 to see what the second to last gene to activate was. If you keep track of what each gene does you could "tell" the bots what occured, would still be extremly difficult.

Would probably be a vast nrg waste also, so I wouldn't recommend it unless you could find a major advantage.

I'll take a look at this for you, I think there may be a relativly cheap way using inc/dec.

Offline Welwordion

  • Bot Destroyer
  • ***
  • Posts: 325
    • View Profile
my tryouts. Help plz
« Reply #42 on: September 24, 2005, 11:58:18 AM »
^^ ok I will take a pause from the ring project I wanted to make them reproduce in line that afterwards wraps around an algae but could not even create the line. This tie angles are confusing.
Heres my last tryout  I will just continue trying out some stuff not talking about any projects and when I am in the mood try to fix the ring thing.
P.S.:AAAAAAAAARRGGGGGGHHHHHH

'gen1
cond
*.numties 0 =
*.multi 0 =
*.eye4 *.eye5 > or
*.eye3 *.eye5 > or
*.eye2 *.eye5 > or
*.eye1 *.eye5 >
start
*.eye1 3 mult *.eye2 4 mult add *.eye3 5 mult add *.eye4 6 mult add 10 div
.aimsx store
stop

'gen2
cond
*.numties 0 =
*.multi 0 =
*.eye6 *.eye5 > or
*.eye7 *.eye5 > or
*.eye8 *.eye5 > or
*.eye9 *.eye5 >
start
*.eye9 3 mult *.eye8 4 mult add *.eye7 5 mult add *.eye6 6 mult add 10 div
.aimdx store
stop

'gen3
cond
*.vel 30 <
*.multi 0 =
*.numties 0 =
start
30 *.vel sub 2 div .up store
stop

'gen4
cond
*885 5 >
*.eye5 50 >
*.numties 0 =
*.multi 0 =
*.refeye 0 =
start
20 .tie store
20 .readtie store
628 .fixang store
stop

'gen5
cond
start
885 inc
stop

'gen6
cond
*.nrg 9000 >
*.eye5 10 >
*.multi 1 =
*.numties 1 =
start
*66 .aimsx store
*66 50 add 66 store
stop

'gen7
cond
start
60 .sharenrg store
stop

'gen8
cond
*.multi 1 =
*.numties 1 =
*.nrg 9000 >
start
70 .repro store
stop

'gen9
cond
*.eye5 30 >
*885 5 <
*.refeye *.myeye =
start
10 .tie store
stop

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
my tryouts. Help plz
« Reply #43 on: September 24, 2005, 07:43:42 PM »
Quote
This tie angles are confusing.
My thoughts exactly.  I'll probably go through some day and "simplify" them.   :devil:

Offline Botsareus

  • Society makes it all backwards - there is a good reason for that
  • Bot God
  • *****
  • Posts: 4483
    • View Profile
my tryouts. Help plz
« Reply #44 on: September 25, 2005, 10:40:23 AM »
Once again I must add to simplify them without simplifying their possibilities...