Closed zhexu14 closed 3 months ago
@zhexu14 What was the symptoms when carrier spawns wasn't working?
Are you sure this change fixes it? We have a tool the loads a miz, manipulates the weather randomly, and then saves a new miz file.
After using our tool (using the latest pydcs version (containing this commit)), it doesn't appear to work. When trying to spawn on a carrier there is just a slight pause for a second and then nothing happens.
Said tool can be found here.
When you wrote:
the following trivial example missions would fail
What did you mean? Fail in what manner?
When you wrote:
the following trivial example missions would fail
What did you mean? Fail in what manner?
It fails in the sense that you would expect the missions generated by the code snippet to spawn you into DCS into the aircraft (F/A-18 in the carrier spawn, Huey in the FARP spawn) when loading the mission via the "Missions" menu in DCS i.e. without going via the Mission Editor. Without this PR what actually happens in DCS 2.9.6 is that you spawn in 3rd person view and the aircraft never appears.
Without this PR, loading the mission via the Mission Editor and saving would result in the expected the behavior.
@zhexu14 What was the symptoms when carrier spawns wasn't working?
Are you sure this change fixes it? We have a tool the loads a miz, manipulates the weather randomly, and then saves a new miz file.
After using our tool (using the latest pydcs version (containing this commit)), it doesn't appear to work. When trying to spawn on a carrier there is just a slight pause for a second and then nothing happens.
Said tool can be found here.
What you're describing sounds like the issue this PR is trying to fix.
Did dcs-mission-buzzer work on DCS2.9.6 without this commit? Just trying to understand if this PR made things go backwards or if it was just not a complete fix.
Also, how did you generate the mission that was loaded into dcs-mission-buzzer? Was it via the DCS Mission Editor or "from scratch" using pydcs?
With DCS2.9.6, a warehouse is needed for aircraft to spawn on carriers and FARPs. This change in DCS means the following trivial example missions would fail:
This PR introduces a function to update warehouses for units in a mission and calls this function before saving a mission to a .miz file. This PR also refactors how warehouses are represented and adds new mandatory Warehouse fields.