Forums Index >> Modding >> Dash Script Chat Logger



Page : <1> :


I am currently working on a chat logger for dash's stuff, is anyone out there interested in this?

Scroll down.... Its there

 

 

 

 

Last edited: Monday, April 04, 2005 at 5:37:47 PM

Tuesday, March 29, 2005 at 9:52:53 PM

Sweet!

Wednesday, March 30, 2005 at 8:50:18 AM

Tell me if you like this anyone!! XD

 

 

 

 

Thursday, March 31, 2005 at 11:03:06 AM

Um.......someoen explain dash's stuff andill say yes =P

Friday, April 01, 2005 at 2:17:29 PM

Great. Now when you look at it and you see that someone said bad stuff about you, you can ban that lil' sucka right to hell !!!!


Saturday, April 02, 2005 at 4:10:07 PM

Yay...

Sunday, April 03, 2005 at 6:22:10 AM

I have a mac plz make it compadible :S

P.S. I alway needed that type of script :)

Sunday, April 03, 2005 at 5:47:41 PM

It should be compatible
another day or so and it will be ready

 

 

 

 

Sunday, April 03, 2005 at 8:20:21 PM

^ what happened to the post from your first post??? Where's the script?


Monday, April 04, 2005 at 4:26:39 PM

Errors... Got them fixed tho... I am working on it as I type this

 

 

 

 

Monday, April 04, 2005 at 5:11:36 PM

Create a ChatLogger.cs file in the dash folder and put this in it

REMEMBER THE AUTO CAPITALIZATION!!!
NO LETTER AT THE BEGGINING OF A LINE SHOULD BE CAPITAL

 


//ChatLogger by Warfare

Function logUserOn(%name)
{
%chatlog = new FileObject();
if(%chatlog.openForAppend("game/server/dash/chatlog.cs"))
{
%chatlog.writeLine("---------- "@%name@" joins the game.");
}
else
{
echo("Failed to log user");
}
%chatlog.close();
}
function logUserChat(%sender,%a2)
{
%chatlog = new FileObject();
if(%chatlog.openForAppend("game/server/dash/chatlog.cs"))
{
%chatlog.writeLine(%sender.nameBase@": "@%a2);
}
else
{
echo("Failed to log user chat");
}
%chatlog.close();
}

 

Then in your dash/main.cs file, put this in front of everything....

 

Exec("game/server/dash/ChatLogger.cs");

 

And in your GameConnection.cs file.....
look for this function, should be the first one

 

Function logConnection(%name,%ip,%action)
{
%ulog = new FileObject();
if(%ulog.openForAppend("game/server/dash/userlog.cs"))
{
%ulog.writeLine(%name@"|"@%ip@"|"@%action);
}
else
{
echo("Failed to log user connection");
}
%ulog.close();
logUserOn(%name); //---------ADD THIS
}

 

And in your codes.cs file.....

After...

 

Function chatMessageAll( %sender, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10 )
{

 

Add this....

 

LogUserChat(%sender,%a2);

 

There you go!! Chat Logging for your servers

 

 

 

 

 

Last edited: Monday, April 04, 2005 at 5:37:25 PM

Monday, April 04, 2005 at 5:32:00 PM

Hope everyone is happy now.....

 

 

 

 

Monday, April 04, 2005 at 5:38:18 PM

Not bad! Use code boxes, which are {code} and {/code} instead of {quote} and {/quote} to get around auto capitalization. (Change {'s and }'s to['s and ]'s)

Tuesday, April 05, 2005 at 7:11:07 AM

Well, wait a bit and you have an improved chat logger :)

 

Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : Became a Dictator by using /dic ---> Message Type: Command
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : /switch TT2_1 ---> Message Type: Normal Command
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : /green ---> Message Type: Normal Command
LOL: : lol ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : hi ---> Message Type: Chat Message
Repent©ºâ²: [This will appear on the log, but I censored it here :), its the person's IP] : lol ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : check if the server is unlocked now ---> Message Type: Chat Message
Repent©ºâ²: [This will appear on the log, but I censored it here :), its the person's IP] : ok ---> Message Type: Chat Message
Art Crazy©: : so unlocked? ---> Message Type: Chat Message
Repent©ºâ²: [This will appear on the log, but I censored it here :), its the person's IP] : yep ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : ok ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : that works :) ---> Message Type: Chat Message
Repent©ºâ²: [This will appear on the log, but I censored it here :), its the person's IP] : lol ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : this too ---> Message Type: Chat Message
Repent©ºâ²: [This will appear on the log, but I censored it here :), its the person's IP] : that to ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : this not :) ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : lol ---> Message Type: Chat Message
Repent©ºâ²: [This will appear on the log, but I censored it here :), its the person's IP] : is this the new script/ ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : yea ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : Chatted The Pass In A Message(the pass is [This will appear on the log, but I censored it here :)] ) ---> Message Type: Blocked Chat
Repent©ºâ²: [This will appear on the log, but I censored it here :), its the person's IP] : COOL ---> Message Type: Chat Message
Art Crazy©: [This will appear on the log, but I censored it here :), its the person's IP] : im thesting the guis ---> Message Type: Chat Message

 

This was a test while I was making the admin script :)
It will be open sourced, just wait till I release my admin script!

BTW, you can remove the message type etc messages

Oh I forgot, the openforappend is broken on Mac, so its NOT compatible (yours), I know of a way to fix mine, and one thing, I've got my version long ago before you made that one so it isnt yours edited!!
If you want proof see scriptline's site, one of our first scripts, it was even only compatible with the first dash's admin script version and u cant use it now :( , I remade it when I made my admin script on 2004 and added loads of features I never had in the released script.


Last edited: Tuesday, April 05, 2005 at 9:36:33 AM

Tuesday, April 05, 2005 at 9:20:00 AM

First with the silence all script.... And
once again..... Art shows me up with chat logging with dash scripts..... ;)
good job art, very nice....
will there be a feature that tells when people log in and out of the game?
( I tried to do that but I could not find the place to put a "leave game" function, just a "join game" )

 

 

 

 

Wednesday, April 06, 2005 at 11:26:22 AM

Herm, the silence all script was done after yours, this script wasnt.
Well nice idea there buddy :) , I'll sure add it


Wednesday, April 06, 2005 at 11:35:27 AM

Thx Art

 

 

 

 

Wednesday, April 06, 2005 at 11:38:19 AM

^^ do you have the script which allows you to see what anyone types in-game? I know Ben had such a script.
so basically its an in-game chat logger.


Wednesday, April 06, 2005 at 4:27:35 PM

@Warfare
I added that idea to the userlog:

 

Art Crazy©: [IP], player accepted
Art Crazy©: [IP], left the server

 

 


Thursday, April 07, 2005 at 1:58:40 PM

Thx again Art... You're the greatest!

@Mr Big Show - my chat logger logs what everyone says and everything they say. Including "/pm Warfare I love you, you are so hott!" B)

 

 

 

 

Thursday, April 07, 2005 at 3:44:45 PM

Hey Art, will your Admin Script be all open sourced?

 

 

 

 

Thursday, April 07, 2005 at 3:47:15 PM

Yes, all except the.gui part as BT doesnt want me to release.gui


Friday, April 08, 2005 at 9:47:48 AM

Do they have a reason or are they just making rules?

 

 

 

 

Friday, April 08, 2005 at 3:13:09 PM

Yea why wont they let you?

Anyways Can you please put the script in {Code} {/Code}

Change { with [ :)

Friday, April 08, 2005 at 3:35:03 PM

@Warfare
They do this because I used Thinktanks-only profiles (they tell the game what to put there, like a window or text etc) and as they were made by BT, I cant release any file that uses them, well every single one


Saturday, April 09, 2005 at 3:17:57 AM

Ah, well, darn huh?
well in that case could you release the chat logger seperate?

 

 

 

 

Saturday, April 09, 2005 at 7:34:23 AM

If you never understood, just the gui part is gonna be.dso, and I cant do that as it uses special things only my admin script has, and would require 20min of editing and the paste time :)


Saturday, April 09, 2005 at 1:25:35 PM

Darn... Oh well
here is another idea, showing the time the chat happened like....

 


 

[10:45] Warfare: hello all, This is a great idea isnt it?
[10:48] Art Crazy©: yes warfare! You are a genius!!

 

 

 

 

Monday, April 11, 2005 at 3:18:52 PM

Well, if TT allowed it :)
BTW, that chat NEVER happened XD


Last edited: Tuesday, April 12, 2005 at 6:43:59 AM

Tuesday, April 12, 2005 at 6:43:17 AM


This taken from my "Chong is a Bloody Hacker!!!" thread

 


Michael® ~Retired~

[11:20:00 AM] Chonger™: warfare's thread ?
[11:20:53 AM] //!( }{431: yes
[11:21:03 AM] Chonger™: he gave me his admin codes
[11:21:07 AM] Chonger™: I got it from his prefs.cs
[11:21:14 AM] Chonger™: there, happy now

 

Saturday, April 09, 2005 at 3:03:01 PM

 

Michals got one.... Why dont you??? :)

 

 

 

 

Tuesday, April 12, 2005 at 8:55:35 AM

Well, that ISNT from TT, but is from MSN Messenger, using some add-on I do have :)


Tuesday, April 12, 2005 at 11:25:47 AM

I assume you know about Cerdip's book "3D Programming all in One", he released a self-teach book all about Torque code. And I am assuming dash owns it because most of the comments in his stuff is word for word the comments in the book.

Speaking of which, I found in the book the "function GameConnection::OnDrop(%client, %reason) " thing and I typed all thats in it into the GameConnection.cs file plus a function that logs a user off the game in the chat log. Problem is, I am most likely missing something because when I leave the game and look at it from the lobby, It says I am Still in it, yet my console says that there are no users and the game procedes without resetting. So my question for you art is....
What am I missing??

This is pretty annoying

 

 

 

 

Last edited: Thursday, April 14, 2005 at 4:41:18 PM

Thursday, April 14, 2005 at 4:14:52 PM

Here is what I have... Tell me what I need to add please

 

                                        
function GameConnection::OnDrop(%client, %reason)
{
%client.OnClientLeaveGame();
LogUserOff(%client.nameBase);
RemoveFromServerGuidList( %client.guid );
MessageAllExcept(%client, -1, 'MsgClientDrop', '/c1%1 has left the game.', %client.name, %client);
RemoveTaggedString(%client.name);
Echo("CDROP: "@%client@" "@%client.GetAddress());
$Server::PlayerCount--;
If( $Server::PlayerCount == 0 && $Server::Dedicated)
Schedule(0,0, "ResetServerDefaults");
}

 

 

 

 

 

 

Thursday, April 14, 2005 at 8:42:10 PM

No idea.. I'm using another function,
GameConnection::onClientLeaveGame

Lol, if you edit without knowing what is inside it, the same prob will happen :)


Friday, April 15, 2005 at 6:03:41 AM

Could you e-mail me that function of yours then, it would help alot

 

 

 

 

Saturday, April 16, 2005 at 1:41:23 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald