-
Notifications
You must be signed in to change notification settings - Fork 178
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
[0.50.0-SNAPSHOT] Maxim (I) & potentially other large transports generate with vast amount of infantry beyond loading capacity #4535
Comments
How frequent is this issue? Trying to get a sense of scope. |
The naturally occuring infantry horde happens quite frequently. A very rough guess would be 15-20% frequency on ground contracts. I literally observed it happening moments ago in the wild doing scouting on the same save. |
Just with Wobbies, or any faction? |
May be an instance of #2792, which was never resolved. |
I decided to load into the lobby with one of the lesser offenders of the infantry horde issue, and noted this: I wonder if it is relevant; #2792 refers to excessive Mech forces, while I am only experiencing this specifically with infantry and BA. A theory might be that it is attempting to generate a full load for the transports, but failing to satisfy this for whatever reason, causing it to potentially continuously generate additional forces to transport. |
Investigated this further on a second incidence. EDIT: this also explains why this was a very common issue with Tank Reinforcements since I suspect that has a higher incidence rate of generating transports capable of causing this bug to manifest. I will try to monitor to see if I encounter any unbugged Maxims (I), because if it reliably does this with every Maxim (I) it generates, we have a vector. |
Encountered the bug again, this time mission generated x2 Maxim (I). At this stage, I am 99% convinced this is a bug with the Maxim (I) specifically. |
After smashing out some breakpoints, it looks like the issue is with mekhq.log |
Whoa, good job tracking that down! |
The Maxim (I) is one of the few 'large' APC type units, capable of carrying multiple platoons of most types of infantry. When transports are assigned infantry in MekHQ it runs on a loop to generate infantry until there isn't any room; there may be some problems with actually associating those extra infantry with the carriers, so it will loop over and over generating infantry without an exit. With the build scripts in flux and pending updated documentation, and the OIF stuff, I'm in a bit of a holding pattern as I don't want to be fighting a bunch of structural stuff that I don't understand on top of working out the code problems. Hopefully things will be smoothed out once 50.0 goes online, if not before. If it hasn't been looked at by then, I'll see what I can do. |
#4601 is definitely the same issue. Closing that as a dupe. |
As this report actually reports two issues:
I'm going to refocus this one about just the transport error, and open a new issue for the force duplication on regeneration bug. |
Environment
04:19:47,749 INFO [mekhq.MekHQ] {main}
mekhq.MekHQ.initializeLogging(MekHQ.java:303) - Starting MekHQ v0.50.0-SNAPSHOT
Build Date: 2024-07-27T01:16:03.359732465
Today: 2024-08-01
Origin Project: MekHQ
Java Vendor: Eclipse Adoptium
Java Version: 21.0.3
Platform: Windows 11 10.0 (amd64)
System Locale: en_GB
Total memory available to MekHQ: 4 GB
MM Code Revision: e86f08fde087d229498e46e9697a41466897653e
MML Code Revision: bea7884b61319d3b2c803a0fa65988008638e6ef
MHQ Code Revision: 12c84d7
Description
Attached is a campaign including a contract scenario that has two (2) tank bases and one (1) artillery base. Regenerating bot forces on that scenario will commonly cause:
Very consistent: certain forces associated with special modifiers (like artillery and tank bases) generate twice. This pretty consistently leaves this scenario to generate 2x artillery OPFOR and 3x Tank Reinforcement OPFOR on top of Primary OPFOR.
Uncommon: causes Tank Reinforcement OPFOR to generate very large numbers of infantry and Battle Armour. This also occurs randomly on normal generation (e.g. in the wild), the most extreme case generated 400+ units of infantry and BA.
Rarely: generates forces without any units, leaving only Primary OPFOR populated.
This has occurred repeatedly. I started encountering the anomalous infantry / BA generation in the wild, causing me to frequently regenerate bot forces, which lead me to observe the first and third anomalies.
Files
mekhq.log
TestScenarioSave.zip
custom mechfiles.zip
The text was updated successfully, but these errors were encountered: