PDA

View Full Version : Filters.conf trying to add [pks] and [kos] please help



Cali
04-02-2002, 02:37 AM
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 :pks:
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

fryfrog
04-02-2002, 05:00 AM
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 :)

Mr Guy
04-02-2002, 11:24 AM
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);
}