[REL] Commander Health Display v2.7.4 [61250]

Discussion in 'Mod Discussions' started by Raevn, August 14, 2013.

  1. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Would it not be possible to convert the commander's HP into an int variable to avoid the decimals?
  2. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Should be doable. It's actually a bit hacky atm; there's no way to actually get the commander HP number (last I looked), only it's health %, so I'm multiplying that by the current figure for Commander HP. Thankfully, both commanders are currently the same.
  3. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    plz add this :>
  4. byte01

    byte01 Member

    Messages:
    76
    Likes Received:
    33
    This is because in the OP the wrong folder was used:

    <PA Install directory>/PA/media/pa/ui/mods/

    Instead use:

    <PA Install directory>/PA/media/ui/mods/

    There the mod folder is already in place. As this was the first mod to install for myself, i made the same mistake.
    Good luck.
  5. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Ah good catch, I've corrected the OP.

    Thanks to the power of Copy + Paste, some of my other mods have the same error :confused:
  6. zihuatanejo

    zihuatanejo Well-Known Member

    Messages:
    798
    Likes Received:
    577
    Any chance you could make a graphic to appear in the centre of the screen when the comm is at, for example, 50%, 25%, 10% health? And something flash on screen (like, centre of screen), when under attack, once Uber have improved the built-in 'comm under attack' check.

    I have lost at least two games recently because I simply forgot that my comm was under attack or in danger (silly, I know). THere is so much to juggle in this game, and I'm getting better at that, but I can forget about the comm sometimes). Something flashing in the centre of the screen would be ideal to get the player's attention :)
    zaphodx likes this.
  7. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    please no not at the center, maybe move the resourse bars down and put it on top or just leave it on the right or left side, but not at the center because that would screw up my economy UI mod v3 intergration to the modpack
  8. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    There's always ways to avoid mods conflicting, especially if you know what areas the mods modify.
  9. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    I'm very bad at this stuff, it's a miracle i manage to get the mods to show up and not kill something in the ui
  10. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Then maybe you should try to get better at it instead of trying to manipulate how others build their mods ;)
  11. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    I ammmm hold your horses, I won't learn in a fortnight
  12. zihuatanejo

    zihuatanejo Well-Known Member

    Messages:
    798
    Likes Received:
    577
    Can anyone confirm if this works in the latest build?
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I stopped using it a build or two ago because it conflicted with something. Not that it failed to work completely, but the layout was broken when going into system view or something.
  14. elitedanzel

    elitedanzel Active Member

    Messages:
    151
    Likes Received:
    137
    I've updated it to work with the current build (55089), fixed the number with heaps of decimals issue and moved the system view out of the way :)
    edit: oh and reformatted the javascript to be readable.

    Thanks for the mod raevn
    Capture.PNG

    Attached Files:

  15. quazzi

    quazzi Member

    Messages:
    100
    Likes Received:
    12
    Is this working in the current version?
  16. elitedanzel

    elitedanzel Active Member

    Messages:
    151
    Likes Received:
    137
    Works for me yeah.
  17. quazzi

    quazzi Member

    Messages:
    100
    Likes Received:
    12
    It would be cool to see the specific commander you use, but none the less good job
  18. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    .
    Last edited: October 20, 2013
  19. elitedanzel

    elitedanzel Active Member

    Messages:
    151
    Likes Received:
    137
    @raevn I've uploaded my mods on to github https://github.com/danzel/planetary-annihilation-ui-mods
    And I'd like to put this one up there too if that is okay with you.
    I've used the MIT licence for my mods, they don't really need protection, but it's good to have one.
    Happy to move the repo to an organisation on github if you think that'd be useful.
  20. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    how did you fix it?

Share This Page