Bots and Simulations > DNA - General

I have 2 qustions:

<< < (2/3) > >>

Numsgil:

--- Quote from: Botsareus ---1.) I pritty much answered my first qustion: Even .nrg can be "action memory" because it is changed when ever an action memory like .aimdx is exsecuted. This means I have to rewise my sexrepro system for a third time.

2.) venum does 1 .up then robot does 5 .up the result is (1 + 5) .up I.e. 6 .up
venum does 1 .up then robot does -5 .dn the result is (1 - abs(-5)) .up I.e. 4 .dn , I think I get it... (Do I get it?)
What about:
 
--- Quote --- .fixpos .vloc store
  1 .venval store
--- End quote ---

Does that overwrite .up or .dn etc...
--- End quote ---

You're only a quarter right.  Memory values get overwritten when new values are stored, but their actions can add together.

1.up by venom will overwrite 5 .up by the memory
1.up by venom and -5 .dn by bot will cause a net action of 6 .up

Botsareus:
Ok lets say I have


--- Quote ---5 .aimdx 50 .repro 5 .aimsx
--- End quote ---

Now I want to use venum "5 .aimdx"
then 50 .repro 5 .aimsx

What will happen?

Will it do 50 .repro 10 .aimsx ??
or what?

As far as I can understand

--- Quote ---.fixpos .vloc store
1 .venval store
--- End quote ---
will overwrite any motion commands, am I right?

Numsgil:

--- Quote from: Botsareus ---Ok lets say I have


--- Quote ---5 .aimdx 50 .repro 5 .aimsx
--- End quote ---

--- End quote ---

You need some stores in there.  But I think I get what you mean.


--- Quote ---Now I want to use venum "5 .aimdx"
then 50 .repro 5 .aimsx

What will happen?
--- End quote ---

Venom (it's spelled with a 'o') will overwrite .aimdx with 5.  Venom always gets to overwrite one single memory location with a new value until it runs out.  The .repro and .aimsx will remain unchanged.

However, after the DNA is executed, the program decides to move the bot based on the DNA.  .aimdx and .aimsx will work against each other and cancel out.  Resulting in no net motion during the cycle.


--- Quote ---
--- Quote ---.fixpos .vloc store
1 .venval store
--- End quote ---
will overwrite any motion commands, am I right?
--- End quote ---

You're right, but that's not because venom is overwriting the other bot's movement commands.  It's causing the bot to fix itself in place.  fixpos has a higher precedant than any of the other motion commands, so writing a value to fixpos will overpower whatever you write in to .up, etc.

Botsareus:
(  spelling)


--- Quote ---Now I want to use venum "5 .aimdx"
then 50 .repro 5 .aimsx

What will happen?
--- End quote ---

It will do 5 .aimdx 50 .repro 5 .aimsx??


--- Quote ---However, after the DNA is executed, the program decides to move the bot based on the DNA. .aimdx and .aimsx will work against each other and cancel out. Resulting in no net motion during the cycle.
--- End quote ---

I know , but I have seen some robots do that...

Botsareus:

--- Quote ---For instance, "10 up store" can be done as "10 .up". The period prefix is now associated with storing instead of label lookup.

And something like *.nrg is now done as *nrg (Trying to do *.nrg will result in a syntax error).
--- End quote ---

I was writing it to mach this system , so

--- Quote ---You need some stores in there. But I think I get what you mean.
--- End quote ---
Does not really apply

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version