MegaMek / megameklab

MegaMekLab is a BattleTech unit modification program. It allows creating and modifying all unit types available in MegaMek from Support Vehicles up to WarShips. It also allows printing record sheets for single or multiple units.
http://www.megamek.org
83 stars 122 forks source link

[49.19] [RFE] Ability to save default weapon order to the unit file. #1499

Open Nehvar opened 2 months ago

Nehvar commented 2 months ago

I've played quite a few scenarios since deciding to give AtB a try a few months back. One point of irritation that has become very noticeable as time goes by is having to manually set my weapon order at the start of every deployment. If I could save a default weapon order in the lab that would make things much easier.

Sleet01 commented 2 months ago

This might be easier to set up in MM, which has all of the weapon firing order functionality. MML has some of the same logic, but is mostly a thin veneer over a lot of stuff.

Another option would be in MHQ, which owns the MM instance where AtB games take place and could probably pass that information in. Would that work for your needs?

Nehvar commented 2 months ago

Probably MM unless games launched from MHQ would override it...then MHQ in that case.

I posted this in the Lab because I was thinking that maybe the weapons list in the .mtf/.blk could be used as the in-game default weapon order.

For example, this is the weapons list in the .mtf for one of my units.


Weapons:9 Small Pulse Laser, Left Arm Small Pulse Laser, Left Arm Medium Pulse Laser, Right Torso Medium Pulse Laser, Right Torso Medium Pulse Laser, Right Torso Medium Pulse Laser, Right Torso Large Pulse Laser, Center Torso SRM 6, Left Torso SRM 6, Left Torso


If I could just change that to...


Weapons:9 Large Pulse Laser, Center Torso Medium Pulse Laser, Right Torso Medium Pulse Laser, Right Torso Medium Pulse Laser, Right Torso Medium Pulse Laser, Right Torso SRM 6, Left Torso SRM 6, Left Torso Small Pulse Laser, Left Arm Small Pulse Laser, Left Arm


...and have that be the default weapon order in-game that would be perfect. Or maybe a number can be added to the end of each line to set its place in the default order... I'm not a coder though so I have no idea how feasible any of this would be.

gsparks3 commented 2 months ago

If a specific sort order is sufficient, in Megamek Client Settings you can define a default weapon sort order (I like Range High-Low).

In Megamek itself, there is actually an option to "Save Weapon Order" under Game (after adjusting a custom order to your liking), but I'm not sure what it saves it to ...