[Client] All-In-One Spectator Tab v1.1

Discussion in 'Released Mods' started by Quitch, October 1, 2018.

  1. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    [​IMG]

    Adds two tabs to the spectator player panel: ALL and ALL2.

    ALL displays the following:
    • Metal income
    • Energy income
    • Efficiency
    • Army count
    • Fabber count
    • Factory count
    ALL2 displays army metal in place of army count. Army metal counts all units and structures owned by a player, not just offensive units.

    Translations

    Please help translate All-In-One Spectator Tab to your local language.

    Installation

    You should download and install this mod via the Planetary Annihilation TITANS in-game Community Mod Manager. You will need to enable Community Mods.

    FAQ

    Why didn't you include total unit count?

    Because I wanted to avoid having the ALL tab be any wider than the other tabs. I considered total unit count to be the most useless stat and so it was dropped.

    Why does your mod wrap the text when the numbers get big?

    I've tried to ensure this is very unlikely to happen, but because the columns are narrower it *could* happen. Things will get more cramped though. You can switch to the other tabs still if things get ugly.

    Do you support translations?

    No. When you include translations in a Planetary Annihilation client mod, it breaks all other translations in the game. Until this is fixed this mod can't ship with translations.

    THANKS
    • mikeyh, who once again covered for my total inability to inject Javascript and HTML
    Last edited: January 12, 2019
  2. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    CHANGELOG

    Version v1.1 - 2019-01-12
    • Added ALL2 tab with army metal count
    • Set ALL tab to be the default
    Version 1.0 - 2018-10-01
    • Added ALL tab to spectator panel
    Last edited: January 12, 2019
  3. mwreynolds

    mwreynolds Well-Known Member

    Messages:
    470
    Likes Received:
    292
    Nice work.

    I remember back in alpha or beta they had army metal totals.
    I wounder if it would possible to add the army metal value next to the army number.
  4. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    The mod has been rejected for release to Community Mods as it shadows files. Appending to Javascript and HTML is outside my abilities, so someone else will need to fix this.

    You can take a crack at it, or download the release for local installation, at the All-In-One Spectator Tab repository.
    Last edited: October 1, 2018
  5. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    playerData.armyMetal is currently returning 0 or no data, so it seems something under-the-hood needs to be fixed for that to happen.
  6. mwreynolds

    mwreynolds Well-Known Member

    Messages:
    470
    Likes Received:
    292
    Too bad. :(
  7. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    Mikey's taking a look at it at the moment.
    stuart98 and mwreynolds like this.
  8. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    mikeyh has setup JS and HTML injection and the mod has been resubmitted for approval.
    stuart98 likes this.
  9. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    This is now live.
    lulamae and stuart98 like this.
  10. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    Version v1.1 - 2019-01-12
    • Added ALL2 tab with army metal count
    • Set ALL tab to be the default
  11. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    That would introduce an assumption about future Commanders, other factions, etc. that may not hold true. All that matters is the relative values between armies, not the absolute values. It would also lead to an inaccurate assessment in shared armies.
  12. Quitch

    Quitch Post Master General

    Messages:
    5,288
    Likes Received:
    5,991
    I'll have a look into it. I think removing Commander values from the number in a shared armies setup will be tricky so it might take a while.
    NikolaMX and stuart98 like this.
  13. NikolaMX

    NikolaMX Active Member

    Messages:
    126
    Likes Received:
    139
    this mod should be more popular. great work
    billthebluebot, Quitch and lulamae like this.
  14. MrTBSC

    MrTBSC Post Master General

    Messages:
    4,842
    Likes Received:
    1,818
    or implemented to live ... maybe a sidescrollbar could help with the potential crampiness of large numbers?

Share This Page