|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sun Jun 19, 2011 9:37 am
Logging |
are log files supposed to go in the main CMUD folder under programs instead of in the my games folders?
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
geniusclown Magician
Joined: 23 Apr 2003 Posts: 358 Location: USA
|
Posted: Sun Jun 19, 2011 2:53 pm |
Whenever I start logging from the menu (alt-F,L or ctrl-L) or with #LOG using no arguments, cMUD opens a dialogue prompting me for where to save the log. If I use the #LOG command without specifying folder with the filename, then it defaults to ..\My Documents\My Games\CMUD\(session name)\(filename).txt
Note that if I've already logged during the session #LOG with no arguments will turn off logging or start appending to the previously specified file.
I hope this helps! |
|
_________________ .geniusclown |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sun Jun 19, 2011 3:28 pm |
That's how I thought it was supposed to work,but it is not for me.
They are going to the CMUD folder under programs.
#EVENT onConnect {#LOG %concat(%sessionid, "-", %char, " ", %time(yyyy-mm-dd h:mm), ".txt")} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sat Jul 23, 2011 1:03 am |
Since moving up to Windows 7, the above code either truncates the name to just %sessionid.txt or throws up an error
ERROR creating log: Mud-Charname 2011-07-22 19:57.txt |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sat Jul 23, 2011 3:47 pm |
Make sure when you install CMUD you selected the %DOCUMENTS% option for the location of your User Session Data Files. If that is set to Program Files, then it's not going to work on Windows 7 (which prevents files, like log files, from being written to the Program Files directory).
On my system here it stores the log files in the same directory as the *.PKG session file. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sun Jul 24, 2011 2:16 am |
Yeaa, the files go to the right spot on windows 7, but i cant get the files named the way i want
#EXEC {#LOG "%sessionid-%char %time(yyyy-mm-dd h:mm)"}
leaves off the date info, a cannot find a way to preserve a long file name with spaces in it |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Jul 24, 2011 2:38 am |
#LOG %concat(%sessionid,"-",%char," ",%time(yyyy-mm-dd h:mm)) works for me.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sun Jul 24, 2011 3:20 am |
and i get the error from two posts up with that
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sun Jan 22, 2012 5:13 pm |
Anyone able to get this to work yet?
Using the above:
ERROR creating log: FancyMUD-Shalimar 2012-01-22 11:06.txt
Using: #LOG hi
Log is on: C:\Users\Shalimar\Documents\My Games\CMUD\FancyMUD\hi.txt
Would the error be the fact that name has spaces hyphens or colons?
I thought such naming restrictions were long gone. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Jan 22, 2012 6:00 pm |
According to Microsoft, colons aren't allowed in file names. It's easy to test this, actually - if you open notepad and try to save a file with a colon in the name, it will say the file name is invalid. That still doesn't explain why I don't get the error you get, though. I used the code from my post above and it says Log is on: session-char 2012-01-22 12:55.txt, however if I go look for that file, it turns out that the file name is actually being truncated at the colon. There must be some setting or maybe Windows version discrepancy, but either way, the colon is your problem.
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: Sun Jan 22, 2012 6:08 pm |
Yup, thanks.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|