View Issue Details

IDProjectCategoryView StatusLast Update
0005406Spring engineGeneralpublic2018-05-07 10:49
Reporterraaar Assigned ToKloot  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionduplicate 
Product Version103.0 
Fixed 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
Attached Files
Checked infolog.txt for Errors

Activities

raaar

2016-11-30 01:49

reporter   ~0016919

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)

raaar

2018-05-07 05:05

reporter   ~0019080

this keeps happening on 104.0

happened several times with sphere_twilight fighters on this game
20180507_030458_SplinteredTropicsDryV2_104.sdfz (Attachment missing)

raaar

2018-05-07 05:08

reporter   ~0019081

(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.

raaar

2018-05-07 05:38

reporter   ~0019082

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)
aircraft_fly_outside_map.jpg (Attachment missing)

raaar

2018-05-07 05:45

reporter   ~0019083

correction: 8:30 -> 9:00

Kloot

2018-05-07 10:49

developer   ~0019084

duplicate of 0005652 and fixed in 104+ via maneuverBlockTime.

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