Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here
NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Pages: 1 ... 8 9 [10] 11 12 13   Go Down
  Print  
Author Topic: chatlogger plugin  (Read 33312 times) Bookmark and Share
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Posts: 234
Offline Offline
« Reply #135 on: April 26, 2011, 02:01:46 AM »

it took me a whole day as I remember.

When you install python 2.7 you need this old python-mysql 1.2.3. or so and it must be configured for the new python install. Good luck!
Logged

Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #136 on: April 26, 2011, 02:19:05 AM »

this is my problem... the mysql module wont work... goddamned...  Roll Eyes

can you give me a short how-to?
Logged
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Posts: 234
Offline Offline
« Reply #137 on: April 26, 2011, 02:24:44 AM »

When you have luck, I wrote everything down that I did, but I'm not good in linux things.

I have to go to university, I can help you soonest in some hours.
Logged
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #138 on: April 26, 2011, 03:09:30 AM »

k... i'll wait here ^^  Cheesy

EDIT: i got it... this stuff works now...
i have installed python 2.7.1 without problems...
the python-mysqldb module was my main problem...

i have googled my eyes off *gg*
i have read so fu**ing many tutorials and how-to's

now i solved it with a simple
Code:
easy_install -U python-mysqldb

why have such easy things to get so much complicated everytime *gg*

the chatlogger works now too...
« Last Edit: April 26, 2011, 04:38:48 AM by Miramar » Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD7, BF3
Posts: 72
Offline Offline
« Reply #139 on: May 27, 2011, 08:23:59 PM »

Hey, i just started using this! now i was wondering if there was a way i could have a website read the chatlog and have it post it, like a live chat from the in game servers. I think this has great potential to be a Front Line like chat mod!

Thanks!
Logged



Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #140 on: May 27, 2011, 11:16:17 PM »

Install the Echelon webfront from the download section.
It has a live chat stuff, but the page is not public. But I'm sure you can find someone to hack around and make it public
Logged

Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #141 on: May 28, 2011, 01:55:37 AM »

the new version of the chatlogger also provides the option to post the chatlog to a textfile...
you can use this txt file to publish it on your page...
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD7, BF3
Posts: 72
Offline Offline
« Reply #142 on: May 31, 2011, 04:24:41 PM »

Hey so i had a little success with the chat to a webpage. It auto updates but doesn't allow entry or for you to message the server from the site. I use it to go over the chat logs and see if any abuse happened. Also because i like to see people talking in the server without having to play. Also i did this without 1.6, all it does is read the text file that the chatlogger is saving too and parses it.


Here is how i did it.

1. Create a .php file for each server you run the chatlogger on. With this code.
Code:
<?php
$myfile = '/LOCATION/OF/LOG/chat.log';
$command = "tac $myfile > /tmp/chat_reversed.txt";
passthru($command);
$ic = 0;
$ic_max = 100;  // stops after this number of rows
$handle = fopen("/tmp/chat_reversed.txt", "r");
while (!feof($handle) && ++$ic<=$ic_max) {
   $buffer = fgets($handle, 4096);
   echo $buffer."<br>";
}
fclose($handle);
?>

This code looks at the bottom 100 and reverses it so that its not that big of a file.

2. I created a html to read the .php files. I used IFrames to set it up. You can check it out here.
http://thehair.kicks-ass.org/gamechat.html. i added a script in the html to have it auto refresh ever 2 minutes.

Tell me what ya think and thanks for the killer plugin.
Logged



Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #143 on: June 01, 2011, 04:02:00 AM »

Pretty slick imo.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: bfbc2
Posts: 13
Offline Offline
« Reply #144 on: July 07, 2011, 09:49:24 AM »

Hey sars I am using your webpage alteration. The php file is working fine but the actual page its posting to is not updating could you take a look at the source and tell me whats wrong?
http://teamfearclan.com/Chat/Chatlog.html
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #145 on: July 07, 2011, 10:22:10 AM »

Check to make sure your chat.log is updating....
If you are who I think you are, you have to fix your 410 error first.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: bfbc2
Posts: 13
Offline Offline
« Reply #146 on: July 07, 2011, 10:26:10 AM »

I am sir  Grin and it is.  It is something wrong in the html I think. You can check the log file yourself  Wink The log file is updating and php file are good.

Heres the php http://teamfearclan.com/files/chatlog.php  .  Never mind the problem is the php!

Code:
<?php
$myfile = 'http://69.67.31.79/chat/robinson/chat.log';
$command = "tac $myfile > http://69.67.31.79/chat/robinson/chat.log";
passthru($command);
$ic = 0;
$ic_max = 100;  // stops after this number of rows
$handle = fopen("http://69.67.31.79/chat/robinson/chat.log", "r");
while (!feof($handle) && ++$ic<=$ic_max) {
   $buffer = fgets($handle, 4096);
   echo $buffer."<br>";
}
fclose($handle);
?>
« Last Edit: July 07, 2011, 10:41:25 AM by neatherstalker » Logged
Jr. Member
**
OS: Windows
Type: Home user
Gameservers: bfbc2
Posts: 13
Offline Offline
« Reply #147 on: August 05, 2011, 06:49:15 PM »

OK! I found the issue I fixed the php. I found out that this script uses the library sourceguardian which was not at the time installed by my hosting company. Just a heads up in case anyone else is having an issue.
Logged
Jr. Member
**
OS: Windows
Type: Renting Server with B3
Gameservers: cod7
Posts: 10
Offline Offline
« Reply #148 on: August 05, 2011, 09:33:01 PM »

Ok so we have had B3 running on our Blackops server for a while now and being as our B3 wizz is inactive I have been assigned to it. Still very new and I apologize in advance for all your sighs..
I have followed the readme and put the .sql file in the sql folder. Does the log record to that file? If not where do I go to see the log? Once again I apologize in advance for silly question.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #149 on: August 06, 2011, 12:25:06 AM »

it logs into the database. If you have Echelon installed then there is a page to see the chat log.
You can also specify the path of a file in the plugin config file to have the chat logged into a text file.
Logged

Tags: plugin 
Pages: 1 ... 8 9 [10] 11 12 13   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal