2025-08-02 22:39 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005406Spring engineGeneralpublic2018-05-07 10:49
Reporterraaar 
Assigned ToKloot 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusclosedResolutionduplicate 
Product Version103.0 
Target VersionFixed in Version104.0 +git 
Summary0005406: fighter and bomber aircraft refuse to turn back after flying past target
Descriptionafter an attack or bombing run, non-gunship aircraft fly past target for a few seconds before turning back.

during this time, they won't turn back even if given a move order, and happily fly into enemy air defenses.

Steps To Reproduce- spawn a bunch of fighters or bombers
- order them to attack a target
- after they fire, order them to move back as if making a hit and run

The ones that are still facing the target will turn immediately, but the ones who fired and flew past it will keep going for a while before turning
Tagsair
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0016919

raaar (reporter)

https://github.com/spring/spring/blob/develop/rts/Sim/MoveTypes/StrafeAirMoveType.cpp#L840

That check keeps rudder and aileron locked to "neutral" unless

(goal in front or goal not too close) OR (more than 3s since last weapon fired)

a possible replacement would be
 
(!isAttacking) OR (goal in front or goal not too close) OR (more than 3s since last weapon fired)


imo the 3s hardcoded limit should be replaced with something else.

the "goal not too close" relies on a comparison with a speed-weighted turnradius which is maxed at 1000.0 (not sure but I think it often hits 1000 the way it's being calculated so it may not be working properly)

~0019080

raaar (reporter)

this keeps happening on 104.0

happened several times with sphere_twilight fighters on this game

~0019081

raaar (reporter)

(I meant that it happened on the attached sdfz file)

Something also happened that made the fighters sometimes keep going forward for longer than usual instead of turning.

~0019082

raaar (reporter)

at 8:30 and 10:30 aircraft keep going a bit too far
at 13:30 aircraft takes a long time to turn and flies out side the map
at 14:00 one of the aircraft that flew outside kept going for a very long time (attached screenshot)

~0019083

raaar (reporter)

correction: 8:30 -> 9:00

~0019084

Kloot (developer)

duplicate of 0005652 and fixed in 104+ via maneuverBlockTime.
+Notes

-Issue History
Date Modified Username Field Change
2016-11-29 04:53 raaar New Issue
2016-11-29 04:53 raaar Tag Attached: air
2016-11-30 01:49 raaar Note Added: 0016919
2018-05-07 05:05 raaar File Added: 20180507_030458_SplinteredTropicsDryV2_104.sdfz
2018-05-07 05:05 raaar Note Added: 0019080
2018-05-07 05:08 raaar Note Added: 0019081
2018-05-07 05:38 raaar File Added: aircraft_fly_outside_map.jpg
2018-05-07 05:38 raaar Note Added: 0019082
2018-05-07 05:45 raaar Note Added: 0019083
2018-05-07 10:49 Kloot Assigned To => Kloot
2018-05-07 10:49 Kloot Status new => closed
2018-05-07 10:49 Kloot Resolution open => duplicate
2018-05-07 10:49 Kloot Fixed in Version => 104.0 +git
2018-05-07 10:49 Kloot Note Added: 0019084
+Issue History