MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
286 stars 276 forks source link

Rasalhague Dominion Force Generator Issues #5647

Closed repligator closed 6 days ago

repligator commented 1 week ago

Environment

Linux Java 17

Description

When using the Force Generator, and selecting Rasalhague Dominion, only one Unit Type is available; combined. Only one formation is available; Random. Only one Equipment Rating is available; Random. Hitting generate will always generate a cluster.

Log entries include

`13:58:51,230 WARN [megamek.client.ui.swing.ForceGeneratorOptionsView] {AWT-EventQueue-0} megamek.client.ui.swing.ForceGeneratorOptionsView.refreshUnitTypes(ForceGeneratorOptionsView.java:635) - No unit type node found.

13:58:51,231 WARN [megamek.client.ui.swing.ForceGeneratorOptionsView] {AWT-EventQueue-0} megamek.client.ui.swing.ForceGeneratorOptionsView.refreshRatings(ForceGeneratorOptionsView.java:754) - No rating found.`

Files

megamek.log

HammerGS commented 6 days ago

The underlying issue is the faction data isn't defined. If you open any of the Clan files in teh data\forcegenerator\faction_rules folder you'll see the difference. There isn't an editor to create these files and have to be hand made assuming we have canon data on the formations.

As of the development of this (2018) we did have that. So this will have to get addressed at some point but won't be a quick of easy fix.

image
repligator commented 6 days ago

I've sent in a PR. Even though CGB is technically 50-ish years out of date, most of it is still accurate, and I'd argue that occasionally anachronistic force names are the lesser evil compared to not being able to generate forces at all.