Page 2 of 2 FirstFirst 1 2
Results 11 to 15 of 15

Thread: /termfilter

  1. #11
    Player
    Gwenkatsu's Avatar
    Join Date
    Jun 2024
    Posts
    551
    Character
    Gwenkatsu Furokane
    World
    Shiva
    Main Class
    Dancer Lv 100
    Quote Originally Posted by Remolia View Post
    its a basic programming thing people learn in schools.
    This is were they also teach reading comprehension, I guess?
    (0)

  2. #12
    Player
    CidHeiral's Avatar
    Join Date
    Dec 2021
    Posts
    1,798
    Character
    Cid Heiral
    World
    Hyperion
    Main Class
    Dragoon Lv 100
    If I could just filter "DJ" that would knock out most of the messages I don't want to see.
    (2)

  3. #13
    Player
    Seraph_Variel's Avatar
    Join Date
    Mar 2025
    Location
    Stuck in Vintage Story
    Posts
    83
    Character
    Seraph Variel
    World
    Faerie
    Main Class
    Dragoon Lv 100
    Quote Originally Posted by CidHeiral View Post
    If I could just filter "DJ" that would knock out most of the messages I don't want to see.
    Even then they'd just start using unicode or whatever characters to replace the D or the J to avoid the term filter because they're irritatingly insistent that you show up to their venue that 90% of the playerbase don't care about other than the fact that their shout ad is littering the chat.
    (1)

  4. #14
    Player
    Remolia's Avatar
    Join Date
    Jun 2022
    Posts
    417
    Character
    Seisei Doudou
    World
    Louisoix
    Main Class
    Conjurer Lv 100
    Quote Originally Posted by Gwenkatsu View Post
    This is were they also teach reading comprehension, I guess?
    I explained, how its usually done in normal games. I can also write u some lua code as example, since FFXIV UI is powered by LUA:

    Code:
    local termlist = {
     "ababa", "discord", "venue", "msq", "twitch"
    } -- termlist example, preprocessed, prenormalized.
    
    
    local function term_pass(str, termlist)
    
            str = tostring(str):lower(); -- normalize
    
            if #str < 3 or type(termlist) ~= "table" then -- ignore short message
                    return true;
            end
    
            print(str);
    
            for i = 1, #termlist do
                    if str:find(termlist[i]) then
                            return false;
                    end
            end
    
            return true;
    
    end
    the only problem here, that :lower() does not support extended UTF-8 characters, but since it ignores it, its not a big deal, but u can write own :lower() on C/C++ for that.

    I made this concept in 7 minutes, I think there are like even better one.
    (0)

  5. #15
    Player
    Carighan's Avatar
    Join Date
    Apr 2018
    Posts
    2,218
    Character
    Carighan Maconar
    World
    Zodiark
    Main Class
    Paladin Lv 100
    Quote Originally Posted by CidHeiral View Post
    If I could just filter "DJ" that would knock out most of the messages I don't want to see.
    The problem with that is that you cannot put it in as a regex. So you'd match all instances of "dj", and hence you could no longer adjust to someone being adjacent to you during the wadjet mechanic, etc etc.

    If you could at least put in "\s[dj|DJ]\s" or something, that'd work of course.
    (0)

Page 2 of 2 FirstFirst 1 2