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

49.19-Snapshot AsTech Error in Log #3981

Closed
IllianiCBT opened this issue Apr 7, 2024 · 2 comments
Closed

49.19-Snapshot AsTech Error in Log #3981

IllianiCBT opened this issue Apr 7, 2024 · 2 comments
Assignees
Labels

Comments

@IllianiCBT
Copy link
Collaborator

IllianiCBT commented Apr 7, 2024

Environment

Origin Project: MekHQ
Java Vendor: Eclipse Adoptium
Java Version: 11.0.22
Platform: Mac OS X 13.6.6 (x86_64)

Description

I was trying to diagnose another issue when I noticed the below error occurring on Advance Day.

Log

02:50:44,277 ERROR [mekhq.campaign.Campaign] {AWT-EventQueue-0} mekhq.campaign.Campaign.getAvailableAstechs(Campaign.java:5332) - Tried to getAvailableAstechs with 0 minutes. Returning 0 Astechs.

IllianiCBT_#3981.zip

@IllianiCBT
Copy link
Collaborator Author

I've identified the issue. doMaintenance() is attempting to get the tech for Large Vessels, but failing to see the tech officer assigned to that unit. I need to cook dinner shortly, so will see if I can't fix this tonight.

@IllianiCBT IllianiCBT added the Bug label Apr 7, 2024
@IllianiCBT IllianiCBT self-assigned this Apr 7, 2024
@IllianiCBT
Copy link
Collaborator Author

Correction, the issue is caused by getAvailableAstechs() via doMaintenance(). As large vessels do not use Astechs, doMaintenance() is telling getAvailableAstechs() that remaining Astech time is being calculated, but 0 Astech time is actually being used.

As everything is working as intended, I don't think this error message is warranted.

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

1 participant