Skip to content

Strategic AI Undersupplied Market infinite priority #111

@WolframSegler

Description

@WolframSegler
Image

I have concluded through some testing that if a commodity is not being produced by any industry (sector-wide), then the strategic AI prioritizes it using an infinite value. I assume either a divide by zero or zero divided by 0 error.

This particular example is from Terraforming & Station Construction. The commodity "Domain Artifacts" is only produced by the industry "Domain Archeology", which I believe is not present at the start of the game.

Solution: Nexerelin should not assume production of a commodity. And if a commodity is not being produced at all, its priority should hjave a logical ceiling instead of Integer.MAX_VALUE

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions