[Lou] [2.0.15] Railgun is shooting other Railsguns
[Lou] [2.0.15] Railgun is shooting other Railsguns
good day.
I built a spaceship where my railguns are constantly being torn apart without me noticing. Then I built a loudspeaker to hear this. Every 4-5 hours one railgun destroys the other.
In this Twitch clip I sold the inserter arm for the ammunition and the other two railguns to recreate this scenario.
The basic problem is that the game doesn't tell me that the railgun that is shooting doesn't tell me that it theoretically hits the other railgun.
https://www.twitch.tv/zazunotv/clip/Jol ... 6Xx9_GR7YX
I built a spaceship where my railguns are constantly being torn apart without me noticing. Then I built a loudspeaker to hear this. Every 4-5 hours one railgun destroys the other.
In this Twitch clip I sold the inserter arm for the ammunition and the other two railguns to recreate this scenario.
The basic problem is that the game doesn't tell me that the railgun that is shooting doesn't tell me that it theoretically hits the other railgun.
https://www.twitch.tv/zazunotv/clip/Jol ... 6Xx9_GR7YX
-
- Burner Inserter
- Posts: 10
- Joined: Tue Jun 20, 2017 8:12 pm
- Contact:
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
[2.0.20]
+1
BP
+1
BP
Code: Select all
0eNqVkt1OwzAMhd/F1wmif0D7KgihtLU6S2myOQnaVPXdcTs2KDAJ7mLnyzn2USZobcI9k4vQTECddwGa5wkCDc7YpefMiNAAG7JDcjomZoyg4JCMpXharxhhVkCuxyM02fyiAF2kSHgWW4vTq0tjiyyAuim690GeebcYi5Qus7tKgZjoXE7i0RNjdyay8scQIsDkWTraUoir+WWqq+kuDahHjMZa6rQJEdlTLwtc2XzLdoZb726wxZb1R+rxV7Dcgnv2MsOO0viFluAkd8+ok/vYhAL20EROuGh9SzL/R5LFJcns6Q9JrqNEHKX+/CEK3pDD+qR6yOuyrqvyscjvi2qe3wGlysUp
pics
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
I'm having this same problem on a different layout. My railgun isn't destroyed immediately, but the result is the same.
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
another test setup in 123708
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
No indication of the potential destruction caused, seems like the minimum range does something weird to the collision calc at least as moving the next turret down one highlights correctly
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
[2.0.24]
Can confirm that it is happening to my game as well in version 2.0.24. Railguns pointing diagonally that are right next to each other (but not within each other's firing cones) keep randomly getting destroyed. It's random enough that I have not caught it in the act yet. Platform has also taken 0 damage. This only seems to be occurring going to/from the shattered planet due to asteroid density.
Can confirm that it is happening to my game as well in version 2.0.24. Railguns pointing diagonally that are right next to each other (but not within each other's firing cones) keep randomly getting destroyed. It's random enough that I have not caught it in the act yet. Platform has also taken 0 damage. This only seems to be occurring going to/from the shattered planet due to asteroid density.
- The Phoenixian
- Filter Inserter
- Posts: 250
- Joined: Mon May 26, 2014 4:31 pm
- Contact:
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
Well, glad I searched a second time before finalizing the post. Also ran into this issue. Just going to move the whole post here and hope I add some useful context.
Version 2.0.23: Railgun turret fratricide from damage outside indicated firing arc
In brief:
In some setups Railguns have a chance to destroy each other, and other buildings, without any indication to the player that something is wrong until supplies run out.
In detail:
When placing two railguns flush and at right angles (see attached image and the highlighted railgun within in specific) all indicators will show that neither turret is in the other's line of fire, as shown by a lack of red marks. As such, I expected they would not do damage to each other.
However, when firing at the extreme angles of it's arc, a railgun round can do enough damage to instantly destroy not only everything everything in it's path, but also objects beside it's path without ever alerting the player that something is wrong. The same effect also happens on the other side, occasionally destroying the promethium filtered express splitter.
Occurrences of the issue are intermittent, netting around maybe 36 railgun kills and 32 splitter kills within 6 hours for a pair of such setups, according to the kills chart. It should be at it's easiest to replicate when allowing railguns a broad range of targets.
While this can be solved by repositioning, the main issue is that the game provides no notice of the problem. At first because the indicator that provides warning while building says nothing is amiss, and later because kills on buildings by one's own turrets do not alert the player to the loss before the turret is silently replaced.
Version 2.0.23: Railgun turret fratricide from damage outside indicated firing arc
In brief:
In some setups Railguns have a chance to destroy each other, and other buildings, without any indication to the player that something is wrong until supplies run out.
In detail:
When placing two railguns flush and at right angles (see attached image and the highlighted railgun within in specific) all indicators will show that neither turret is in the other's line of fire, as shown by a lack of red marks. As such, I expected they would not do damage to each other.
However, when firing at the extreme angles of it's arc, a railgun round can do enough damage to instantly destroy not only everything everything in it's path, but also objects beside it's path without ever alerting the player that something is wrong. The same effect also happens on the other side, occasionally destroying the promethium filtered express splitter.
Occurrences of the issue are intermittent, netting around maybe 36 railgun kills and 32 splitter kills within 6 hours for a pair of such setups, according to the kills chart. It should be at it's easiest to replicate when allowing railguns a broad range of targets.
While this can be solved by repositioning, the main issue is that the game provides no notice of the problem. At first because the indicator that provides warning while building says nothing is amiss, and later because kills on buildings by one's own turrets do not alert the player to the loss before the turret is silently replaced.
- Attachments
-
- factorio-current.log
- The current log file. Game is still running from the session that had the issue, IIRC, if quite a few hours back, but I'm hoping that won't be a problem.
- (34.27 KiB) Downloaded 20 times
The greatest gulf that we must leap is the gulf between each other's assumptions and conceptions. To argue fairly, we must reach consensus on the meanings and values of basic principles. -Thereisnosaurus
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
Had it happen to me too. Visual guide says they're fine, but they are very much not.
https://youtu.be/On07n_yknbY [2.0.23 (build 80769 expansion, win64)]
I believe the reason some people are only noticing this issue hours in when supplies run out, is because the "victim" railgun is shooting asteroids that the "killer" railgun would otherwise be inclined to reach for and shoot. The victim runs out first, and the next railgun reaches to the edge of its range, which hits the victim.
https://youtu.be/On07n_yknbY [2.0.23 (build 80769 expansion, win64)]
I believe the reason some people are only noticing this issue hours in when supplies run out, is because the "victim" railgun is shooting asteroids that the "killer" railgun would otherwise be inclined to reach for and shoot. The victim runs out first, and the next railgun reaches to the edge of its range, which hits the victim.
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
from the videos I've seen of this, it looks like the target is being selected by bounding box, but the aim is for center, reaching outside the cone. If this is in fact the case, would it be solved by having it aim at the portion within the cone?
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
This is happening to me. I'm two hours into a shattered planet run and realized I'm down to 30 spare railguns from 100 after noticing that rail guns were dying right in front of my eyes. Double check the placement, and there are no red overlap markers. So they should not be destroying each other.
I really don't want to have to reconfigure the ship, I have probably 10 to 20 hours in designing, re-configuring and testing my design.
In image: Bottom left most rail gun has not taken damage, it is a spare railgun that was previously damaged but placed in inventory and was automatically placed there when the previous gun was destroyed by friendly fire.
![Image](https://i.imgur.com/DmaDkat.jpeg)
I really don't want to have to reconfigure the ship, I have probably 10 to 20 hours in designing, re-configuring and testing my design.
In image: Bottom left most rail gun has not taken damage, it is a spare railgun that was previously damaged but placed in inventory and was automatically placed there when the previous gun was destroyed by friendly fire.
![Image](https://i.imgur.com/DmaDkat.jpeg)
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
Same issue [2.0.28]. My rail guns are getting destroyed
![Crying or Very Sad :cry:](./images/smilies/icon_cry.gif)
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
The ship is the vindicator in the savefile.
- Attachments
-
- Wat.zip
- (41.88 MiB) Downloaded 24 times
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
They don't just hit other railguns that claim to be outside their range, they also hit collectors that claim to be outside of their range. For example, here is my railgun's alleged range, showing the collector outside of it:
And here it is killing the collector it supposedly can't hit:
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
Thank you all for the reports.
TLDR: fixed for 2.0.34.
The source of the issue was, that the railgun's projectile creation position was not collinear with the turret itself and the target, which made the projectile's damage area sometimes reach outside of expected bounds near the turret. I introduced a flag to AttackParameters called true_collinear_ejection that is false by default, and when true, makes the shooter-projectileCreation-target collinear (unless nonzero offset is specified of course) and set it true for Railgun Turret's attack parameters.
To illustrate before and after with visualisations:
before: after: Paraller red lines: marginal expected damage area (that is what the endengerement visualisations in game are based on)
Red rectangles are collision boxes
(following refers to last shot)
White Square: Turret center
Blue Square: Projectile creation position
Orange square: Target position
Green recangle: Damage area
TLDR: fixed for 2.0.34.
The source of the issue was, that the railgun's projectile creation position was not collinear with the turret itself and the target, which made the projectile's damage area sometimes reach outside of expected bounds near the turret. I introduced a flag to AttackParameters called true_collinear_ejection that is false by default, and when true, makes the shooter-projectileCreation-target collinear (unless nonzero offset is specified of course) and set it true for Railgun Turret's attack parameters.
To illustrate before and after with visualisations:
before: after: Paraller red lines: marginal expected damage area (that is what the endengerement visualisations in game are based on)
Red rectangles are collision boxes
(following refers to last shot)
White Square: Turret center
Blue Square: Projectile creation position
Orange square: Target position
Green recangle: Damage area
-
- Manual Inserter
- Posts: 1
- Joined: Sat Feb 08, 2025 11:38 pm
- Contact:
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
Also seeing collectors being destroyed by railguns when there's no indication of collision when hovering the railgun. In this screenrint both ghosts are randomly destroyed, zero damage registered to platform-
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
I'm still curious if asteroids are targeted by bounding box or center. Are they selected when any part enters the range, or the center? Also, whether the projectile is aimed only at the center or only part that is in range.
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
The case from the screenshot was happening with the old railguns but not with the new ones - was this unmoded 2.0.34 sounderblue?sounderblue wrote: Sat Feb 08, 2025 11:43 pm Also seeing collectors being destroyed by railguns when there's no indication of collision when hovering the railgun. In this screenrint both ghosts are randomly destroyed, zero damage registered to platform-
Railgun targets are acquired by their position (that ussually means center) and their projectile is also aimed to the target's position.cbhj1 wrote: Sun Feb 09, 2025 12:07 am I'm still curious if asteroids are targeted by bounding box or center. Are they selected when any part enters the range, or the center? Also, whether the projectile is aimed only at the center or only part that is in range.
-
- Burner Inserter
- Posts: 8
- Joined: Sat Mar 02, 2019 7:05 pm
- Contact:
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
I'm glad there's a fix for this. When is the .34 version coming out? This is driving me absolutely insane. The way I check that something got destroyed is I don't have extras of anything and look at the 'request for construction' so I immediately know if something got destroyed although now knowing the problem I'm just going to move the cannons for now.
I attached my save where a railgun on the right side of my ship destroys a missile turret about 10 seconds into the save.
I attached my save where a railgun on the right side of my ship destroys a missile turret about 10 seconds into the save.
- Attachments
-
- test2.zip
- (40.89 MiB) Downloaded 10 times
Re: [Lou] [2.0.15] Railgun is shooting other Railsguns
.34 is out, but on the experimental branch. That or a later version will probably be marked as stable somewhere in the next few days or weeks; if you'd rather not wait that long, then you can enable experimental updates (in settings, or if you're using Steam them right click Factorio -> properties -> betas).Scalinger2 wrote: Sun Feb 09, 2025 9:29 pm I'm glad there's a fix for this. When is the .34 version coming out?
There are 10 types of people: those who get this joke and those who don't.