-
Notifications
You must be signed in to change notification settings - Fork 178
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
0.49.3 - Dropship Mechbay Door (x 1) on one dropship always shows as destroyed when save file is loaded #2878
Comments
I was able to reproduce this issue on a blank campaign file with 1 Union class dropship in 0.49.3.
Now when you go back into the campaign file. You can GM add part and repair the part and save the campaign... but when you reload the campaign the drop ship still thinks the bay part is scrapped. I'm going to take a look at the code as I was in there recently to see if I can find what is going on. |
A work-around for this until it is fixed may be to GM-remove the dropship from your campaign and then GM add a new one back and save. (I would Unassigned the crew first, and then reassign them on the new dropship.) |
It appears that when a bay door on the union is scrapped and then repaired, the repaired door is added to the unit's part list, but the parent child relationship is not maintained. (The Bay only referenced on child bay door, and an orphan bay door is added to the units I'm guessing then when the unit is loaded from the file, it appears to be missing the bay door because the child / parent relationship is not restored on the repair. i.e. Each time you repair and save the file, an additional orphaned bay door is added to the dropship part dope. Missing Bay DoorOrphan Bay DoorsAfter fixing and saving three times after having a scrapped bay door, three orphan doors appear in the dropship's part list. //Notice: There is no parent tag as the parent ID on that part object was 0 in memory before being saved. The issue isn't with the de-serialization, but with linking parent/child relationship on the repair. Simple Sample FileFile is a sample from 0.49.3 but I was able to reproduce in 0.48.0 as well. |
…#2878 Fixed #2878 Missing Bay Door on reload.
Environment
MHQ Version 0.49.3, MHQ combined download
OS: Win10
JR: Open JDK11
Description
Campaign file and customs attached.
Each time the campaign save is loaded, one dropship (Union 2) has a single mechbay door load as destroyed. I have been fixing this by GM'ing in parts and GM completing the repair.
It is always the same dropship and always the same mechbay door.
Nothing is shown in the logs.
Files
Rickie's Roughriders30501219.cpnx.gz
customs.zip
The text was updated successfully, but these errors were encountered: