Forums Index >> Modding >> Warfare's Chatlogger Version 2.0
I have a question. Is there a way to add to the entry of game restarted the actual mission file or mod name? Just wondering it would help modders who host understand the comments made about the maps. Currently if someone states this would be nice if...... There's no way of knowing which map they were talking about without searching the log file. Would be a nice convenience. :~)
Just wondering.
You know what?
thats a great idea...
Jeez :P
sure.. I can do that... You can too
I gave the admin.cs file open source so anyone who can script (more or less) can edit it to their preferences
the tankdata::onadd function is the one you want...
Once I get my keyboard back from my mother I will post an alternate version of that function here
(on screen keyboard sucks!)
Until then..
War
Last edited: Tuesday, August 23, 2005 at 3:06:40 PM
UPDATE!
Alright... Onscreen keyboard isnt that bad...
I managed to release my script open source today
(I didnt want to release the chatlog fix for mac until art released his admin script... It is his fix and up to him to release it...)
knock yourselves out for those of you who use a version of dash scripts....
I am goin to work on napalm's idea once I get my room clean
(thats when I will get my keyboard back... Ugg)
until then...
stay tuned.... :P
Feeling a little competition War? May the best scripter win! I don't care whose I use, I'm just going to use the one I'm most comfortable with. So far, I liked yours better Warfare. You codes, though not as many, have more use than Art's thousands of not so useful codes. If you two joined forces, oh man.....I want your chatlogger Warfare with Art's GUI networking deal and codes. That would rock. Beat him to it!
Well I just fixed another problem...
when someone is silenced... The original chat function wouldnt get called...
it wasnt that important...
expect to see napalms idea update soon
Last edited: Saturday, August 27, 2005 at 3:59:24 PM
UPDATE!
Ok the chatlogger now logs the current mission that has loaded
And also centerprints the author and name of the loaded mission to whomever joins
for some reason that only works on dedicated servers...
Enjoy
Thanks for the ideas napalm
EDIT: if you have something that does this already.... Delete it... :)
Last edited: Tuesday, August 30, 2005 at 5:50:24 PM
UPDATE:
Upon popular request, the chatlogger has been cleaned up
enjoy version 4.0
Last edited: Saturday, September 10, 2005 at 3:13:03 PM
Yes, very possible
just copy and paste this to the bottom of the chatlogger
function cp(%message)
{
schedule(1000,false,"CenterPrintAll",%message,4,2);
}
Then in the dedicated server window type in cp("message");
Last edited: Saturday, September 10, 2005 at 9:06:21 AM
Thanks for the speedy reply, I have added the text to the bottom of the chatlogger.cs file but when I type cp("message"); this error msg comes up <input> (o): unable to find function cp - any ideas?
This is what the bottom of the chatlogger.cs look like
Thanks
Daz
%admin_entry = %adminlist.readLine();
%rlen = strlen(%admin_entry);
if(%rlen)
{
%name = getSubStr(%admin_entry,0,strstr(%admin_entry,"|"));
%admin_ip = trim( getSubStr(%admin_entry,strstr(%admin_entry,"|")+1,%rlen));
if(%admin_ip $= %ip)
return true;
}
}
}
%adminlist.close();
return false;
{
function cp(%message){schedule(1000,false,"CenterPrintAll",%message,4,2);}
Have also tried this
%adminlist = new FileObject();
if(%adminlist.openForRead("game/server/dash/adminjoin.cs"))
{
while(%adminlist.isEOF() != 1)
{
%admin_entry = %adminlist.readLine();
%rlen = strlen(%admin_entry);
if(%rlen)
{
%name = getSubStr(%admin_entry,0,strstr(%admin_entry,"|"));
%admin_ip = trim( getSubStr(%admin_entry,strstr(%admin_entry,"|")+1,%rlen));
if(%admin_ip $= %ip)
return true;
}
}
}
%adminlist.close();
return false;
{
function cp(%message)
{
schedule(1000,false,"CenterPrintAll",%message,4,2);
}
Keep in mind that I have updated so you may have more than one problem if you have an old version
I dont know why you did this....
%adminlist.close();
return false;
{
function cp(%message)
{
That bolded bracket should be this "}" instead of "{"
Last edited: Saturday, September 10, 2005 at 9:46:28 AM
....Dazzle.....
The abilities granted by this script work best when used with the latest dash scripts ...
This chatlogger was ment for dash's admin script... Not art's....
Art Crazy's admin script already has a chatlogger, so why are you using mine?
If everything is working great, thats awesome!
But I dont recommend using my chatlogger with art's admin script...
you might not be able to put either to full use if you do
Last edited: Saturday, September 10, 2005 at 10:49:25 AM
Warfare
Thats what I thought but I cannot identify the dedicated server codes in arts scripts ive been looking all day lol. I beleive there are 5 server codes including one which enables chat from the server window into the game just like yours. If you know what these 5 code are I would be grateful if you could post them.
Daz
Nope, I cant help you there, except to tell you where they are
look in the console utilities.cs file
Alright...
Since art has his admin script out and not very many people use dash's
I wont be updating this any longer....
I have other things to work on... :P
Cyall around
(hmm.... Time to make a couple gametypes?)
@ Warfareİ
I think you should reconsider keep ing this alive.
Arts scripts ar overkill in my opinion. I also know many of the people in the admin group still use Dash's admin code. Reagent X, Nuts, Dash, myself Blind Cide, Rooster.
Not to mention what good is arts admin scripts if he's not here to spport them?
Also why the lag with the mac version?
But than again I love Art's Admin Scripts, well I could do with out the calculator. But I agree with Napalm you should update your scripts and give support for them. Allot of admins still use Dash's admin scripts. :)
4/1/1929 to 11/17/2006 Rest in Peace Bo. GO BLUE!!!
@ napalm
the reason macs will have a little lag with this is because the append fix reads the entire log file to find the last line, then writes to it at the end
in a windows and linux PC, all the server has to do is append to the file, add a line of text at the end....
the mac, since the append is broken, has to go thru 2 other time consuming functions to replace the append...
It doesnt cause much lag, but if the log file is too big, or lots of people are chatting at once, the lag might be noticable
it all depends on your computer specs and internet speed...
@all
I did think of keeping this updated but I figured that the people that still use dash's codes have the ability to make (or already have) their own chatlogger to meet their needs...
everyone else uses art's scripts....
Really the only reason I have discontinued this project of mine was because of the lack of intrest by the rest of PTT
But dont worry, I am keeping it alive, as you can see, you can still download it :)
I just wont be updating it anytime soon
On another note,
I have taken some programming classes in school and now that I look over the chatlogger, it needs some major overhauling...
So, I will be updating it at least one more time, once my PC is checked for viruses (yeah, network got a virus... Not my fault this time :) )
until then, yay school computers!!
War
I have taken some programming classes in school and now that I look over the chatlogger, it needs some major overhauling...
Cool Warfare.
And just so you know, I know at least 10 hosters on Macs that don't, or have no interest in scripting or modifying any scripts. Many of them are creative in graphical aspect and do not enter into the realm of scripting, and or coding. That's why we love you guys so much!
Nap
New Thread HERE
Last edited: Tuesday, November 01, 2005 at 6:06:47 PM