Dan Albert f040804d02 Fix save issues after aborting mission.
When the mission is aborted the pending mission is still in the event
list, which is part of the game option. That event has a reference to
the operation, which in turn contains all the mission generator
objects. Two of these objects are the radio/TACAN allocators, which
use a generator to track the next free channel. Generators cannot be
picked, so because these are transitively part of the game object the
game cannot be saved.

Aside from the briefing generator, none of those objects are
actually needed outside the generation function itself, so just make
them locals instead.

This probably needs a larger refactor at some point. It doesn't look
like we need so many calls into the operation type (it has an
initialize, a prepare, and a generate, and it doesn't seem to need
anything but the last one). The only reason breifinggen needs to
remain a part of the class is because the briefing title and
description are filled in from the derived class, where title and
description should probably be overridden properties instead. I'm also
not sure if we need to make the event list a part of game at all, and
also don't think that the mission needs to be one of these events.
2020-10-05 02:17:14 -07:00
2020-10-04 14:27:13 +02:00
2020-08-22 20:00:07 -07:00
2020-10-04 14:11:28 +02:00
2020-10-04 14:11:28 +02:00
2020-09-25 11:21:23 +02:00
2020-10-01 19:06:38 +02:00
2020-08-17 15:22:39 +02:00
2020-08-31 13:01:05 -07:00

Logo

Donate Patreon

Download

Discord

GitHub pull requests GitHub issues GitHub stars

About DCS Liberation

DCS Liberation is a DCS World turn based single-player semi dynamic campaign. It is an external program that generates full and complex DCS missions and manage a persistent combat environment.

Logo

Downloads

Latest release is available here : https://github.com/Khopa/dcs_liberation/releases

Resources

Tutorials, contributors and developer's guides are available in the project's Wiki

Special Thanks

First, a big thanks to shdwp, for starting the original DCS Liberation project.

Then, DCS Liberation uses pydcs for mission generation, and nothing would be possible without this. It also uses the popular Mist lua framework for mission scripting. And for the JTAC feature, DCS Liberation embed Ciribob's JTAC Autolase script.

Please also show some support to these projects !

Description
Dynamic campaign mission generator for DCS World
Readme 386 MiB
Languages
Lua 60.2%
Python 38.3%
TypeScript 1.1%
Jinja 0.2%
CSS 0.2%