Getting the AI's economy info?

Discussion in 'Mod Support' started by chrisjshull, November 21, 2014.

  1. chrisjshull

    chrisjshull Member

    Messages:
    68
    Likes Received:
    38
    Is there a way for a client or server mod to get the eco data for the AIs in the currently running game?

    Edit: also, is there a way to force an AI to forfeit?
    (Alt: is there a way to declare a certain player victorious?)
    Last edited: November 21, 2014
  2. Quitch

    Quitch Post Master General

    Messages:
    5,675
    Likes Received:
    6,032
    Any spectator should have access to that information.

    The AI used to concede by walking its commander to its death, but this is currently disabled in the AI files. Unsure whether this was due to players confused by it, because people wanted it to fight to the death, or because it was making poor assessments of when it had lost. No reason @sorian couldn't have that command trigger a gg and self-destruct instead.
  3. chrisjshull

    chrisjshull Member

    Messages:
    68
    Likes Received:
    38
    I figure that means at least one person would have to be spectating for such a mod to work? :/
  4. thetrophysystem

    thetrophysystem Post Master General

    Messages:
    7,050
    Likes Received:
    2,874
    Either spectate, or cheat allow vision.

    This obviously "risks integrity" of game via cheaters. However, against AI who cares. Just not a good multiplayer mod between multiple competitive players versus each other, one could see other's economy.
  5. Quitch

    Quitch Post Master General

    Messages:
    5,675
    Likes Received:
    6,032
    Well everyone becomes a spectator when the game ends.

Share This Page