View unanswered posts | View active topics It is currently Fri Sep 10, 2010 3:00 am



Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Chat Log scriptzorz 
Author Message
Ecko's a noob
User avatar

Joined: 04 Jan 2009
Posts: 304
Post Chat Log scriptzorz
Anyone out there have a chat log script for Tribes?


Tue Mar 02, 2010 3:08 pm
Profile
Anti's Antics
User avatar

Joined: 10 Dec 2009
Posts: 1281
Location: CT
Post Re: Chat Log scriptzorz
5150

_________________
Image
Image


Tue Mar 02, 2010 3:15 pm
Profile
I like pi.
User avatar

Joined: 11 Nov 2007
Posts: 1522
Location: New Hampshire or Rhode Island
Post Re: Chat Log scriptzorz
I'm pretty sure there is a simple toggle or variable..... like consolelogmode or something like that... I don't remember...

I just whipped this up though, it'll do the same thing.

Code:
function onClientMessage(%client, %msg)
{
   if(%client)
   {
      $lastClientMessage = %client;
      $MSG = getTimeStamp() @": "@ %msg;
      export("MSG", "temp/MSG.log", true);
   }
   return true;
}

_________________
Image


Tue Mar 02, 2010 7:47 pm
Profile YIM WWW
Ecko's a noob
User avatar

Joined: 04 Jan 2009
Posts: 304
Post Re: Chat Log scriptzorz
Thanks perri. ^_^


Tue Mar 02, 2010 10:43 pm
Profile
Ecko's a noob
User avatar

Joined: 04 Jan 2009
Posts: 304
Post Re: Chat Log scriptzorz
For anyone interested, I modified perri's code to also add the name of the player speaking next to the message. Just plug into the bottom of your autoexec.cs and you get logs.

Code:
function onClientMessage(%client, %msg)
{
   if(%client)
   {     
      $MSG = Client::GetName(%client) @": "@ %msg;
      export("MSG", "temp/MSG.log", true);
   }
   return true;
}


Btw Crow, I used the code bb tags... happy?


Wed Mar 03, 2010 7:41 pm
Profile
I like pi.
User avatar

Joined: 11 Nov 2007
Posts: 1522
Location: New Hampshire or Rhode Island
Post Re: Chat Log scriptzorz
Oh yeah, I forgot about that, thought %client was the recipient, and %msg contained the sender's name... Oh well. Good catch.

_________________
Image


Wed Mar 03, 2010 10:08 pm
Profile YIM WWW
Ecko's a noob
User avatar

Joined: 04 Jan 2009
Posts: 304
Post Re: Chat Log scriptzorz
Np perri. I know coding very well, I just don't know all the function calls for tribes coding, haha. When you do coding for a living and as a student, it is hard to find the desire/time to commit yourself to coding for a 10+ year old game. I do appreciate you sharing what you know about tribes coding,

^_^

%client is the id of the client, and %msg is the chat message they are sending. However you need to invoke the Client class object method to get the name associated with a particular client id.


Wed Mar 03, 2010 11:41 pm
Profile
I like pi.
User avatar

Joined: 11 Nov 2007
Posts: 1522
Location: New Hampshire or Rhode Island
Post Re: Chat Log scriptzorz
You could have just said, "nope".

_________________
Image


Fri Mar 05, 2010 7:59 am
Profile YIM WWW
Crow{OZ}
User avatar

Joined: 03 Dec 2007
Posts: 3072
Location: Houston Tx
Post Re: Chat Log scriptzorz
lol perr

and thats standered in almost any forum if you dont do it you look like a noob :P

_________________
Image
Tribes Name: Crow{OZ}


Mon Mar 08, 2010 3:18 pm
Profile
Dopesmoker{OZ}
User avatar

Joined: 24 Feb 2009
Posts: 1467
Location: Kentucky
Post Re: Chat Log scriptzorz
That's exactly why I haven't posted shit in this topic.

_________________
Image

Image


Mon Mar 08, 2010 3:29 pm
Profile
Crow{OZ}
User avatar

Joined: 03 Dec 2007
Posts: 3072
Location: Houston Tx
Post Re: Chat Log scriptzorz
lol

_________________
Image
Tribes Name: Crow{OZ}


Tue Mar 09, 2010 4:51 am
Profile
I like pi.
User avatar

Joined: 11 Nov 2007
Posts: 1522
Location: New Hampshire or Rhode Island
Post Re: Chat Log scriptzorz
Ebroglio wrote:
That's exactly why I haven't posted shit in this topic.

And yet you still look like a noob...

_________________
Image


Tue Mar 09, 2010 10:58 pm
Profile YIM WWW
Dopesmoker{OZ}
User avatar

Joined: 24 Feb 2009
Posts: 1467
Location: Kentucky
Post Re: Chat Log scriptzorz
I won't deny that. But I also don't pretend to know anything about scripting and coding :D

_________________
Image

Image


Wed Mar 10, 2010 6:17 am
Profile
Anti's Antics
User avatar

Joined: 10 Dec 2009
Posts: 1281
Location: CT
Post Re: Chat Log scriptzorz
Perri, wuts ur normal tribes look like, do u have a good config and does it look cool like Dope's?

_________________
Image
Image


Wed Mar 10, 2010 6:28 am
Profile
I like pi.
User avatar

Joined: 11 Nov 2007
Posts: 1522
Location: New Hampshire or Rhode Island
Post Re: Chat Log scriptzorz
Image

_________________
Image


Wed Mar 10, 2010 9:32 am
Profile YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.