console spam mitigation

Racer1Racer1 Join Date: 2002-11-22 Member: 9615Members
Every so often a game console message gets spammed continuously in-game. While this is helpful information that can point to a script/game bug, at a certain point it becomes a unnecessary duplication. I'd like to see a very simple console spam limiter get added to ns2.

As messages are displayed, the logger could keep a copy of the 10? most recent distinct console messages, with an associated counter for each. If a specific log message is repeated more than 20? times before getting replaced, it would be placed in a special "spam console message" list. This fact would be logged and from that point on, any occurrence of that log message would be ignored.

As this process could have a potential performance impact, a console message counter could be implemented which would simply count console messages. (This would cause negligible performance impact). If the count exceeded a threshold, THEN the above process would be enabled. The counter would reset every 2 minutes (and the counter threshold would be based on a typical 5 minute message count). However, once the threshold is reached, log mitigation would be enabled until the next round begins.

Comments

  • IeptBarakatIeptBarakat The most difficult name to speak ingame. Join Date: 2009-07-10 Member: 68107Members, Constellation, NS2 Playtester, Squad Five Blue, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow
    Repeated messages could just get a number in brackets every time a duplicate is made.

    Instead of
    missing richochet
    missing richochet
    missing richochet
    missing richochet
    It is
    missing richochet(4)

    Would make things more organized.
  • IronsoulIronsoul Join Date: 2011-03-12 Member: 86048Members
    I like IeptBarakat's idea, it is simple, and works.
Sign In or Register to comment.