Code center > Suggestions

in-cycle switching of control sysvars like .readtie and .focuseye

(1/4) > >>

EricL:
Today, refvars and trefvars are populated only once per cycle,  at the beginning of the cycle based upon whatever the value of .focuseye or .readtie was at the end of the last cycle.  Changing .focuseye or .readtie mid cycle has no effect - only the last value stored matters and then only for the next cycle.  This makes it impossible to switch between eyes or ties during a cycle.  Same thing with .tienum and controlling ties.

I've been playing around and I think I can make the refvars and trefvars populate mid cycle whenever .focuseye or .readtie is modified.  This would make things like the following possible:


-4 .focuseye store
*.memval *.dnalen != and
140 .aimleft store
-1 .shoot store

-3 .focuseye store
*.memval *.dnalen != and
105 .aimleft store
-1 .shoot store

-2 .focuseye store
*.memval *.dnalen != and
70 .aimleft store
-1 .shoot store

.
.
.

What do people think of this?

Numsgil:
If you can get it to work, huzzah!

But there are issues here.  Basically you'd need to store all the refvars and trefvars for every potential bot the first one can see or is tied to, otherwise you have the potential for the order that a bot's DNA is executed to effect the results you get, which is bad.

Also, this would effectively change the senses from 1 eye with 8 proximity sensors to 9 full eyes.  That's a huge jump in senses.  Old bots just don't stand a chance with something like that.  Maybe we could change the dynamics a bit and limit it to, say, 3 or 5 full eyes?

bacillus:
My OCULUS code would really benefit from that. But I think Numsgil's right, that would just give bot too much power:

-4 .focuseye store
'Code for eye 1
-3 .focuseye store
'Code for eye 2
'etc...
This would essentially turn the eyes into one huge eye that can still be used as nine eyes, without the drawback of widening the focus eye.

Moonfisher:
It seems a litle overpowered in some way but it also creates the possibility to reconize when you are outgunne or surounded and such...
Also it would be cool if you could read the .tin values of different ties in one cycle, having a focustie or something... (Not nesesarily being able to change tienum, just the tie you read from)
Could be interesting... but would make compex eyes very powerfull compared to "normal" eyes...

The_Duck:
How about just doing it for ties? The current eyes design is based around a single focus eye, but I see no reason why all ties shouldn't be equivalent.

Navigation

[0] Message Index

[#] Next page

Go to full version