dcs-liberation / dcs_liberation

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

Liberation 3.0 Aircraft purchase issues #1310

Closed mikef-phy closed 3 years ago

mikef-phy commented 3 years ago

I can buy any aircraft i want at the start of the campaign but after that it refunds and refuses to buy any more. So i am stuck with the starting planes for the whole campaign.

dcs campaign.zip

2021-06-21 15:25:23,199 :: INFO :: On Game generated 2021-06-21 15:25:23,246 :: DEBUG :: Map reset took 0:00:00.034431 2021-06-21 15:25:41,181 :: DEBUG :: Map reset took 0:00:00.035775 2021-06-21 15:25:42,588 :: INFO :: Pass turn 2021-06-21 15:25:42,589 :: INFO :: Refunding 14 F-16C_50 at Krasnodar-Center 2021-06-21 15:25:42,589 :: INFO :: Refunding 2 F-15C at Krasnodar-Center 2021-06-21 15:25:42,591 :: INFO :: Refunding 2 F-15E at Krasnodar-Center 2021-06-21 15:25:42,592 :: INFO :: Refunding 6 Su-33 at Sochi-Adler 2021-06-21 15:25:42,592 :: INFO :: Refunding 8 Su-30 at Sochi-Adler 2021-06-21 15:25:42,593 :: INFO :: Refunding 6 MiG-31 at Sochi-Adler 2021-06-21 15:25:42,593 :: INFO :: Refunding 2 Tu-160 at Sochi-Adler 2021-06-21 15:25:42,594 :: INFO :: Refunding 4 Su-34 at Sochi-Adler 2021-06-21 15:25:42,594 :: INFO :: Refunding 2 Su-25T at Sochi-Adler 2021-06-21 15:25:42,595 :: DEBUG :: Turn finalization took 0:00:00.007438 2021-06-21 15:25:42,596 :: DEBUG :: Computing conflict positions took 0:00:00.000823 2021-06-21 15:25:42,621 :: DEBUG :: Threat zone computation took 0:00:00.025190 2021-06-21 15:25:42,622 :: DEBUG :: Transit network identification took 0:00:00.000068 2021-06-21 15:25:42,623 :: DEBUG :: Procurement of airlift assets took 0:00:00.000096 2021-06-21 15:25:42,625 :: DEBUG :: Transport planning took 0:00:00.000002 2021-06-21 15:25:43,118 :: DEBUG :: Flight planning took 0:00:00.414177 2021-06-21 15:25:43,118 :: DEBUG :: Flight plan population took 0:00:00.075418 2021-06-21 15:25:43,119 :: DEBUG :: Blue mission identification and fulfillment took 0:00:00.493112 2021-06-21 15:25:43,152 :: DEBUG :: Flight planning took 0:00:00.000762 2021-06-21 15:25:43,153 :: DEBUG :: Flight plan population took 0:00:00.030084 2021-06-21 15:25:43,156 :: DEBUG :: Blue reserve mission planning took 0:00:00.034925 2021-06-21 15:25:43,156 :: DEBUG :: Blue mission scheduling took 0:00:00.000463 2021-06-21 15:25:43,157 :: DEBUG :: Blue mission planning took 0:00:00.531087 2021-06-21 15:25:43,183 :: INFO :: Insufficient aircraft: Not enough aircraft in range for Sochi-Adler capable of: BARCAP 2021-06-21 15:25:43,184 :: INFO :: Insufficient aircraft: Not enough aircraft in range for Front line Krasnodar-Center/Maykop-Khanskaya capable of: CAS, TARCAP 2021-06-21 15:25:43,185 :: INFO :: Insufficient aircraft: Not enough aircraft in range for LLAMA capable of: DEAD, ESCORT, SEAD 2021-06-21 15:25:43,185 :: INFO :: Insufficient aircraft: Not enough aircraft in range for Krasnodar-Center capable of: ESCORT, OCA_AIRCRAFT, OCA_RUNWAY, SEAD_ESCORT 2021-06-21 15:25:43,186 :: DEBUG :: Flight planning took 0:00:00.007872 2021-06-21 15:25:43,186 :: DEBUG :: Flight plan population took 0:00:00.017695 2021-06-21 15:25:43,187 :: DEBUG :: Red mission identification and fulfillment took 0:00:00.030280 2021-06-21 15:25:43,189 :: INFO :: Insufficient aircraft: Not enough reserve aircraft in range for Maykop-Khanskaya capable of: BARCAP 2021-06-21 15:25:43,189 :: INFO :: Insufficient aircraft: Not enough reserve aircraft in range for Maykop-Khanskaya capable of: BARCAP 2021-06-21 15:25:43,189 :: INFO :: Insufficient aircraft: Not enough reserve aircraft in range for Sochi-Adler capable of: BARCAP 2021-06-21 15:25:43,191 :: INFO :: Insufficient aircraft: Not enough reserve aircraft in range for Sochi-Adler capable of: BARCAP 2021-06-21 15:25:43,192 :: INFO :: Insufficient aircraft: Not enough reserve aircraft in range for Front line Krasnodar-Center/Maykop-Khanskaya capable of: CAS, TARCAP 2021-06-21 15:25:43,192 :: DEBUG :: Flight planning took 0:00:00.000442 2021-06-21 15:25:43,192 :: DEBUG :: Flight plan population took 0:00:00.001023 2021-06-21 15:25:43,192 :: DEBUG :: Red reserve mission planning took 0:00:00.004725 2021-06-21 15:25:43,193 :: DEBUG :: Red mission scheduling took 0:00:00.000285 2021-06-21 15:25:43,194 :: INFO :: Unused aircraft: 2 Su-30 from Maykop-Khanskaya 2021-06-21 15:25:43,194 :: INFO :: Unused aircraft: 2 Su-25T from Maykop-Khanskaya 2021-06-21 15:25:43,194 :: INFO :: Unused aircraft: 4 Su-33 from Maykop-Khanskaya 2021-06-21 15:25:43,195 :: INFO :: Unused aircraft: 2 Su-27 from Maykop-Khanskaya 2021-06-21 15:25:43,195 :: INFO :: Unused aircraft: 2 Su-25 from Maykop-Khanskaya 2021-06-21 15:25:43,196 :: INFO :: Unused aircraft: 2 Tu-95MS from Maykop-Khanskaya 2021-06-21 15:25:43,196 :: INFO :: Unused aircraft: 2 MiG-29S from Maykop-Khanskaya 2021-06-21 15:25:43,197 :: INFO :: Unused aircraft: 1 A-50 from Vaziani 2021-06-21 15:25:43,197 :: DEBUG :: Red mission planning took 0:00:00.039874 2021-06-21 15:25:43,222 :: DEBUG :: Turn initialization took 0:00:00.627075 2021-06-21 15:25:43,277 :: DEBUG :: Map reset took 0:00:00.036289 2021-06-21 15:25:43,277 :: DEBUG :: Skipping turn took 0:00:00.690219 2021-06-21 15:26:12,111 :: INFO :: QT App terminated with status code : 0 2021-06-21 15:26:12,111 :: INFO :: Attempt to restore original mission scripting file 2021-06-21 15:26:12,114 :: INFO :: QT process exited with code : 0

bgreman commented 3 years ago

Essentially, if the purchase planner can't find a valid CP to produce ground units (i.e., a CP with a factory), it will refund all units purchased at that CP. It should only refund ground units purchased at the CP, but it refunds aircraft as well.

While there is a real bug here (purchased aircraft are refunded in cases where we should only be refunding ground units), the root cause of this particular issue is that none of the control points in this campaign have factories. I believe this was created from the "Around the Mountain" campaign, which was never updated to the 3.0 campaign system and should not have been included with the 3.0 release.

I will use this issue to fix the unintended refunding behavior, but there is no way to make this particular campaign play properly. A different campaign should be chosen when creating the new game.

mikef-phy commented 3 years ago

will do. thx.