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
133 stars 171 forks source link

Mech unable to be customized, will not load according to MekHQ's Meklab #4868

Open OrbMonky opened 1 month ago

OrbMonky commented 1 month ago

Prerequisites and Pre-Issue Checklist

Severity *

Medium (Gameplay Limitation): Non-core functionality is impaired, providing a suboptimal but playable experience.

Brief Description *

Mech unable to be customized as it will not load

Steps to Reproduce

Take the Lumberjack LM4/P into the 'meklab in mekhq and attempt to customize it

Operating System *

Windows 10

Java Version *

17

MekHQ Suite Version *

v0.50.0

Custom MekHQ Version

No response

Attach Files

image

Final Checklist

repligator commented 1 month ago

Could you post the MHQ and MML logs? It might be helpful with trying to pin down the cause of the issue.

repligator commented 1 month ago

I was able to replicate the issue with a recent nightly.

java.io.FileNotFoundException: data/mekfiles/customs/Shock Jock's Iron Shadows/Lumberjack LM4/P Mk II.mtf (No such file or directory)

Looks likes the / in LM4/P isn't being escaped properly. It's looking for a Lumberjack LM4 directory to place the file P MK II.mtf inside. If such a directory exists it will actually write the mtf file to it as well.

megamek.log megameklab.log mekhq.log Shock Jock's Iron Shadows30260101.cpnx.gz