Code center > Bugs and fixes
Major shot and energy bug
PurpleYouko:
I notice that in Henk's screenshot, the -1 shots are hitting the very edge of a fat veggie. I think there might be an upper limit to the diameter of the bot which will send back -2 shots. At least that was what I found when I first introduced variable robot size in 2.36. maybe this is more of the same but more pronounced since robot size is so much more variable.
Personally I think there is too mauch size variation but that is just an opinion and not a technical issue.
Elite:
This seems to be is a combination of three issues:
1) -2 shots don't have a great enough range to hit the bots they're supposed to be feeding
2) There might be an upper limit to the diameter of the bot which will send back -2 shots, so you might not get back energy if you shoot a fat veg with a glancing hit
3) With my combat bots, sometimes energy shots are missing because the bots are too small and by the time the shot reaches them they have moved
On the topic of sizes:
Hey, you couldn't include the option to turn dynamic sizes on and off could you?
EricL:
Hey, I bet shot ranges don't take into consideration a bot's radius! I bet they are calculated from the bots center, so the bigger the bot, the more shots exists soley inside the bot where other bots can't get at them. Making collision detection work probably exberated this issue in 2.4 since now bots can't get inside other bots where the energy shots mostly are!!!! This is why this is becoming more apparent now. Energy shots also decay over time so even when they do get outside the bog bot, they have less energy!
I'll take a look at size restrictions and I'll make shot range take bot radius into consideration for sure. I think it's probably pretty easy to expose setting limits on maximum and minimum bot radius though I will have to take a look.
Numsgil:
There is some vector fun with shots to bots collision detection that has screwed me up so many times in the past. It's basically a line to circle collision detection. That could be suspect.
PurpleYouko:
--- Quote ---Hey, I bet shot ranges don't take into consideration a bot's radius! I bet they are calculated from the bots center, so the bigger the bot, the more shots exists soley inside the bot where other bots can't get at them.
--- End quote ---
I bet you are right.
We had this problem to a lesser degree in 2.36.
I think shots are generated at 'bot center' but collisions are detected at 'bot perimeter'
Returned shots should be set to the same range as incoming shots but with a small bot shooting a big bot that might not be enough.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version