dcs-liberation / dcs_liberation

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

Automatic renaming of "liberation_nextturn.miz" #1694

Open Adecarcer opened 2 years ago

Adecarcer commented 2 years ago

Could the system automatically rename the generated "liberation_nextturn.miz" to something with the savename of the campaign followed by the turn number?

So, for example, if I create a new campaign and save it under the name "gulf_war" Whenever I click the "take off" button it would generate a mission file called "gulf_war_turn_1.miz" and then the following one would be "gulf_war_turn_2.miz" and so on...

This way we could keep track and save all the missions flown in a single campaign, re-fly them if we want, or tweak them at any given time to alter the outcome of the campaign.

Should this make sense? Would it be difficult to implement?

Thanks

sgtfuzzle17 commented 2 years ago

One thing to note about this is that it will slightly complicate things for multiplayer hosting as currently if the mission name stays the same, it’ll automatically be selected for play. I’m not saying it’s not a good idea, just pointing that out.

Adecarcer commented 2 years ago

Thanks for the feedback. I don't see it to be a big issue on the benefit of being able to refly them or relaunch the turn to perfection planning strategy. I see the point. But would be corrected easily (I guess) by instead of DCS looking for a certain name (liberation_nextturn.miz).just making it load the latest generated miz file by date/time.

CMGolden commented 2 years ago

Fuzzle’s point is a good one. I copy over .miz files to dedicated server and never have to change the mission list in the server’s UI. If the miz file names changed, it would add more work each turn. Better imho to just keep how it is and rename or move any miz files you want to save.