[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,223
    Likes Received:
    5,957
    [​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,223
    Likes Received:
    5,957
    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:
    471
    Likes Received:
    295
    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,223
    Likes Received:
    5,957
    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,223
    Likes Received:
    5,957
    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:
    471
    Likes Received:
    295
    Too bad. :(
  7. Quitch

    Quitch Post Master General

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

    Quitch Post Master General

    Messages:
    5,223
    Likes Received:
    5,957
    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,223
    Likes Received:
    5,957
    This is now live.
    lulamae and stuart98 like this.
  10. Quitch

    Quitch Post Master General

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

    netpyxa Active Member

    Messages:
    168
    Likes Received:
    47
    Maybe do not coult commander's 25000 worth in ALL2 tab? Meaningless calculation because everyone has a commander. We need to see metal that is NOT a commander ie property produced.
  12. Quitch

    Quitch Post Master General

    Messages:
    5,223
    Likes Received:
    5,957
    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.
  13. netpyxa

    netpyxa Active Member

    Messages:
    168
    Likes Received:
    47
    Ok got it. Just want to mention that that commander cost does not translate into combat power or fabbing power at all. Commander costs like 30 levelers imagine how much less effective is it in combat. Commander has a buildpower of a 1800 metal engineer as well. So both combat and engineer values are negligeble for its cost. Does not matter if there are two commanders or even three commanders in a team, their fabbing value is ~2000 metal and combat value must be something like 6000 metal and no more. People try to not use them in combat anyway.

    25000 is an arbitrary number and is purely symbolic. But it introduces an error in value statistics.
  14. Quitch

    Quitch Post Master General

    Messages:
    5,223
    Likes Received:
    5,957
    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.
    stuart98 likes this.

Share This Page