potatomushclient / potato

A Graphical MUSH Client for Windows, Linux and Mac OS X -
http://www.potatomushclient.com
30 stars 3 forks source link

Auto log #392

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Your Reply: Although there's no specific option for it, you can set it up 
yourself - see the example on the Macros wiki page at 
https://code.google.com/p/potatomushclient/wiki/Macros . Combined with 
"/runmacro logroll" in the 'On first connect' auto-send, it implements 
autologging.
-------------------

I tried this before and it didn't work for me. As well, it only allows one file 
per game address. I need something that will log the characters separately. The 
only way I see this working is if I create multiple world addresses to the same 
game with different names. If you are at all familiar with simplemu I am 
looking for something like their logging ability. Unfortunately, simplemu 
doesn't handle 256 color.

Also, I am not good with macros at all. The website you referenced, do all 
three lines go into the 'send on first connect'? Or where is the macro stored?

Original issue reported on code.google.com by K.Jisa...@gmail.com on 18 May 2014 at 1:51

GoogleCodeExporter commented 9 years ago
Those three lines are the macro definition. On the 'Send on First Connect', you 
just put "/runmacro <name>" (in this case, the name I use is logroll, but you 
can use anything you like).

You can also use [/get _char] in the file name to get the current character 
name, if you have multiple characters defined for the world, and this will 
allow you to have a logfile for each one.

Original comment by mike@keyboardzombie.com on 18 May 2014 at 2:06

GoogleCodeExporter commented 9 years ago
Do I need to specify character name as well?

am I correct in thinking that I would put it like this in the global macro 
option?

Name: Mbroll
/log -stop
    /log -append 1 -leave 1 -buffer _none -- C:/program file (x86/potato/mb/log_[/get _MB]-[/time %Y-%m-%d].txt
    /at tomorrow 00:00:01=/run mbroll

-and then-

Name: PCroll
/log -stop
    /log -append 1 -leave 1 -buffer _none -- C:/program file (x86/potato/pc/log_[/get _MB]-[/time %Y-%m-%d].txt
    /at tomorrow 00:00:01=/run pcroll

Original comment by K.Jisa...@gmail.com on 18 May 2014 at 4:31

GoogleCodeExporter commented 9 years ago
oops?

Name: Mbroll
/log -stop
    /log -append 1 -leave 1 -buffer _none -- C:/program file (x86/potato/mb/log_[/get _char]-[/time %Y-%m-%d].txt
    /at tomorrow 00:00:01=/run mbroll

-and then-

Name: PCroll
/log -stop
    /log -append 1 -leave 1 -buffer _none -- C:/program file (x86/potato/pc/log_[/get _char]-[/time %Y-%m-%d].txt
    /at tomorrow 00:00:01=/run pcroll

OR do I need to do [/get_W][/get_char]?

Original comment by K.Jisa...@gmail.com on 18 May 2014 at 4:34

GoogleCodeExporter commented 9 years ago
I tried it both ways. I don't see any new log file created. If I move the 
/runmacro <name> command to 'send after login' then I get emitted this.

Now logging to "C:\program file (x86)\potato\mb\log_MB-2014-05-18.txt".
Command will run at 05/19/2014 00:00:01, id after#5394
Logging to "C:\program file (x86)\potato\mb\log_MB-2014-05-18.txt" stopped.
Now logging to "C:\program file (x86)\potato\pc\log_MB-2014-05-18.txt".
Command will run at 05/19/2014 00:00:01, id after#5396

but when I open the txt editor there is no file there.
what am I doing wrong? I'm on a win 8 system.

Original comment by K.Jisa...@gmail.com on 18 May 2014 at 5:09

GoogleCodeExporter commented 9 years ago
OH GRR! Well, it worked but didn't send the files where I wanted them to go. 
But I can figure that out.

Original comment by K.Jisa...@gmail.com on 18 May 2014 at 5:12

GoogleCodeExporter commented 9 years ago
Ok, Got it to save where I want it to. But the file keeps immediately closing. 
so nothing really gets saved to it.

Original comment by K.Jisa...@gmail.com on 18 May 2014 at 5:28