Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart campaign doesn't clear assets at locations #60

Open
Rushyo opened this issue Apr 12, 2019 · 4 comments
Open

Restart campaign doesn't clear assets at locations #60

Rushyo opened this issue Apr 12, 2019 · 4 comments
Labels
bug Something isn't working waiting for release

Comments

@Rushyo
Copy link

Rushyo commented Apr 12, 2019

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

@JohanAberg
Copy link
Collaborator

JohanAberg commented Apr 14, 2019

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

al_minhad = ControlPoint.from_airport(persiangulf.Al_Minhad_AB, LAND, SIZE_REGULAR, 1.1)

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.

@shdwp shdwp added the bug Something isn't working label Jun 10, 2019
@Khopa
Copy link
Collaborator

Khopa commented Jul 1, 2019

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.

@shdwp
Copy link
Owner

shdwp commented Jul 2, 2019

@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.

@Khopa
Copy link
Collaborator

Khopa commented Jul 2, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for release
Projects
None yet
Development

No branches or pull requests

4 participants