Register for your free account! | Forgot your password?

You last visited: Today at 17:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[How To] Log Whisper-Messages (Syslog)

Discussion on [How To] Log Whisper-Messages (Syslog) within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
[How To] Log Whisper-Messages (Syslog)

UNTESTED
  1. Open "input_main.cpp" (Game-Source)
  2. Search for
    Code:
    if (LC_IsEurope() != true)
    {
    	sys_log(0, "WHISPER: %s -> %s : %s", ch->GetName(), pinfo->szNameTo, buf);
    }
  3. Change to
    Code:
    sys_log(0, "WHISPER: %s -> %s : %s", ch->GetName(), pinfo->szNameTo, buf);
Mr. 'Avenue™ is offline  
Thanks
2 Users
Old 08/20/2015, 23:18   #2

 
#dynastie's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 593
Received Thanks: 467
NSA 2.0

Finde es unnötig. Wenn jemand sich beschwert wegen Itemdiebstahl o.a. können diejenigen immer noch Screens machen. Abgesehen davon kann man ja selbst noch in der Log recherchieren.
#dynastie is offline  
Thanks
2 Users
Old 08/21/2015, 00:13   #3
 
elite*gold: 11
Join Date: Nov 2010
Posts: 1,709
Received Thanks: 3,828
They are called "private" for a reason.
.Shōgun is offline  
Thanks
5 Users
Old 08/21/2015, 00:26   #4


 
Mr. 'Avenue™'s Avatar
 
elite*gold: 222
The Black Market: 101/0/0
Join Date: Oct 2012
Posts: 2,361
Received Thanks: 3,388
Quote:
Originally Posted by .Shōgun View Post
They are called "private" for a reason.
I don't use it. I just found it and wanted to share it with you.
Mr. 'Avenue™ is offline  
Old 08/21/2015, 06:46   #5

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Was ich beim Lesen des ersten Codes ziemlich amüsant finde, ist, dass es ja anscheinend sowieso schon geloggt wird, solange der Server (oder wonach auch immer LC_IsEurope() geht) ausserhalb der EU steht
In etwa "Die EU will das nicht, aber überall sonst können wir den **** machen"
rollback is offline  
Thanks
1 User
Old 08/21/2015, 13:38   #6
 
Isolation_'s Avatar
 
elite*gold: 0
Join Date: Dec 2014
Posts: 47
Received Thanks: 101
Ich verstehe nicht, warum so etwas geteilt wird. Gegen DDOS-, Hacking und andere Tools wird hier vorgegangen aber wenn es um eine drastische, freche Art geht, die Meinungsfreiheit der User komplett zu überwachen, dann sagt niemand was. Ich verstehe die Welt einfach nicht und wer sich das einbaut ist in meinen Augen der letzte Dreck.
Isolation_ is offline  
Thanks
1 User
Old 08/21/2015, 14:44   #7
 
Mashkin's Avatar
 
elite*gold: 44
Join Date: May 2010
Posts: 2,053
Received Thanks: 1,747
I already discovered this feature in times of binary patching and tested it.
The logging actually works, but analyzing the messages in syslog can become a pain and I suspect the syslog files can become quite large on busy servers.

I won't discuss the moral aspects here. It's up to the server publishers to decide on user privacy. But do consider: private messages in every forum are "logged" (reads "stored") as well, and I am certain most "serious" publishers do so as well for whatever reason.
Mashkin is offline  
Thanks
1 User
Old 08/21/2015, 15:21   #8

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Speichert man es in einer Datenbank könnte man es natürlich besser lesen

Tabellenaufbau:
Code:
CREATE TABLE pnlog (
id INT(20) NOT NULL AUTO_INCREMENT,
message VARCHAR(200) NOT NULL,
sender_id INT(11) NOT NULL,
receiver_id INT(11) NOT NULL,
time DATETIME NOT NULL,
PRIMARY KEY(id)
);
Insert beim Log:
Code:
INSERT INTO pnlog (message, sender_id, receiver_id, time) VALUES ('NACHRICHT', playerIDSender, playerIDEmpfaenger, CURRENT_TIMESTAMP);
Anzeigen einer Konversation (Angabe von ID zweier Spieler):
Code:
SELECT concat(player.name, ': ', pnlog.message)
FROM pnlog INNER JOIN player
ON pnlog.sender_id = player.id OR pnlog.receiver_id = player.id
WHERE (pnlog.sender_id = SPIELER1 OR pnlog.receiver_id = SPIELER1) AND (pnlog.sender_id = SPIELER2 OR pnlog.receiver_id = SPIELER2)
ORDER BY time ASC;
Trigger für max. 50k Logs:
Code:
delimiter //
CREATE TRIGGER pnlog_remover
AFTER INSERT ON pnlog
BEGIN
	DECLARE logCount INT;
	SET logCount = (SELECT count(*) FROM pnlog);
	
	IF logCount >= 50000 THEN
		DELETE FROM pnlog ORDER BY time ASC LIMIT 1;
	END IF;
END;//
delimiter ;
Das würde eine gut lesbare Anzeige ermöglichen.
rollback is offline  
Thanks
4 Users
Old 08/21/2015, 15:44   #9
 
mcmst54321's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 232
Received Thanks: 104
Und dann wär die DB an einem Tag rand voll
mcmst54321 is offline  
Old 08/21/2015, 16:06   #10

 
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
Quote:
Originally Posted by mcmst54321 View Post
Und dann wär die DB an einem Tag rand voll
Kannst ja einen trigger erstellen der beim insert prüft wie viele Datensätze drin sind und wenn mehr als x wird der älteste gelöscht
rollback is offline  
Old 08/21/2015, 16:17   #11
 
elite*gold: 0
Join Date: Jun 2015
Posts: 113
Received Thanks: 26
Ich werde es zwar nicht machen finde es jedoch nicht schlecht, wenn man dies in den Logs schreibt.

Dies wird in so gut wie jedem Spiel gemacht und finde ich auch richtig so.
Die Betreiber wissen warum sie dies machen und vielleicht bringt es dem
ein oder anderen ebenfalls was.
Bin zwar gegen Spionage und den ganzen **** da das Internet frei sein sollte
von Spionage und alles andere.
AnTii™ is offline  
Old 08/21/2015, 18:36   #12
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Quote:
Originally Posted by Mashkin View Post
I already discovered this feature in times of binary patching and tested it.
This feature was enabled since r404 (from "instant server-files by rain") in 2009. It also included the logging of guild & normal chats too, but removed since r1768.
lollo_9_1 is offline  
Old 08/21/2015, 18:42   #13
 
nybu's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 2,806
Received Thanks: 8,536
Quote:
Originally Posted by .Shōgun View Post
They are called "private" for a reason.
If you walk into my hood there is no privacy :3

Ernsthaft... auf meinem Server darf ich ja wohl alles logn... finde da garnichts verwerfliches dran.



btw:
Code:
!= true
??... srsly?
nybu is offline  
Thanks
1 User
Old 08/21/2015, 19:14   #14
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,829
Received Thanks: 3,369
->

Existiert bereits in Form einer DIF, auch die Diskussion gab es bereits. Muss mMn nichts Skrupelloses sein und kann hier und da Vorteile mit sich bringen. Die syslog ist allerdings alles andere als geeignet.

lg
Nick is offline  
Old 08/21/2015, 19:20   #15
 
clad3815's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 290
Received Thanks: 227
Quote:
Originally Posted by nybυ View Post
If you walk into my hood there is no privacy :3

Ernsthaft... auf meinem Server darf ich ja wohl alles logn... finde da garnichts verwerfliches dran.



btw:
Code:
!= true
??... srsly?
Code:
== (true ? true : false) or != (false ? false : true)
clad3815 is offline  
Reply

Tags
chat, log, messages, metin2, whisper


Similar Threads Similar Threads
[HELP] SYSLOG
04/15/2013 - Metin2 Private Server - 0 Replies
Hi, I use syslog delete diff and now server say could not initialize the core check owner of pid syslog please help thnks.. I use this diff
Metin2 P-Server rename syslog to ./log/20110524/syslog.22: No such filswe or director
05/24/2011 - Metin2 Private Server - 3 Replies
Hi immer wenn ich meine Server hoch fahre kommt diese Meldung ab Ende rename syslog to ./log/20110524/syslog.22: No such filswe or directory Und kann auch nicht auf die Db zugreifen oder auf den Server mit dem Clienten Connecten
mv: rename syslog to ./log/20110202/syslog.17 : No such file or directory
02/02/2011 - Metin2 Private Server - 1 Replies
mv: rename syslog to ./log/20110202/syslog.17 : No such file or directory I get such an error in the 2010er Files. How can I solve
syslog komisch mh..
12/14/2010 - Metin2 Private Server - 4 Replies
Ich hab nen Core check es zwar auch ned mhm vtll hatte das mal einer von euch.. Screen yfrog Fullsize - untitdsadsadasled.png :O €:Jetzt hab ich aufeinmal http://img707.imageshack.us/img707/6945/untitdsad sadasled.png
Whisper Alert!!!Alerts you when you get a whisper.
06/16/2007 - CO2 Bots & Macros - 37 Replies
Hey Hey, This was requested on forum somewhere..lol My 3rd and I think useful contribution. It will alert you if you have a whisper when marketing. Settings: Desktop 1024,768 CO 1024,768 Whisper color=Dark Blue (Set in your chat options) *make sure no chats other than Whisper are using Dark Blue.



All times are GMT +2. The time now is 17:23.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.