dcs-liberation / dcs_liberation

DCS World dynamic campaign.
GNU Lesser General Public License v3.0
712 stars 185 forks source link

"No capable aircraft available" message when there are aircraft available. #2745

Closed ColdFrontWI closed 9 months ago

ColdFrontWI commented 1 year ago

Affected versions

6.1.1

Build information

DCS Liberation 6.1.1

Description

I am getting a "No capable aircraft available" message when trying to plan a mission, but there are aircraft and pilots available.

In the save file attached, I have:

I was able to plan a number of packages, but now any time I try to create a new mission, regardless of task, I get the "No capable aircraft available" message. I can see the aircraft numbers when I click on the home airfield, but they don't show up when I select Air Wing --> Inventory. No idle aircraft are shown, only assigned. Relevant squadrons have plenty of pilots available. If I remove a flight or reduce the number of aircraft, those become available for tasking elsewhere, but I don't have access to all aircraft.

I have seen this a couple of times, and I've tried to re-create it, but can't seem to figure out how it happens. In this case, before the above happened, there was a flight plan shown on the map with no package/flight associated with it. I closed and re-opened, and started getting the "No capable aircraft..." message.

Hopefully I'm not missing anything silly...

Thanks, Eric

Turn11.zip

Save game and other files

No error message displayed.

Starfire13 commented 1 year ago

This is a very longstanding bug that affects those who play on a dedicated server. Just pass turn to get your planes back.

Starfire13 commented 1 year ago

This is a duplicate of #1880 but that bug report was closed some time back due to lack of replicability. As far as I can tell, pretty much everyone who encounters this bug is playing on a dedicated server (whether running on the same machine or a different one), so it's not an issue I encounter (since I don't play on a dedicated server). However, while it appears to have happened to a great many folks, it does not occur on every single turn. Potentially a bug in the state.json manual submit code, maybe?

DanAlbert commented 1 year ago

FWIW, manual submit is just about the only workflow I use when developing, and when I do actually play I use a dedicated server (on the same machine) and I don't recall having ever seen this :(

Starfire13 commented 1 year ago

Ah, that's frustrating. The bug clearly exists considering how many people have encountered it, but I just have no idea why it's happening.

In the attached file, autoplanner is turned on. I'm wondering if the issue might be occuring because the autoplanner has tried to task those aircraft and failed to do so for some reason, and the aircraft are not released back into the available pool when that happens. I've noticed on previous occasions (with bugs that have since been dealt with) that when planning a mission fails, the aircraft selected for that mission go missing till the turn is passed.

ColdFrontWI commented 1 year ago

Thanks. I found the earlier post after I put mine up. For what it's worth, this was not a dedicated server / manual submission. I ran the mission single-player and accepted the auto-generated results after the mission ended in DCS.

In case it helps, I'm attaching a zip with bunch more files in case anyone wants to dig. Here's what those files are with a bit about how they were created as well as I can reconstruct:

Thanks for your help, and thanks for all your work creating Liberation. I'm really loving it...makes the game a LOT more engaging. Eric

No Capable Aircraft bug 2023-02-26_v02.zip

Turn10_Tacview.zip

Starfire13 commented 1 year ago

Can you describe what you're doing with "Delete/modify many the auto-planned missions", and why you do that in the mission editor rather than in Liberation? I typically do all that stuff in Liberation before the mission is generated, and typically the only thing I change in the mission editor is the weather.

ColdFrontWI commented 1 year ago

Sorry for the confusion...the "Delete/modify" part is done in Liberation. I have auto-planner turned on, but I usually make a lot of adjustments to it. Typically I'll add extra flights to BARCAPs (second pair of F-15s in each time slot), remove strikes on economic targets, refocus SEAD/DEAD based on threat, etc.

I don't usually use the ME at all. In this case, I just used it to change my parking location. I'm based at Damascus for the moment and depending on runway in use, the taxi can be LONG.

DanAlbert commented 1 year ago

Apologies for taking so long to get to this. I had some down time and once I was back I got caught up in a flurry of DCS features we needed to deal with :(

Has anyone seen this more recently, or has this maybe been fixed (unlikely)? If anyone has fresh artifacts (save game and state.json) that'd make this a bit easier. If not, nbd, I can debug this in 6.1.1, it's just more work to do that so I thought I'd check first.

DanAlbert commented 9 months ago

https://github.com/dcs-liberation/dcs_liberation/issues/3258 is the probable diagnosis. Going to close this one in favor of that since the other is the one we'll want to read to fix it.