Results 1 to 3 of 3

Thread: Filters.conf trying to add [pks] and [kos] please help

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    10

    Angry Filters.conf trying to add [pks] and [kos] please help

    Hey guys..
    .
    Ok. here's the story.. Obviously I'm on one of the PvP servers.. What I'm trying to do is add a section in the filters.conf for PKS and KOS .. so that I can display them as categories.
    .
    I've edited the showeq.conf to display the category with these lines.
    .
    Category_15_Name KOS
    Category_15_Filter :kos:
    Category_15_Color DarkRed
    Category_16_Name PKS
    Category_16_Filter ks:
    Category_16_Color DarkMagenta
    .
    It displays in showeq perfectly.. but does not read the filter.conf at all..
    .
    In filters.conf .. I added this after the [Danger] section with a space between
    .
    [kos]
    Name: hij
    Name: efg
    Name: abc
    (space)
    [pks]
    Name:klm
    Name:nop
    Name:qrs
    .
    for some reason its not reading the kos list in filters.conf
    .
    if i move the above list to [Danger]
    and it shows up fine..
    But doesnt seem to work with the new [kos] or the new [pks] i made..
    .
    any suggestions

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    951
    the [] type groups are NOT variable in the filters.conf file. they are actually static. i mentioned this to one of the devs at some point, suggesting that they possibly combine the "caution" and "alert" section and make room for a few user definable ones :)

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    275

    Adding your own filters

    Just from playing with it in regards to another question in the HELP forum, adding your own specific filters seems fairly easy.

    Bear in mind, A) I haven't done this before, B) I don't promise it will work and C) the following comment:


    //
    // ZBTEMP: predefined filters and filter flags will be migrated out
    // so that ShowEQ code can register the file based filters and there flags
    // at runtime ala the runtime Filter stuff
    //


    Anyway, it seems to me you'd need to add this:

    in filtermgr.h starting 43
    <#define TRACER_FILTER 6
    <#define SIZEOF_FILTERS 7
    >#define MY_FILTER 7
    >#define SIZEOF_FILTERS 8

    starting 53
    >define FILTER_FLAG_MY (1 << MY_FILTER)

    in interface.cpp starting 3273

    if (filterFlags & FILTER_FLAG_MY)
    {
    printf ("MySpawn: %s spawned LOC %dy, %dx, %5.1fz at %s",
    (const char*)item->name(),
    item->yPos(), item->xPos(), item->displayZPos(),
    (const char*)item->spawnTimeStr());

    if (showeq_params->spawnfilter_logmy)
    logFilteredSpawn(item, FILTER_FLAG_MY);

    // Deside how to handle audio alerts
    //
    makeNoise(item, "MySpawnAudioCommand", "MY Spawned");
    } // End MY Filter alerting


    in filtermgr.cpp starting 116

    if (filterFlags & FILTER_FLAG_MY)
    text += "My:";

    in map.cpp starting 3436

    else if (filterFlags & FILTER_FLAG_MY)
    {
    p.setPen(red);
    p.setBrush(NoBrush);
    // Note this is the part I'm the least sure about, my intent is to draw two red circles
    p.drawEllipse (spawnOffsetXPos - m_marker1Size,
    spawnOffsetYPos - m_marker1Size,
    m_marker1SizeWH, m_marker1SizeWH);
    p.drawEllipse (spawnOffsetXPos - m_marker1Size + 2,
    spawnOffsetYPos - m_marker1Size + 2,
    m_marker1SizeWH + 2, m_marker1SizeWH + 2);
    }

    in spawnlist.cpp starting 81
    < FILTER_FLAG_DANGER)))
    > FILTER_FLAG_DANGER |
    > FILTER_FLAG_MY )))

    starting 108
    if (m_filterFlags & FILTER_FLAG_MY)
    {
    font.setBold(true);
    font.setItalic(true);
    }
    else
    {
    font.setBold(false);
    font.setItalic(false);
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On