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

47.15 Contracts Cannot Be Generated #2283

Closed
jschmetzer opened this issue Dec 13, 2020 · 6 comments
Closed

47.15 Contracts Cannot Be Generated #2283

jschmetzer opened this issue Dec 13, 2020 · 6 comments
Assignees
Labels
Milestone

Comments

@jschmetzer
Copy link
Contributor

Environment

47.15
Java version 1.8.0_251
Platform Mac OS X 10.16 (x86_64)
Total memory available to MegaMek: 1,864,192 kB

Fresh campaign, 3030, on Galatea, stock AtB Default campaign presets.

  1. No contracts available on campaign first load.
  2. GM Generate yields error: Unable to GM-generate contract from the current location. Increase contract search radius or travel to a border world for better odds of success.
  3. Log shows recurrent: WARN [mekhq.campaign.market.ContractMarket] {AWT-EventQueue-0}
    generateAtBContract(), line 323 : Could not generate an AtB Contract because we ran out of retries!

contract_gen_fail.zip
cpnx, logs attached

@NickAragua
Copy link
Member

Confirmed, I've encountered this as well in my campaign.

@sixlettervariables
Copy link
Contributor

Were there other warnings? Usually it spits out a Why it had to retry.

@NickAragua
Copy link
Member

Nope, nothing else.

@sixlettervariables
Copy link
Contributor

FFS:

retVal = generateAtBContract(campaign, RandomFactionGenerator.getInstance().getEmployer(),
unitRatingMod, 0);

If you pass 0, you get 0.

@NickAragua
Copy link
Member

Heh, doesn't leave much room for a workaround.

@sixlettervariables
Copy link
Contributor

Yeah didn't see this bug in my last push to fix before RC1.

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

No branches or pull requests

3 participants