Page 1 of 1

[posila] Worms can exceed their range and projectile count (Reopened)

Posted: Mon Oct 21, 2019 9:11 pm
by Shadda
I have found two strange things that both happen when running around (small) worms with high player speed (used /c game.player.character_running_speed_modifier = 10)
This happened in multiple new sandbox save files in vanilla factorio.

1) Worms can shoot further than their range should let them when predicting player movement:
https://imgur.com/a/b0jP2Jx (Not able to record right now, but I think the screen shows enough)
It's not 100% of the shots, it depends on where you are while shooting I think?
You could say this is not a bug by saying worms can shoot further than their detection range, but as they detect the player before getting into shooting range (they plop out of the ground a little before already) this seems to not be the case.

2) Worms shoot multiple projectiles at once when doing the same as above:
https://imgur.com/a/fpbnpCt
Also doesn't happen 100% of the shots.
This may be an intended mechanic and not observable at low speed because the prediction difference for the projectiles is only noticeable at higher speeds. If so, why do they shoot multiple instead of one stronger projectile?

Re: Worm range bigger and worms shooting more projectiles than usual when running

Posted: Tue Oct 22, 2019 7:19 am
by Klonan
I looked into this before, but was not able to reproduce it

But this time I was able to, using small worms:


Re: [posila] Worm range bigger and worms shooting more projectiles than usual when running

Posted: Thu Nov 07, 2019 12:40 pm
by posila
Thanks for the report.
Fixed for 0.17.76 (by Allaizn)

Re: [posila] Worm range bigger and worms shooting more projectiles than usual when running

Posted: Thu Oct 28, 2021 9:17 am
by atomizer
Both parts of the bug still exist in 1.1.44. To reproduce, be stationary during worm's wind-up animation, then run fast or teleport while the worm is shooting.

Re: [posila] Worm range bigger and worms shooting more projectiles than usual when running

Posted: Fri Oct 29, 2021 9:36 pm
by atomizer
Here is a video of multiple splashes created from single shots, and splashes landing past maximum range: https://giant.gfycat.com/SpeedyCharmingFireant.mp4
Looks like there is a minimum character speed that is needed to trigger the bug. With no equipment, minimum game.player.character_running_speed_modifier needed seems to be 9. With 8 or below, the visual of the stream is still glitched but no extra splashes appear.

Here is what happens when you teleport away: https://giant.gfycat.com/WebbedUnsteadyGuineafowl.mp4
Notice how the stream entity now spans across the whole distance. It seems to create a rectangle of chunks that covers it, which is probably the cause of running out of memory in viewtopic.php?f=23&t=100325. There is also a splash at the character's starting location, so this method also creates two splashes out of one shot (the second one takes a while to land).

Re: [posila] Worm range bigger and worms shooting more projectiles than usual when running

Posted: Mon Nov 08, 2021 6:08 am
by ssilk
moved back to bugs from implemented on user request via pm