[request] Remove Certain Notifications?

Discussion in 'Mod Discussions' started by brianpurkiss, June 5, 2014.

  1. brianpurkiss

    brianpurkiss Post Master General

    Messages:
    7,879
    Likes Received:
    7,438
    I really dislike the notifications that I just destroyed something of my opponents. For me, I don't need a notification to tell me that because I already know because I'm managing the attack. All the "destroyed X" notifications just create a blindness to the notification system so I miss the important notifications.

    Is there a mod, or could someone make a mod, that disables all notifications that tell me I destroyed something of my opponent?
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I do have a todo to improve the alerts manager to work fully with the GW version.
    dukyduke and brianpurkiss like this.
  3. brianpurkiss

    brianpurkiss Post Master General

    Messages:
    7,879
    Likes Received:
    7,438
    That would be an amazing addition.
  4. masterdigital

    masterdigital Uber Alumni

    Messages:
    438
    Likes Received:
    833
    in live_game.js:
    engine.call('watchlist.setTargetDestroyedAlertTypes', JSON.stringify(['Commander', 'Structure']), JSON.stringify([]));
    ->
    engine.call('watchlist.setTargetDestroyedAlertTypes', JSON.stringify(['Commander']), JSON.stringify([]));
    wondible and Fr33Lancer like this.
  5. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    I don't suppose there are getXXAlertTypes for safe modding?
  6. masterdigital

    masterdigital Uber Alumni

    Messages:
    438
    Likes Received:
    833
    Not exactly sure what you mean, but the valid types are the same strings used in the unit JSON files. For instance, the base_commander.json file has the following types:

    "UNITTYPE_Commander",
    "UNITTYPE_Construction",
    "UNITTYPE_Mobile",
    "UNITTYPE_Land",
    "UNITTYPE_NoBuild"

    The UNITTYPE_ prefix is optional.

    Additionally, I posted the complete list somewhere else on the forums.
  7. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    What I mean is: what if multiple mods want to add alert categories without clobbering each other. Maybe that's what the alertsManager mod is for.

    p.s. if you're trying to follow the above advice in PTE, live_game -> live_game_unit_alerts
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    In fact yes, that is exactly what alertsManager is made for. Currently it solves that by handling all filtering/listeners in JS though. Given that you wrote the in the PTE alerts are now in subscene that may have broken alertsManager there though. Will check and repair...

Share This Page