MegaMek / mekhq

MekHQ is a java helper program for the MegaMek game that allows users to load a list of entities from an XML file, perform repairs and customizations, and then save the new entities to another XML file that can be loaded into MegaMek.
http://megamek.org
131 stars 168 forks source link

[49.3][StratCon] 50% Preserve objective consistently fails when 100% Preserve objective is successful #2834

Open StowGnar opened 3 years ago

StowGnar commented 3 years ago

Environment

Windows 10, MekHQ Version 0.49.3 (8/17/21 CI artifact), megameklog.txt says Java 16.0.1

Description

I've seen this issue happen multiple times in my campaign, but it occurs as follows: the few times I actually succeed and keep 100% of a protected allied integrated force alive and achieve the Preserve 100% objective, I seem to be unable to gain both it and the Preserve 50% objective, resulting in a net neutral VP gain. The issue is that the Preserve 50% objective seems to be permanently red and failed. No amount of rearranging check marks seems to change this; only Preserve 100% can be changed by check marks at this point. A screenshot is in the attached package, along with a save and salvage MUL. A save post-results is also included, in case anything can be pulled from that. I stupidly forgot to branch a copy of the logs before I continued playing, so I'm not sure if the included logs will be of any use. Thankfully it is at least easy to reproduce this error as follows:

  1. Load campaign file labelled "beforebuggedbattle".
  2. Resolve Manually on current day's Scenario and load included MUL.
  3. Click through to the end and see same situation as in screenshot.

Thanks for all you guys do!

Files

Multiple Preserve Objective Fail Bug.zip

mnahkola commented 3 years ago

Happened to me on 0.48.0 stable as well.

Not the only kind of objective completion problem I've had, either - not being able to complete the "reach edge" objective is actually more common. (Especially if the battle ends because the enemies are all dead before I've reached the objective edge.)

Poking at the checkboxes does nothing in that case as well, so I'd guess this is not specific to objective type.

(Had an error uploading my screenshot etc... oh well.)

mnahkola commented 3 years ago

So yeah, apparently this was reported earlier as one of the sub-issues of #2575 - is it that rare for other people or otherwise hard to reproduce? Happens to me pretty regularly on 0.48.0 stable, with very different scenarios.

I'm running on OpenJDK 11 JRE on Linux, in case that makes a difference. Specifically "OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04)"

SerBeardian commented 4 days ago

Issue still exists in .50 Further information: Scenario generates requiring 100% preservation of lone ally mech, plus a 50% preservation of friendly forces. Upon completion, the 50% preservation mission has only the ally mech, and is impossible to complete, resulting in point loss. Appears that HQ allocates a specific lance to this objective, assuming that the lance will be deployed, but does not automatically allocate this lance to the mission due to Stratcon deployment. Testing results:

Log: mekhq.log Save: Meatbag Malcontents30210814.cpnx.gz