Forums Index >> Modding >> Dash Script Chat Logger
Page : <1> :
Tell me if you like this anyone!! XD
Um.......someoen explain dash's stuff andill say yes =P
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 !!!!
Yay...
I have a mac plz make it compadible :S
P.S. I alway needed that type of script :)
It should be compatible
another day or so and it will be ready
^ what happened to the post from your first post??? Where's the script?
Errors... Got them fixed tho... I am working on it as I type this
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
Hope everyone is happy now.....
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
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" )
Herm, the silence all script was done after yours, this script wasnt.
Well nice idea there buddy :) , I'll sure add it
Thx Art
^^ 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.
@Warfare
I added that idea to the userlog:
Art Crazy©: [IP], player accepted
Art Crazy©: [IP], left the server
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)
Hey Art, will your Admin Script be all open sourced?
Yes, all except the.gui part as BT doesnt want me to release.gui
Do they have a reason or are they just making rules?
Yea why wont they let you?
Anyways Can you please put the script in {Code} {/Code}
Change { with [ :)
@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
Ah, well, darn huh?
well in that case could you release the chat logger seperate?
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 :)
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!!
Well, if TT allowed it :)
BTW, that chat NEVER happened XD
Last edited: Tuesday, April 12, 2005 at 6:43:59 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??? :)
Well, that ISNT from TT, but is from MSN Messenger, using some add-on I do have :)
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
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");
}
No idea.. I'm using another function,
GameConnection::onClientLeaveGame
Lol, if you edit without knowing what is inside it, the same prob will happen :)
Could you e-mail me that function of yours then, it would help alot
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