Chat log converter

Results 1 to 14 of 14
  1. #1
    Valued Member thevisad is offline
    MemberRank
    May 2009 Join Date
    105Posts

    idea Chat log converter

    This will convert your chat logs files into a human readable format. You will need to do several options. Once again, my idea, written by me and Angels and Demons admin.


    1. Script to convert the chat logs for file reading and conversion.

    Code:
    sed -e 's/msg=//g' -e 's/src=//g' -e 's/chl=//g' -re 's/^.+chat ://g' -e 's/ Chat:/chat/g' -e 's/ Whisper:/whisper/g' -e 's/dst=//g' -e 's/fid=//g' -e 's/ Guild:/guild/g' /server/logs/world2.chat > /opt/lampp/htdocs/gmgold/chatlogs/chatlogs2.csv
    sed -i -e 's/ /,/g' /opt/lampp/htdocs/chatlogs/chatlogs2.csv
    2. Website to convert logs, you will need to truncate the log files every couple of days or it gets MASSIVE! http://hellishnexus.com/chatlogs.rar



    SQL structure
    Code:
    -- phpMyAdmin SQL Dump
    -- version 3.1.3.1
    -- http://www.phpmyadmin.net
    --
    -- Host: localhost
    -- Generation Time: Jan 08, 2010 at 02:01 AM
    -- Server version: 5.1.33
    -- PHP Version: 5.2.9
    
    SET FOREIGN_KEY_CHECKS=0;
    
    SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
    
    SET AUTOCOMMIT=0;
    START TRANSACTION;
    
    
    /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
    /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
    /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
    /*!40101 SET NAMES utf8 */;
    
    --
    -- Database: `chatlogs`
    --
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `importedlogs`
    --
    -- Creation: Nov 19, 2009 at 12:25 PM
    -- Last update: Dec 05, 2009 at 02:50 PM
    --
    
    DROP TABLE IF EXISTS `importedlogs`;
    CREATE TABLE IF NOT EXISTS `importedlogs` (
      `type` text NOT NULL,
      `source` int(11) NOT NULL,
      `dest` int(11) NOT NULL,
      `chat` text NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=gbk;
    
    -- --------------------------------------------------------
    
    --
    -- Table structure for table `translatedchat`
    --
    -- Creation: Nov 19, 2009 at 12:25 PM
    -- Last update: Nov 19, 2009 at 12:25 PM
    --
    
    DROP TABLE IF EXISTS `translatedchat`;
    CREATE TABLE IF NOT EXISTS `translatedchat` (
      `type` text CHARACTER SET utf8 NOT NULL,
      `source` int(11) NOT NULL,
      `dest` int(11) NOT NULL,
      `chat` text CHARACTER SET gb2312 NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=gbk;
    
    SET FOREIGN_KEY_CHECKS=1;
    
    COMMIT;
    Last edited by thevisad; 08-01-10 at 10:01 AM.


  2. #2
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Chat log converter

    Humm... it's an old topic but, someone still had this archive?

    Quote Originally Posted by thevisad
    2. Website to convert logs, you will need to truncate the log files every couple of days or it gets MASSIVE! http://hellishnexus.com/chatlogs.rar
    I need it, plz^^

    I have another one but seems to be corrupted or there are some wrong codes in the php script...
    Last edited by Romulan; 26-02-10 at 12:50 AM.

  3. #3
    SON OF MARFEL hrace009 is offline
    MemberRank
    Apr 2009 Join Date
    Pekanbaru, IndoLocation
    1,035Posts

    Re: Chat log converter

    Quote Originally Posted by thevisad View Post

    2. Website to convert logs, you will need to truncate the log files every couple of days or it gets MASSIVE! http://hellishnexus.com/chatlogs.rar
    i can't open the link, it ask me a user name and password.

  4. #4
    Account Upgraded | Title Enabled! ronny1982 is offline
    MemberRank
    Jan 2010 Join Date
    744Posts

    Re: Chat log converter

    I wanna create a chat plugin for pwAdmin, does anyone know how the message text is encoded? As you can see in the screenshot below, the messages send ingame seems to be encrypted


  5. #5
    Enthusiast BoZZSTALKER is offline
    MemberRank
    Jun 2009 Join Date
    RussiaLocation
    32Posts

    Re: Chat log converter

    It is encoded in the base64

  6. #6
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Chat log converter

    This is the tool i use for decode chat logs directly from the original log file because the PHP script from Visad doesn't work well for me... :/

    Tool Base64 Decoder:
    http://www.opinionatedgeek.com/DotNe...e/default.aspx

    EDIT:
    Hey ronny, the screen you show there is the "Live Chat" addon in your pwAdmin nightly 0.9 ? o_o
    Last edited by Romulan; 11-03-10 at 09:12 PM.

  7. #7
    Account Upgraded | Title Enabled! ronny1982 is offline
    MemberRank
    Jan 2010 Join Date
    744Posts

    Re: Chat log converter

    Quote Originally Posted by BoZZSTALKER View Post
    It is encoded in the base64

    Jay thx alot, this saves me lot of time (never expect base64 encoding)

    ---------- Post added at 09:46 PM ---------- Previous post was at 09:43 PM ----------

    Quote Originally Posted by Romulan View Post
    This is the tool i use for decode chat logs directly from the original log file because the PHP script from Visad doesn't work well for me... :/

    Tool Base64 Decoder:
    http://www.opinionatedgeek.com/DotNe...e/default.aspx

    EDIT:
    Hey ronny, the screen you show there is the "Live Chat" addon in your pwAdmin nightly 0.9 ? o_o

    Yes its an example plugin for pwAdmin... maybe i'll release it tonight

  8. #8
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Chat log converter

    Ronny? Do you will add the work of 343 as an official addon for your pwAdmin? ^^

    URL: http://forum.ragezone.com/5551666-post64.html

    Because it's very usefull scripts but i get blank page after editing my serverctrl.jsp like he saids u_U. And i think it will better if you do it by yourself because it's your own project xD ...

    Thx in advance.^^

  9. #9
    Account Upgraded | Title Enabled! ronny1982 is offline
    MemberRank
    Jan 2010 Join Date
    744Posts

    Re: Chat log converter

    Quote Originally Posted by Romulan View Post
    Ronny? Do you will add the work of 343 as an official addon for your pwAdmin? ^^

    URL: http://forum.ragezone.com/5551666-post64.html

    Because it's very usefull scripts but i get blank page after editing my serverctrl.jsp like he saids u_U. And i think it will better if you do it by yourself because it's your own project xD ...

    Thx in advance.^^

    + GM Shutdown will be added (or maybe it will replace the force stop)
    + Broadcast will be available in the LiveChat Plugin

  10. #10
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Chat log converter

    Ok ok.^^ It's amazing all the work you have done...

    Others suggestions:
    *Add the "forbid role" like the same module in the old iweb...
    *Improved security for login into the pwAdmin panel

    Login and password for pwadmin login are stored into a separated mysql database.

    When a user want to enter in the pwadmin, the login script will verify if the login and password match wich the one that the user have entered.

    I suggest to restore the certifcat system to get a secured data transfert between the browser of the user and the server... if is it possible with pwadmin?^^

  11. #11
    Account Upgraded | Title Enabled! ronny1982 is offline
    MemberRank
    Jan 2010 Join Date
    744Posts

    Re: Chat log converter

    Quote Originally Posted by Romulan View Post
    Ok ok.^^ It's amazing all the work you have done...

    Others suggestions:
    *Add the "forbid role" like the same module in the old iweb...
    *Improved security for login into the pwAdmin panel

    Login and password for pwadmin login are stored into a separated mysql database.

    When a user want to enter in the pwadmin, the login script will verify if the login and password match wich the one that the user have entered.

    I suggest to restore the certifcat system to get a secured data transfert between the browser of the user and the server... if is it possible with pwadmin?^^

    + in my opinion the "forbid role" is useless for private servers, maybe somone of the community makes a "permission" plugin where you can forbid roles, accounts,...

    + login in mysql is a good idea, but requires that users create a table for this,... pwAdmin was designed to make setup easy, so i used a config file to store the password but i'll think about this, maybe i create a "auto config" in the future with guided setup

    + hehe thats right certificates and standard ports are the highest security issue. When i change config of my pwAdmin to connect some private servers, i can access 30% of all private servers with the pwAdmin running on my home pc

  12. #12
    SON OF MARFEL hrace009 is offline
    MemberRank
    Apr 2009 Join Date
    Pekanbaru, IndoLocation
    1,035Posts

    Re: Chat log converter

    Quote Originally Posted by ronny1982 View Post
    + hehe thats right certificates and standard ports are the highest security issue. When i change config of my pwAdmin to connect some private servers, i can access 30% of all private servers with the pwAdmin running on my home pc
    lol, that means you can enter other PW Private Server database and edit the character's

  13. #13
    [B]aSH nofxpunkerbrian is offline
    MemberRank
    Apr 2009 Join Date
    1,151Posts

    Re: Chat log converter

    with admin tools it is always best to run via localhost so the only way your going to access it is with a shell open.

  14. #14
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Chat log converter

    Quote Originally Posted by ronny1982 View Post
    + in my opinion the "forbid role" is useless for private servers, maybe somone of the community makes a "permission" plugin where you can forbid roles, accounts,...

    + login in mysql is a good idea, but requires that users create a table for this,... pwAdmin was designed to make setup easy, so i used a config file to store the password but i'll think about this, maybe i create a "auto config" in the future with guided setup

    + hehe thats right certificates and standard ports are the highest security issue. When i change config of my pwAdmin to connect some private servers, i can access 30% of all private servers with the pwAdmin running on my home pc
    1. Hmmmk... I will try to import the forbid module from iweb, so ... ^^"

    2. Why an auto config? oO You can take the /twgm folder as an example for this part...^^ I like this login access system... =p

    3. That why i suggest to make pwAdmin more secured... :/

    Btw... nice work for the XML editor in pwadmin! xD I love it
    I'll download your new release soon, because the LiveChat show encode base64 messages u_U lol x)

    Thx for 343 for his release of shutdown server and broadcast message, too! Added to pwadmin plugin's folder



Advertisement