Code center > Bugs and fixes

Shooting energy endlesly

(1/3) > >>

Testlund:
I'm not sure if this is a bug but I think it's weird. A veggie in my sim is shooting energy without loosing any. It seem to has lost a lot of energy to begin with but it has stopped at 49. Now it doesn't lose any more energy.

EricL:
I think they are body shots, not nrg shots.  If I understand the DNA correctly, its basically:

-132 7 store

and the way the mod works on shots, -132 is equivalent to -6.

So the veggy is shooting body, not nrg and since CostX is 0, there is no nrg cost for the shot.  Thus, no nrg drop.

Numsgil:
Are you sure it's -132 7 store?

Looking at it I see it as doing 2 7 store, which would be shooting out nrg shots.  But it's also late at night for me and I can be off here.

Sprotiel:
I think *-n is ignored and doesn't affect the stack. So this would be a '-2 .shoot store', an energy shot. If the bot has 0 in .shootval, the shot carries 0 energy.

EricL:
I'm sure your right.  I'm been afraid to crack open and try to understand the DNA parsing and execution code.  I hated my compilers class...

Navigation

[0] Message Index

[#] Next page

Go to full version