I'm trying to create an alias to open a log, get some information, and close the log. It doesn't work, though, although there's no problem with opening the log manually--just with OpenLog.
Here's an alias I wrote for testing:
OpenLog ("test.txt", true)
Note(IsLogOpen())
SetLogOutput (true)
Note(GetLogOutput ())
SetLogInput (true)
Note(GetLogInput ())
Send ("do look,hop")
WriteLog("--- Message for the log file ---")
CloseLog()
FlushLog()
And here's what it appends to test.txt:
true
true
true
--- Message for the log file ---
I see the output for "do look,hop" in the game window, but it isn't appended to the file.
Also, OpenLog ignores the chosen log directory. In XP it would save stuff in the Start Menu folder, for some reason, and in Windows 7 it saves in C:\Mushclient. Trying to set a relative or absolute path fails entirely; I get "false" for IsLogOpen. I don't really care about this part, since I can figure out where to find the files... but not being able to log game output (unless I manually open the log) is a pain. Is this a problem with OpenLog or with something I'm doing?
Here's an alias I wrote for testing:
OpenLog ("test.txt", true)
Note(IsLogOpen())
SetLogOutput (true)
Note(GetLogOutput ())
SetLogInput (true)
Note(GetLogInput ())
Send ("do look,hop")
WriteLog("--- Message for the log file ---")
CloseLog()
FlushLog()
And here's what it appends to test.txt:
true
true
true
--- Message for the log file ---
I see the output for "do look,hop" in the game window, but it isn't appended to the file.
Also, OpenLog ignores the chosen log directory. In XP it would save stuff in the Start Menu folder, for some reason, and in Windows 7 it saves in C:\Mushclient. Trying to set a relative or absolute path fails entirely; I get "false" for IsLogOpen. I don't really care about this part, since I can figure out where to find the files... but not being able to log game output (unless I manually open the log) is a pain. Is this a problem with OpenLog or with something I'm doing?