dcs_liberation icon indicating copy to clipboard operation
dcs_liberation copied to clipboard

Restart campaign doesn't clear assets at locations

Open Rushyo opened this issue 6 years ago • 4 comments
trafficstars

Clicking 'restart campaign' doesn't seem to clear the OPFOR assets at locations, so restarted campaigns are always harder than the first one and get harder the more you do it.

Workaround is to delete the campaign files and restart the application.

Issue is present in 1.5 RC1

Rushyo avatar Apr 12 '19 08:04 Rushyo

I can reproduce this. The issue appears to be the ConflictTheater class implementations.

https://github.com/shdwp/dcs_liberation/blob/63da35022362147e66bba9f6be5b7f4e6026caa4/theater/persiangulf.py#L24

The control points are store as class attributes (apposed to instance attributes), so they will be remembered even when a new instance of say PersianGulfTheater is made after File > Restart Campain. I was able to get the right/expected behaviour by making the ControlPoints instance attributes.

JohanAberg avatar Apr 14 '19 05:04 JohanAberg

Reproduced and fixed in my dev branch.

https://github.com/Khopa/dcs_liberation/blob/fbd01fbfdbe204dc36a64829471101a15b30c981/theater/start_generator.py#L27-L32

Another related issue is that "strike targets' (namely 'ground objects') were not cleared either. Also fixed in my dev branch.

https://github.com/Khopa/dcs_liberation/blob/fbd01fbfdbe204dc36a64829471101a15b30c981/theater/start_generator.py#L86-L87

In the meantime, you can also fall back to the old way of restarting the game, that consist of deleting the save file : C:/Users//Saved Games/dcs/liberation_save. And then restart DCS liberation to get a clean new start.

Khopa avatar Jul 01 '19 18:07 Khopa

@Khopa are you able to merge into develop and master? I think I gave you maintainer access, meaning that you should be able to make releases as well.

shdwp avatar Jul 02 '19 13:07 shdwp

Yes i think i should be able to do this it when needed.

But the version on my branch is not stable yet, moreover I and @wrycu have some pending changes on our branches as well, so personally, i am not planning to make a release immediately.

Khopa avatar Jul 02 '19 13:07 Khopa