Closed LorenzoBoccaccia closed 1 year ago
I ran the attached miz as well as one generated by the save file several times and the group you show exploding in Tacview successfully climbs away from the airport. If you re-run the .miz do you get the same result? My bet is my inability to reproduce is due to the DCS AI doing something differently on your run of the .miz.
The flight is intentionally not set to takeoff from the airport, as it's an in progress flight.
so I've tried and I can reproduce it, are you all on openbeta by any chance? I'm on stable.
e: I've tried switching but apparently there aren't changes. can it be I've not the f16 module, so it's using a different flight model? idk
I doubt it's related, but FWIW Liberation doesn't support DCS stable. It's not possible for the game to support more than one release of DCS at a time.
My testing was done on open beta, 2.7.10.19473
We might explore setting a floor (or increasing the floor if we have one) for low altitude limits on in progress flights. 30m is pretty spicy for the AI
There is already a substantial floor: https://github.com/dcs-liberation/dcs_liberation/blob/980d8f3092be8d6a18f10f601238385160c3ebc0/game/missiongenerator/aircraft/flightgroupspawner.py#L34
Something didn't work right on this flight then, will look into it further.
I think when I added that floor I didn't actually have a save that I could use to verify, so it might just not work.
This happens for any flight that is immediately engaged upon takeoff. That floor is only applied to MSL altitudes (because why would you have an AGL altitude where this is a problem?), and the combat flight state uses the previous state's altitude as the spawn altitude. The previous state was navigation from takeoff to hold, and 0 seconds into that journey, so it was at 0 AGL.
There's a bit of a wtf here as well: https://github.com/dcs-liberation/dcs_liberation/blob/207d56c2e97e19f294de978a05639ce28ebd5a80/game/ato/flightstate/navigating.py#L42-L52
This obviously has fairly nonsense behavior whenever one of the waypoints is AGL and the other is MSL, since we're lerping between two values with different units. There isn't really a great solution to this, since we can't know the MSL altitude of any AGL waypoint.
I'm going to try to get a save game that repros on a modern build so I can work on a patch. I can guess at a fix, but the code around here has changed a lot since the build this was reported against.
Affected versions
Development build
Development build
https://github.com/dcs-liberation/dcs_liberation/actions/runs/1897885878
Description
SEAD WARLUS taking off crashes into trees, being placed off from the runway
it doesn't show up as taxing/startingin the liberation window
mission crop:
campaign save + nextturn mission in attachment.
Save game and other files
1.zip