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

Save/Load Game Does Not Properly Track Weight EquipmentParts #675

Closed
mkerensky opened this issue Mar 22, 2018 · 6 comments
Closed

Save/Load Game Does Not Properly Track Weight EquipmentParts #675

mkerensky opened this issue Mar 22, 2018 · 6 comments
Assignees
Labels
Milestone

Comments

@mkerensky
Copy link
Contributor

Environment

What version of MekHQ does your issue apply to? 0.43.9 RC3
What operating system are you using? Windows
Java 8 x64

Description

Weight of replacement hatchet parts is not saved correctly, resulting in stocked parts being invalid for future repairs. I think this is also true for other variable weight equipment, such as turrets and targeting computers, but I haven't done extensive troubleshooting on these.

This issue is rather annoying, but it can be worked around with GM mode features.
G3ck0 4rmyA.zip

Steps to reproduce:
Open attached campaign
Go to repair bay, look at NGS-4S Nightsky #2, which has a damaged hatchet needing replacement
Note that MHQ states 'no replacements on hand or on order'
Advance day, 1 new hatchet arrives but part is not considered valid for the repair
Check warehouse. New hatchet is 0.0 tons.
Go back to repair bay, use 'parts in use' button to order a replacement hatchet (reload and try again if order is unsuccessful)
Note that new order has a weight of 4.0 tons, and repair bay shows correct replacement part 'in transit'
If you save and load again, this new replacement will be set to 0.0 tons and will be invalid for the repair.

Files

customunits.zip

@Dylan-M
Copy link
Contributor

Dylan-M commented Mar 22, 2018

TCs should be fine, I've frequently had them w/out issues in the warehouse.

@Dylan-M Dylan-M added the Bug label Mar 22, 2018
@Dylan-M Dylan-M added this to the Stable 0.44 milestone Mar 22, 2018
@mkerensky
Copy link
Contributor Author

Are we trying to fix this for stable then?

@jayof9s
Copy link
Collaborator

jayof9s commented Mar 22, 2018 via email

@Dylan-M
Copy link
Contributor

Dylan-M commented Mar 22, 2018

I wonder if mine only did it because they were reserved on a unit already (ongoing customization)?

And yes, this should be fixed for stable. Especially since it should be easy.

@jayof9s
Copy link
Collaborator

jayof9s commented Mar 22, 2018 via email

@Dylan-M Dylan-M self-assigned this Mar 22, 2018
@Dylan-M Dylan-M changed the title Save/Load Game Does Not Properly Track Hatchet Parts Save/Load Game Does Not Properly Track Weight EquipmentParts Mar 22, 2018
@Dylan-M
Copy link
Contributor

Dylan-M commented Apr 14, 2018

Forgot to close this issue once the branch that fixes it was merged in, whups. Closing now.

@Dylan-M Dylan-M closed this as completed Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants