2019-12-16 11:17 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000352Spring engineGeneralpublic2006-12-31 17:16
ReporterDecimator 
Assigned Totvo 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0000352: Fueled aircraft fail to return to refuel after a certain distance
DescriptionAll aircraft which use fuel fail to return to base after reaching a certain distan ce. I have marked this distance in the screenshot of Giant hills and valleys. The aircraft simply lands on the spot. The amount of fuel the aircraft carries does not matter. Tested in E&E .171 http://www.unknown-files.net/index.php?page=browse&dlid=2038
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0000491

Decimator (reporter)

Last edited: 2006-12-30 00:39

The distance that matters is the distance from the airbase. After a certain point it will not return. Also of note is that if one FPSes a failed aircraft back within this range, it will then return to the airbase. This bug existed before 0.74b2

~0000492

Kloot (developer)

Last edited: 2006-12-30 02:20

This happens because the various calls to FindAirBase() all pass a magic value of 8000 for the search radius, which means that aircraft that travel further than that distance (as is possible on larger maps) are stranded unless you FPS-move them back far enough or you build a platform that lies within 8000 units distance from the plane's position. However, a true fix for this requires deciding when planes should actually return, which is not trivial from a gameplay perspective (do they turn back if they've expended 50, or 70, or 90 percent of their fuel? what happens if they don't have enough left to actually reach a base anymore? etc). Any suggestions would be welcome.

~0000493

Decimator (reporter)

Last edited: 2006-12-30 15:50

It would seem to me that the current system is best because it doesn't require lots of taxing calculations or input from the user; the search radius just needs to be big enough to handle a 40x40 corner to corner. 40x40 is the largest map we have, and will probably stay that way.

~0000500

tvo (reporter)

Bumped max distance to 1,000,000 (AKA infinite... a 1381x1381 map :))

Kloot, what you describe is simply solved by allowing planes to still allow planes to fly to their pad once they're out of fuel. It's not that they crash or anything...

Also the refuel code honors the repair percentage button, e.g. if it's at 30% the planes will return when they have 30% fuel or health left.
+Notes

-Issue History
Date Modified Username Field Change
2006-12-30 00:30 Decimator New Issue
2006-12-30 00:30 Decimator File Added: screen567.png
2006-12-30 00:38 Decimator Note Added: 0000491
2006-12-30 00:39 Decimator Note Edited: 0000491
2006-12-30 02:17 Kloot Note Added: 0000492
2006-12-30 02:20 Kloot Note Edited: 0000492
2006-12-30 04:45 Decimator Note Added: 0000493
2006-12-30 15:50 Decimator Note Edited: 0000493
2006-12-31 17:16 tvo Status new => resolved
2006-12-31 17:16 tvo Resolution open => fixed
2006-12-31 17:16 tvo Assigned To => tvo
2006-12-31 17:16 tvo Note Added: 0000500
+Issue History