Skip to content
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

[49.2] Conflict alternativeFactionCodes (factions.xml) with use of traditional RATs #2736

Closed
Lemeriel opened this issue Jul 7, 2021 · 1 comment · Fixed by #2739
Closed
Assignees
Labels

Comments

@Lemeriel
Copy link

Lemeriel commented Jul 7, 2021

Environment

MekHQ 49.2 (error occurs not with MekHQ 48.0)
Windows 10
Java SE Development Kit 16.0.1 (64-bit)
Java 8 Update 291 (64-bit)

Description

Units for factions with the new implemented alternativeFactionCodes in factions.xml cannot generate units if "Use traditional Rats" is activated under Campaign Options> Against the Bot.

An example RAT for MOC and TH for the year 2580 is attached. The RAT for MOC works because there is no alternativeFactionCodes. This RAT does not work with TH because an alternativeFactionCodes is defined.

The error can be repeated for all corresponding factions in all RATs. The attached error code is output in mekhqlog.txt.

Files

MekHQ 49-2.zip

with logs, savegame, rats

@Windchild292 Windchild292 self-assigned this Jul 7, 2021
@Windchild292
Copy link
Contributor

I just learned that Java has two separate ArrayLists... one of which works properly, the other of which (that I unknowingly used) does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants