Code center > Bugs and fixes

.hit ? (2.42.1

(1/3) > >>

Welwordion:
I read in the wiki that .hit does not save its value so I wanted to test if that is true.
However neither hit (tested with printmem) nor printtouch returned any value different from 0 regardless of situation.
(afternote: I also tested it for 2.42.2)

hm tielen does also return no value

Numsgil:
They're probably broken.  They're not really core featurs so sometimes they get overlooked.  Thanks for catching them.

atrop:
Hi Numsgil, it seems that at some point during those last five years .hit got broken again. I don't think .shflav and .shang are working either - in fact I don't see anything happening in that 210 range at all.

Do you still fix bugs in the 2.x version? I hope you do...

Numsgil:
I sometimes (and reluctantly) will go back in and fix bugs.

Which version are you using right now that they look broken in?

atrop:
I did some more testing and it turns out that only shang, shflav and the directional shot detection seem to be broken (I didn't realize that .hit is for "body" contact only). I put the following genes in veggie DNA:

cond
  *.shflav 0 !=
start
  100 .up store
stop

I would excpect that the veggie would move whenever it is hit by a shot, but nothing happens and I dont see anything going on in memory location 202. Nothing happening in the 209+ range (the directional shot values like .shup) either for that matter.

The version I use is DarwinBots 2.45.01, allthough it says 2.44 somewhere in the version pop up as well, not sure what that is about.

I'd really appreciate if you could take a look at this. Let me know if you'd like a postcard from Austria in return or something (no sexual favours).

Navigation

[0] Message Index

[#] Next page

Go to full version