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?
in live_game.js: engine.call('watchlist.setTargetDestroyedAlertTypes', JSON.stringify(['Commander', 'Structure']), JSON.stringify([])); -> engine.call('watchlist.setTargetDestroyedAlertTypes', JSON.stringify(['Commander']), JSON.stringify([]));
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.
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
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...