Endwaith Posted May 28, 2002 Share Posted May 28, 2002 Hi, I am having some trouble getting the Server stats application to work on my server (im using the stats program available in the downloads section of jediknightii.net). I am using a PIII machine with Win2k Server, and active perl installed. I have fiddled around with the config settings to no end and have yet to figure out what is wrong. Everytime i douple click on the script file the black dos like window pops up but then disapears almost right away, and nothing happens. I think the paths must be set wrong in the logparse config file, but im not sure what i might be doing wrong. I have read the readme file for windows users and I think I am doing everything right acording to the readme, but it still doesnt work. I am unclear as to exactly how the format of the paths work, I have tried using the C:/ path... as well as the /severname/path formats. Heres where everything is located in my system: Logfile is in C:\Jedi Knight II\gamedata\base\ Logparse program is in C:\logparse\ output directory is in C:\wwwroot\public_html\jk2 Inside that are folders for images: C:\wwwroot\public_html\jk2\images And stylesheets: C:\wwwroot\public_html\jk2\stylesheets Can any of you servermasters out there help me? Id like to know what my logparse.conf file should look like. Exactly which way are the slashes supposed to point (ive tried both ways). Should I use C:\ format or the unix format ? any help would be GREATLY appreciated. Thanks Endwaith Link to comment Share on other sites More sharing options...
Wintrmte Posted May 29, 2002 Share Posted May 29, 2002 Originally posted by Endwaith Hi, I am having some trouble getting the Server stats application to work on my server (im using the stats program available in the downloads section of jediknightii.net). I am using a PIII machine with Win2k Server, and active perl installed. I have fiddled around with the config settings to no end and have yet to figure out what is wrong. Everytime i douple click on the script file the black dos like window pops up but then disapears almost right away, and nothing happens. I think the paths must be set wrong in the logparse config file, but im not sure what i might be doing wrong. I have read the readme file for windows users and I think I am doing everything right acording to the readme, but it still doesnt work. I am unclear as to exactly how the format of the paths work, I have tried using the C:/ path... as well as the /severname/path formats. Heres where everything is located in my system: Logfile is in C:\Jedi Knight II\gamedata\base\ Logparse program is in C:\logparse\ output directory is in C:\wwwroot\public_html\jk2 Inside that are folders for images: C:\wwwroot\public_html\jk2\images And stylesheets: C:\wwwroot\public_html\jk2\stylesheets Can any of you servermasters out there help me? Id like to know what my logparse.conf file should look like. Exactly which way are the slashes supposed to point (ive tried both ways). Should I use C:\ format or the unix format ? any help would be GREATLY appreciated. Thanks Endwaith The problem here, is that when I wrote the script, I didn't write it to handle Windows' long filenames.. What you need to try, is for your LOGFILE setting, set it to the truncated 8 char limit.. So, LOGFILE C:\Progra~1\lucasa~1\starwa~1\gamedata\base\jedi.log That should get the script running. If not, please email me directly .. We'll get it going for you. (sam@neuroflux.com) Link to comment Share on other sites More sharing options...
Jasco Smlee Posted May 29, 2002 Share Posted May 29, 2002 ...'till I realised it was a long filename problem. To find out your 8.3 short filenames do a dir /x Link to comment Share on other sites More sharing options...
Endwaith Posted May 30, 2002 Author Share Posted May 30, 2002 Thanks for the suggestions, but unfortunately the short filenames thing did not help. What else could I be doing wrong? Does it matter that I dont have the game installed in the default directory? (its in the root of C instead of under programfiles/lucasarts) I could have the slashes pointing the wrong way... im still confused about whichgh way they should point. Can somone explain this to me? The examples in the readme showed them pointing in the opposite direction than they usually point in the DOS prompt. So should it be C:/ or C:\ ??? Thanks for the help. I have a lan party going on this weekend and would like to have it running before then if possible. Thanks! ENDWAITH Oh by the way, Wintrmte, I have sent you an email and have not heard back from you yet, my email is endwaith@hotmail.com Link to comment Share on other sites More sharing options...
Jasco Smlee Posted May 30, 2002 Share Posted May 30, 2002 I put all my slashes this way /. My game is not in the default dir. either so that shouldn't matter. I'm not sure if the paths are cAsE sEnSiTiVe or not. Link to comment Share on other sites More sharing options...
Endwaith Posted June 3, 2002 Author Share Posted June 3, 2002 Arg! This is frustrating. Ok i did the dir/x thing and got the exact file extention. That didnt work. My slashes are all pointing this way / . Ive checked the capitals and spaces and everything. I cant think of what could be going wrong. Im sure whatever it is its probably something really simple, and im going to feel incredibly stupid if i ever find out what it is. Anyone have any other ideas? Could it be in the way that the log file is being recorded? I know there is more than one command that you can put in the server config file to enable the log script, is there a particular command i should be using? Thanks. Link to comment Share on other sites More sharing options...
EaSyKiLL Posted June 3, 2002 Share Posted June 3, 2002 I was having the same problem so what I did was open a command prompt. Then navigate to your c: directory (type cd .. to go back a directory, etc) then type in the path of your logparse.pl file. This will run the program and keep it on the screen so that you can see the errors you are getting. I was getting a data directory not found and player directory not found. Once I made these two folders it worked fine. Link to comment Share on other sites More sharing options...
NITEMARE Posted June 3, 2002 Share Posted June 3, 2002 i have a rather odd problem(winxp, ntfs). it cannot find the folders even tho they are not over 8 chars: d:/ftp/bfa/parser/ i have all files there that are needed except the perl folder. the first files it checks are the html templates, ok i set no folder befor the file names and it worked, since it had just to look in the same folder as the script. at least it gave me another not found error. so i removed the folder entries and it worked all the way until i tried to make it get the players folder too. but there i can do whatever i want and it still says player statistics folder not found. please help. or what other logparser are out there? Link to comment Share on other sites More sharing options...
Wintrmte Posted June 4, 2002 Share Posted June 4, 2002 Originally posted by Endwaith Thanks for the suggestions, but unfortunately the short filenames thing did not help. What else could I be doing wrong? Does it matter that I dont have the game installed in the default directory? (its in the root of C instead of under programfiles/lucasarts) I could have the slashes pointing the wrong way... im still confused about whichgh way they should point. Can somone explain this to me? The examples in the readme showed them pointing in the opposite direction than they usually point in the DOS prompt. So should it be C:/ or C:\ ??? Thanks for the help. I have a lan party going on this weekend and would like to have it running before then if possible. Thanks! ENDWAITH Oh by the way, Wintrmte, I have sent you an email and have not heard back from you yet, my email is endwaith@hotmail.com Yea, I sent you a reply yesterday. Went to New York for Vacation. Read your email, and please reply. Link to comment Share on other sites More sharing options...
Wintrmte Posted June 4, 2002 Share Posted June 4, 2002 Originally posted by NITEMARE i have a rather odd problem(winxp, ntfs). it cannot find the folders even tho they are not over 8 chars: d:/ftp/bfa/parser/ i have all files there that are needed except the perl folder. the first files it checks are the html templates, ok i set no folder befor the file names and it worked, since it had just to look in the same folder as the script. at least it gave me another not found error. so i removed the folder entries and it worked all the way until i tried to make it get the players folder too. but there i can do whatever i want and it still says player statistics folder not found. please help. or what other logparser are out there? Please email me your logparse.conf file.. Send it to sam@neuroflux.com Thx Link to comment Share on other sites More sharing options...
NITEMARE Posted June 4, 2002 Share Posted June 4, 2002 i sent it. its not that important rightnow anyway, since we dont have a good admin bot to keep some rules up. the most important thing would be handling the renaming mess. its terrible with those lamers renaming themselves like they were chatting. i want either to forbid renaming or the adminbot to keep track of the alliases so the renamer doesnt get away, like renaming if you suck rightnow but as soon as you win again put the original nick back on. that sucks Link to comment Share on other sites More sharing options...
Awol Posted June 4, 2002 Share Posted June 4, 2002 Ok perl for windows you can use long file name it doesn't care now you have 2 different ways to enter in a path in perl for win32 Lets say the path is "c:\Program Files\JediKnight II\Base" (I know its not correct but will work for the examples) The first way is $Varible = "C:\\Program Files\\JediKnight II\\Base"; (Notice the double backslash) The second was is $Varible = "C:/Program Files/JediKnight II/Base"; Replace all backslashes with forward slashes. In all of my programs I haven't seen perl have a problem with paths formated like this. Also in ActiveState's Perl you should have absolute paths to any files you are reading or writing because the default directory isn't always where the script is located. Awol Link to comment Share on other sites More sharing options...
NITEMARE Posted June 4, 2002 Share Posted June 4, 2002 THX Awol! the \\ thing worked out! no i generated my first stats. heh i first wondered why i had so many kills. but then i recalled the ffa testing.... see for yourself heh. what a killingspree http://www.nitemares.de/philes/teamffa-gemetzel.zip Link to comment Share on other sites More sharing options...
Endwaith Posted June 5, 2002 Author Share Posted June 5, 2002 Originally posted by EaSyKiLL I was having the same problem so what I did was open a command prompt. Then navigate to your c: directory (type cd .. to go back a directory, etc) then type in the path of your logparse.pl file. This will run the program and keep it on the screen so that you can see the errors you are getting. I was getting a data directory not found and player directory not found. Once I made these two folders it worked fine. Great suggestions Easykill! That helped me figure out whats wrong. It was something pretty stupid, just like i thought it would be. Just one letter was off. heh heh. Everything works great now. Thanks a lot for the help everyone! Link to comment Share on other sites More sharing options...
EaSyKiLL Posted June 6, 2002 Share Posted June 6, 2002 No problem. Took me like 2 hours to figure it out. LoL Glad I could help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.