Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: adom.msg entries

  1. #1
    Join Date
    Aug 2008
    Location
    Turku, Finland
    Posts
    25

    Default adom.msg entries

    Hi,

    Didn't find a thread about this at a quick glance. The highlighting / suppressing messages function in ADOM is awesome, but it's not exactly easy to use, as many entries to the file should use regular expressions in order to work with messages containing e.g. monster types.

    To help things out, here are some of my findings on how to enter those correctly. Please add up your own findings on how to get them to work. Especially I like to suppress lot of those unnecessary messages to avoid having to hit (more) in regular combat.

    %s is %s by %s emerging from your weapon. - "The monster is scorched by flames emerging from your weapon." for flaming weapons and probably similar messages for frozen weapons.
    %s is poisoned. - When monsters get poisoning attacks.
    %s spins a large web! - Spiderweb factory.
    %s seems to get stuck in some webs! - Monsters being stuck in webs.
    %s is struggling against a large web holding %s! - Monsters being stuck in webs.
    Artificial intelligence is no match for natural stupidity.

  2. #2

    Default

    I don't like suppressing, I prefer replace. Just started working on improving my config, these are what I have so far. Not too ambitious, but eh, beats pressing more...

    Code:
    :regex
    :replace
    The.*misses you.|miss
    .*fails to hurt you.|fth
    You block the.*|block
    You deflect the attack of the.*|deflect
    .*squeezes past.*|squeeze
    Fth doesn't work very well either, "The.*fails to hurt you." did not work, and current version looks like "The goblin fth" :P.

  3. #3
    Join Date
    Aug 2008
    Posts
    239

    Default

    Here's mine:


    :regex

    # pickpocketing
    :no_skip
    :magenta
    .*You steal.*
    .*value.*

    :replace
    .*breathes.*|breath
    .*fails to hurt you.|protect
    The.*misses you.|miss
    .*the attack misses.*|RMiss
    .*deflect the.*|block
    .*block the.*|block
    .*The.*squeezes past.*|Switch
    :light red
    You hit the.*full force|CRIT!!!
    You exactly hit.*|CRIT!!!
    You hit the.*|hit
    :cyan
    .*sheet of ice.*|ICE
    .*desired position.*|Teleport:
    .*by the deadly frost.*|frost aura!
    .*seems to search.*|Search
    .*notices your attempt.*|Fail

    # Unnecessary messages
    :suppress
    .*You miss.*
    .*injure it.*
    .*injure him.*
    .*injure her.*
    .*wound it.*
    .*wound him.*
    .*wound her.*
    .*to move to the up.*
    .*mumbles cryptic.*
    .*mumbles arcane.*
    .*invokes an incan.*
    .*screams words of magic.*
    .*are burned.*
    .*you resist.*
    .*bitter cold.*
    .*bleeds from.*
    .*and .* damage it.*
    .*The .* regenerates.*

    :no_regex
    Select the companion you want to issue an order to.
    Select the slave to command.
    (easily cutting through %s armor with the %s)
    #You lust for blood!
    The %s returns!
    You manage to catch it.
    You fail to catch it.
    My orc thief just died.

  4. #4
    Join Date
    Feb 2012
    Posts
    1,923

    Default

    I didn't tweak mine as much as I'd like so far. Only added this at the bottom, under "unnecessary messages".

    Code:
    #Chaos Knight spam
    Smoldering flames consume your flesh!
    You burn with fever!
    Aching pains wreck your bowels!
    You feel fiery pain in your stomach!
    #ToEF
    The air is extremely hot!
    The air on this level is searingly hot!
    #Air Temple
    The air reeks of ozone!
    The air is crackling with lightning that constantly hits you!
    The air seems to be charged with electricity!
    Tiny lightning bolts streak through the air occasionally hitting you.
    #Arena
    You hear the ecstatic cries of a large crowd!
    You hear the cries of the crowd: "%s! %s! %s!"
    #Rings of fire and ice
    You feel a hot breeze for a second.
    Your equipment is protected from the bitter cold by a thin layer of fire emanating from your hands.
    You feel a cool breeze for a second.
    Your equipment is protected from the fire by a thin sheet of ice emanating from your hands.
    #Misc
    Use [%s] and [%s] to move to the next up/down stairs.
    The first five lines make non-chaotic chaos knights actually playable
    "And light there be!"

  5. #5
    Join Date
    Mar 2013
    Posts
    121

    Default

    Quote Originally Posted by Qui View Post
    Fth doesn't work very well either, "The.*fails to hurt you." did not work, and current version looks like "The goblin fth" :P.
    "The goblin fails."

  6. #6
    Join Date
    Aug 2008
    Location
    Turku, Finland
    Posts
    25

    Default

    Any ideas on why suppressing the following messages doesn't seem to work at all?

    You hear a gong.
    You hear a chime.
    You hear a bell.
    You resist the searing flames.
    You resist the icy blast.

    Tried to suppress them in the exact format and also tried with regex .*a chime.* etc, but to no avail.

    Artificial intelligence is no match for natural stupidity.

  7. #7
    Join Date
    Dec 2008
    Location
    Moscow, Russia
    Posts
    1,729

    Default

    Quote Originally Posted by Harkila View Post
    Any ideas on why suppressing the following messages doesn't seem to work at all?

    You hear a gong.
    You hear a chime.
    You hear a bell.
    You resist the searing flames.
    You resist the icy blast.

    Tried to suppress them in the exact format and also tried with regex .*a chime.* etc, but to no avail.

    ADOM output is pretty convoluted. If Jochen implemented replacement in the same way as in Sage, it works by intercepting some output functions and checking their parameters for a match.

    The problem is that some messages are put together with several invocations of output functions, each with its own piece of the overall message. Look at the original post, "fails to hurt you" problem shows it pretty good.

    Your casino strings seem to follow the bad scenario. Probably tied to a whole Listening subsystem.
    I like my women like my ADOM loot - hunted as treasure and in extra quantity.

  8. #8
    Join Date
    Aug 2008
    Location
    Turku, Finland
    Posts
    25

    Default

    Yeah, figured that the problem lies there somehow. It's just confusing as hell since some messages which seem to have variables, are then again configurable. Such as the "the {lich} heals his/her wounds", which I was able to highlight simply by typing in all the 6 possible outputs of the message.

    If only there was some kind of in-game console where you could see the internal message handling logic
    Artificial intelligence is no match for natural stupidity.

  9. #9
    Join Date
    Jan 2011
    Location
    Poland
    Posts
    1,757

    Default

    Yeah, the casino-shopkeeper-environmental damage messages are the most frequent, annoying and impossible to suppress.
    The manual doesn't do enough to explain how to do that with all this regex/non-regex stuff that I have no clue about.
    The simple way for me would be to list the message directly and have it suppressed, without me having to figure out if parts of it require some %s or %d to work.

    "Your equipment is protected by the thin layer of ice emanating from your hands."

    This one is the worst, makes tower with rings of ice almost unbearable. I'd often want to spend more time there but this extremely taxing spam makes me want to leave asap.
    Last edited by Blasphemous; 08-17-2016 at 09:51 AM.
    "Hell is empty and all the devils are here."

  10. #10
    Join Date
    Aug 2008
    Location
    Turku, Finland
    Posts
    25

    Default

    Quote Originally Posted by Blasphemous View Post
    "Your equipment is protected by the thin layer of ice emanating from your hands."

    This one is the worst, makes tower with rings of ice almost unbearable. I'd often want to spend more time there but this extremely taxing spam makes me want to leave asap.
    That one actually gets suppressed. Looks like you have written it incorrectly:
    "Your equipment is protected from the fire by a thin sheet of ice emanating from your hands."

    Works for me. Also of course "Your equipment is protected from the bitter cold by a thin layer of fire emanating from your hands." for the Ice Queen Realm.
    Artificial intelligence is no match for natural stupidity.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •