Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Henk on November 21, 2006, 03:54:52 PM

Title: Not receiving body when fireing -6 into corpse
Post by: Henk on November 21, 2006, 03:54:52 PM
The bots in attached sim attack non-corpses with -1:
*.eye5 0 >
*.refnrg 0 >
*.refbody 0 >
start
-1 .shoot store
(...)
stop


and corpses with -6:
*.eye5 0 >
*.refnrg 0 =
*.refbody 0 >
start
-6 .shoot store
(...)
stop


However, they do not seem to get any body from corpses after hitting them with -6 shots. Another feature or is this one really a bug?

note; waste really messes these bots up as they don't get rid of it (their eyes' directions are altered), effectively preventing them from living:P
Title: Not receiving body when fireing -6 into corpse
Post by: EricL on November 21, 2006, 04:55:09 PM
There was a bogus check for .nrg <= 0 in the routine that returns body shots, which is why they worked against extant bots but not corpses.  Fixed in 2.42.9d.
Title: Not receiving body when fireing -6 into corpse
Post by: Henk on November 22, 2006, 03:22:12 AM
Yay thanks
Title: Not receiving body when fireing -6 into corpse
Post by: Testlund on November 22, 2006, 04:58:21 PM
This is interesting. -6 shot is a feeding shot, right? So they can feed from corpses? I found a lot of bots can starve to death trying to feed from corpses.
Title: Not receiving body when fireing -6 into corpse
Post by: Numsgil on November 22, 2006, 05:02:21 PM
Firing -1 shots into a corpse is pretty useless.  That could be what you're seeing.