Raised This Month: $ Target: $400
 0% 

blocking general logmessages with fakemeta?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-20-2004 , 18:10   blocking general logmessages with fakemeta?
Reply With Quote #1

hey everyone,

does anyone know what forward i have to register to block generic
log messages which are not called by FM_AlertMessage?

i looked through the fakemeta constats but didn't find something that would
fit, or maybe i overlooked it or it isn't possible?

need some help here!
FeuerSturm is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 10-20-2004 , 22:11  
Reply With Quote #2

Do you mean the generic log messages you get when the log file is opened and closed and when cvar values change? I was wondering the same thing, but I don't honestly know if it's possible or not. But maybe you could tell me which messages in particular you're trying to block, because we may not be talking about the same thing here, heh.
DS is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-21-2004 , 04:00  
Reply With Quote #3

i don't want this to appear in the logs, actually just not the rcon password
as the logs are forwareded to a HLStats account.

Code:
10:00:59 log
10:00:59 usage:  log < on | off >
         currently logging
10:00:59 logaddress XX.XX.XX.XXX 7130
10:00:59 echo HLSW: logaddress XX.XX.XX.XXX:7130
10:00:59 logaddress:  XX.XX.XX.XXX:7130
10:00:59 og L 10/21/2004 - 10:01:59: Rcon: "rcon XXXXXXXXXX "XXXXXXXXXXXXXXXXXXX" echo HLSW: logaddress XX.XX.XX.XXX:7130" from "XX.XX.XX.XXX:7130"
10:00:59 HLSW : logaddress XX.XX.XX.XXX : 7130
i tried it with FM_AlertMessage, but no luck
FeuerSturm is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 10-21-2004 , 14:40  
Reply With Quote #4

There's another engine function called EngineFprintf that seems would be used to write to a file. It isn't implemented in Fakemeta, but I tried catching it via a custom AMXX compile. I couldn't trace where that engine function is being used at all. It certainly wasn't being used for the type of log you want to block, unfortunately.

So I've had no luck as of yet. I'll keep trying occasionally as I'm kinda interested in this and I'll let you know if I do find something. But for now, I'm just letting you know it seems pretty unlikely to be blockable. Perhaps, someone else knows if what you're trying to do is possible.
DS is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-21-2004 , 16:40  
Reply With Quote #5

i'm definately interested into that
FeuerSturm is offline
BAILOPAN
Join Date: Jan 2004
Old 10-21-2004 , 16:44  
Reply With Quote #6

Most likely these functions are part of HLDS itself, not the HL engine.
__________________
egg
BAILOPAN is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-21-2004 , 17:26  
Reply With Quote #7

but how can an external program add info to the server logs without
it being redirected through the game engine?

doesn't sound possible at all
FeuerSturm is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 10-21-2004 , 20:59  
Reply With Quote #8

looks like it just echos it
Da Bishop is offline
Send a message via MSN to Da Bishop
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 10-22-2004 , 04:07  
Reply With Quote #9

Quote:
Originally Posted by Da Bishop
looks like it just echos it
unfortunately not

Quote:
Originally Posted by Logfile
L 10/22/2004 - 10:01:50: Log file started (file "logs\L1022004.log") (game "dod") (version "47/1.1.2.5/2834")
L 10/22/2004 - 10:03:04: Rcon: "rcon XXXXXXXXX "XXXXXXXXX" log" from "XX.XX.XX.XXX:7130"
L 10/22/2004 - 10:03:04: Rcon: "rcon XXXXXXXXX "XXXXXXXXX" logaddress XX.XX.XX.XXX 7130" from "XX.XX.XX.XXX:7130"
L 10/22/2004 - 10:03:04: Rcon: "rcon XXXXXXXXX "XXXXXXXXX" echo HLSW: logaddress XX.XX.XX.XXX:7130" from "XX.XX.XX.XXX:7130"
L 10/22/2004 - 10:04:20: Rcon: "rcon XXXXXXXXX "XXXXXXXXX" log" from "XX.XX.XX.XXX:7130"
L 10/22/2004 - 10:04:20: Rcon: "rcon XXXXXXXXX "XXXXXXXXX" logaddress XX.XX.XX.XXX 7130" from "XX.XX.XX.XXX:7130"
L 10/22/2004 - 10:04:20: Rcon: "rcon XXXXXXXXX "XXXXXXXXX" echo HLSW: logaddress XX.XX.XX.XXX:7130" from "XX.XX.XX.XXX:7130"
L 10/22/2004 - 10:04:40: Rcon: "rcon XXXXXXXXX "XXXXXXXXX" mp_timelimit" from "XX.XX.XX.XXX:7130"
L 10/22/2004 - 10:06:06: [META] ini: Begin re-reading plugins list: d:/server4/dod/addons/metamod/plugins.ini
L 10/22/2004 - 10:06:06: [META] ini: Read plugin config for: AMX Mod X
L 10/22/2004 - 10:06:06: [META] ini: Finished reading plugins list: d:/server4/dod/addons/metamod/plugins.ini; Found 1 plugins
L 10/22/2004 - 10:06:06: [META] dll: Updating plugins...
L 10/22/2004 - 10:06:06: [META] dll: Finished updating 1 plugins; kept 1, loaded 0, unloaded 0, reloaded 0, delayed 0
L 10/22/2004 - 10:06:06: Log file closed
FeuerSturm is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode