-
Notifications
You must be signed in to change notification settings - Fork 176
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.15] Nightly - NPE When Assigning Scout Lance to Stratcon Map #3767
Comments
Upon loading the save and deploying the same lance to the same hex, no error occurred and a scenario popped up like normal. The error may be with a specific scenario type or modifier and may not occur unless that problematic one gets rolled for a new scenario. |
I notice this when I have MekHQ running then start up a separate session of MML. |
The issue is that there's at least one SPA whose name in the XML (loaded by the Crew Upgrader code) doesn't match what's in MegaMek's PilotOptions. I'mma do the quick fix first, then the correct fix if there's time. |
I think this likely raises the chances of hitting the issue, although doesn't make it guaranteed. There are a bunch of tech-related SPAs included in I've raised the issue with the data experts, but in the meantime I'm fixing the code to just keep trying SPAs until it finds a good one or runs out of options. |
Fix #3767: NPE while scouting if AtB tries to generate enemy with SPAs not found in MM
Environment
(My mekHQ log appears malformed and is missing the initialization blurb, so this is pulled from megamek.log. Odd that it says megameklab instead of megamek, but the version information is still accurate.
megamek.MegaMek.initializeLogging(MegaMek.java:118) - Starting MegaMek v0.49.15-SNAPSHOT
Build Date: 2023-10-02T01:08:23.012828800
Today: 2023-10-09
Origin Project: MegaMekLab
Java Vendor: Eclipse Adoptium
Java Version: 17.0.6
Platform: Windows 10 10.0 (amd64)
System Locale: en_US
Total memory available to MegaMek: 4 GB
Description
When deploying Scythe lance (mechs, scout role) to hex 0203 on Track 0, I got an NPE popup. Save file attached, the "Tempest Marauders II.cpnx" manual save was done moments before deploying the lance to the hex.
Files
Zip file contents are matched to the file structure of a mekHQ installation and can be extracted on top of a fresh MekHQ installation to place all files in the correct associated paths.
I use the custom "heavy" scenariotemplates that I created, and I modified two of the scenariomodifier files to increase the weight class of enemy officer/commander mechs, in case those are causing this.
I'm also including the megamek.log file as it also looks ... odd, in case it has any useful information.
Stratcon Assignment NPE 10-9-2023.zip
The text was updated successfully, but these errors were encountered: