Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Assigning Custom Unit Quirks
#1
Hello again, it's me with yet another issue that I can't seem to solve. This time, I've been trying to apply quirks to a set of custom units. I've attempted to do this by adding entries to both the canonUnitQuirks.xml and the unitQuirksOverride.xml, but neither seem to have any effect when I load up a unit. I've attached my unitQuirksOvverride file for perusal.

Quirks are enabled in MegaMek, and I can assign them before a match just fine. I've deleted the unit cache between attempts, as well.

Perhaps my unit's naming conventions are causing problems? Many of them contain parentheses and quotation marks to distinguish different models, could that be causing an error? Am I even messing with the correct file? Is this even an implemented feature?

I would very much appreciate some help with this.


Attached Files
.xml   unitQuirksOverride.xml (Size: 3.77 KB / Downloads: 0)
Reply
#2
I suspect the issue is with the " marks in the unit names.  You'll notice the unit names in MegaMek all use the ' in its place.  Try changing your unit names in the BLK/MTF files and see what happens.

Also never adjust the canonUnitQuirks.xml, every time you update it will be overwritten.  Only use the override.xml file.

Reply
#3
Thanks for the quick reply, Hammer. I went through and replaced all instances of " with ', in both the BLK files and the unitQuirksOverride.xml and then deleted the unit cache, but the units in question still do not load with quirks.

I'll upload the new override file to see if anyone can find an issue with it.


Attached Files
.xml   unitQuirksOverride.xml (Size: 3.77 KB / Downloads: 1)
Reply
#4
I'd also unit the unit files to test.
Reply
#5
Sure thing, here they are. There are more, but I have a total of 26 I'm trying to quirk, and all I need is the proof of concept.


Attached Files
.blk   Huber 201 (Falke).blk (Size: 1.04 KB / Downloads: 0)
.blk   Albatros (UT-1).blk (Size: 1.12 KB / Downloads: 0)
Reply
#6
You can also save unit quirks in the lobby.  If you change quirks on a unit, then right click on the unit, there's an option to save quirks.
Reply
#7
Wow. That is immensely easy. Many thanks, Arlith!

In fact, since this method saves directly to the unitQuirksOverride.xml, I have been able to determine that the problem stemmed from an incorrect unitType tag. I was using ConvFighter, but the correct tag is Aero, even though they are conventional fighters.

Another issue neatly wrapped up by the devs.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Applying permanent quirks in mechhq cementblade 5 1,563 09-26-2013, 12:12 PM
Last Post: ralgith
  Quirks - In game effects? Edward Hyde 2 1,016 07-14-2013, 09:45 PM
Last Post: Mattiator
  Setting Quirks on mechs permanently Mad 3 1,993 04-14-2011, 11:18 PM
Last Post: Taharqa

Forum Jump:


Users browsing this thread: 1 Guest(s)