This object is in archive! 

Turret block gets stuck when rotors/hinges have limits

Beacon of Wierd shared this bug 2 years ago
Not a Bug

The new turret block does not seem to care about the rotor limits, which makes it get stuck when it tries to rotate past the limits, See first picture (TurretBug). It could instead rotate back and actually reach the target, see second picture (TurretCorrect).


This appears to be a bug in the first rotor (the azimuth motor). Every target has two potential angles the first rotor can take to aim at the target, but the current code appears to only try to go towards the target instead of checking both possible angles first to find out which one would (if any) reach the target given the rotor limitations. The current code also appears to try to reach targets that it can't ever reach (such as getting stuck trying to reach a target underneath your ship, instead of the ship currently shooting at you).

Please fix it so that the turret checks if it can reach a target before it starts moving towards it, and preferably check both possible ways to reach the target and pick the one closest to the current angle :)

Replies (2)

photo
1

The bug is actually a little different. The Custom Turret Controller DOES work with limits. However, if you change the limits after setting it up and while the Turret Controller is turned on, it locks up and nothing short of removing and replacing the controller will fix it. However, if you turn the Turret Controller off, then set the limits, and turn it back on, it works properly.

photo
1

Hello Engineer,


Unfortunately we've been unable to reproduce this issue following your description. Is this issue still present on your side?

Are you experiencing it on Single Player or only on Dedicated Servers?

Would it be possible to share a blueprint or save where this issue is reproducible?

Thank you.


Kind regards,


Keen Software House: QA Department

photo
1

Bug is still there, here's a blueprint of the simplest way I've found to reproduce it:

https://steamcommunity.com/sharedfiles/filedetails/?id=2803714030

Simply fly around the turret, and it will get stuck, even though it could reverse and shoot you (which it will do if you go around it in the opposite direction). It can actually shoot you everywhere around it, but when it reaches the rotor limit it gets stuck instead of turning around and going to the second position which can reach the target.

photo
1

Hello, Engineer!


We have discussed this issue internally. We concluded that the turrets with limits are behaving the way they are implemented in the game.

Since there is nothing bugged/broken, we are closing this thread.


Kind regards,

Keen Software House: QA Department

Replies have been locked on this page!