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

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

  1. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    I think it's awesome :)

    Got the positioning (center, right) and display (always, under attack) working via settings too

    options.PNG
  2. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    Nice :) Are the dropdown boxes just switching the files, or is it being done a fancier (better) way?
  3. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    It changes the table class dynamically, so all styles can be in a single css file.
    Methlodis and burntcustard like this.
  4. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Version 2.6 is out. Now has two additional settings under "UI" for placement and when the display appears.
    Will also show the appropriate commander Icon. Updated version available on PAMM.
    LavaSnake and Quitch like this.
  5. kongkillha

    kongkillha Member

    Messages:
    70
    Likes Received:
    17
    Could you implement a specific alarm sound and make the whole screen flashing 3x when the com is under attack.
    I am still overseeing that my com is under attack in a big game way too often! I really need a more obtrusive alarm :D!
    zaphodx likes this.
  6. Quitch

    Quitch Post Master General

    Messages:
    5,885
    Likes Received:
    6,045
    Specifically that alarm should take on the form of WUB WUB WUB.
    LavaSnake and Raevn like this.
  7. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    Provided raevn doesn't beat me to it, I'll add options for more extreme flashing, and maybe more noticeable sounds. I've been looking into an "uber cannon recharging" type addition as well, but haven't made any progress with that yet.

    Edit: By the way, by default, the game already has two commaner under attack alarms, but they very noticable.
  8. kongkillha

    kongkillha Member

    Messages:
    70
    Likes Received:
    17
    I know that. But in a fierce fight I usualy just overhear the alarm and don't see the com health bar blinking. So it would be nice when the whole screen would flash or probably better; if the alarm sound would be louder and more distinct from the other alarms.
  9. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Inb4 someone steals TA's "Commander under attack" bleep noise.
    kongkillha likes this.
  10. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    or + sing :)
    cptconundrum, cwarner7264 and Clopse like this.
  11. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    This breaks the game in v58197

    [​IMG]
  12. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Geez, give me a chance :p

    Looks like AlertModel() was renamed to ArmyAlertModel(). There's a UnitAlertModel() now too, need to take a look to see what that does.

    Edit: Looks like some interesting things happening with alerts:
    Code:
    engine.call('watchlist.setCreationAlertTypes', JSON.stringify(['Factory']));
    engine.call('watchlist.setDamageAlertTypes', JSON.stringify(['Commander']));
    engine.call('watchlist.setDeathAlertTypes', JSON.stringify(['Structure']));
    cwarner7264 and Clopse like this.
  13. Clopse

    Clopse Post Master General

    Messages:
    2,535
    Likes Received:
    2,865
    Indeed, I had some fun. :p
  14. burntcustard

    burntcustard Post Master General

    Messages:
    699
    Likes Received:
    1,312
    100% Broken, but looks like raevn is on it, will check again tomorrow when I'm less drunk ;)

    Edit: That was quick :)
    Last edited: December 11, 2013
    cwarner7264 and mishtakashi like this.
  15. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    can't get it to work. it won't show up in the game, I've done the install very clean (first settings manager, then float frame, then HP bar, and those three mods alone, having deleted my modlist beforehand) but no cigar.
  16. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    ../../mods/rCommanderHP/rCommanderHP.css loading css common.js:28
    ../../mods/rCommanderHP/rCommanderHP.js loading script common.js:9
    Uncaught TypeError: Cannot read property 'xPercent' of null

    something not right
  17. zweistein000

    zweistein000 Post Master General

    Messages:
    1,362
    Likes Received:
    727
    One more thing, I think you have noticed, but I'm gonna tell you anyway: Your mod does strange things with the current build. It makes Annihilate buttons come up with 0 halleys (they didn't show up anymore when I turned it off) and it makes you starting locations not appear and thus makes you unable to spawn.
  18. elitedanzel

    elitedanzel Active Member

    Messages:
    151
    Likes Received:
    137
    Update to 2.7, works for me
  19. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Ah. May have found a bug. Did you happen to resize the window without having moved the commander HP frame?
  20. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Ah yes when I test code I start in windowed mode so that could be the problem.

Share This Page