Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Double spacing in log files

Double spacing in log files

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nojh   (3 posts)  Bio
Date Thu 13 May 2010 03:04 AM (UTC)
Message
Hi there. I recently started using MUSH Client and I'm trying to recreate some functionality my older MU* client used to have. Namely the ability to automatically double space log files.

I thought perhaps it might be as simple as creating a trigger on '\n' that outputs '\n' to the log file. But that didn't seem to work.

Could anyone help me determine how I could replicate this feature using MUSH Client?

Thanks.
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #1 on Thu 13 May 2010 03:24 AM (UTC)

Amended on Thu 13 May 2010 03:32 AM (UTC) by Twisol

Message
<triggers>
<trigger
 match="^$"
 regexp="y"
 keep_evaluating="y"
 send_to="12"
 sequence="100">
  <send>
    if IsLogOpen() then
      WriteLog("\r\n")
    end
  </send>
</trigger>
</triggers>


Make sure "Triggers can match on an empty line" is active, in File -> Global Preferences -> General.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nojh   (3 posts)  Bio
Date Reply #2 on Thu 13 May 2010 03:28 AM (UTC)
Message
Hi! Thank you for the response. Could I also ask that you point me to the help file or documentation that tells me how to install that particular trigger? I'm only familiar with the dialog entry format.
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #3 on Thu 13 May 2010 03:35 AM (UTC)
Message
Sure, sorry. Copy the entire contents of the code box there, and go to Game -> Configure -> Triggers. Click the Paste button on the bottom of the dialog, and it should import the trigger for you.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Thu 13 May 2010 05:57 AM (UTC)
Message
A simpler method is to go into the Logging configuration for the world, and near the bottom, where it says Output lines ... Postamble put "%n" into the box (without the quotes). That will put a newline as a postamble after each line. You will also need to put that into the box for "commands" and "script notes" as well, if you want them double spaced too.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nojh   (3 posts)  Bio
Date Reply #5 on Thu 13 May 2010 10:44 PM (UTC)
Message
Thank you Nick Gammon. That worked perfectly.

Twisol: I tried the trigger and it didn't appear to work. Interestingly enough after I closed and re-opened the application, the trigger had changed. I tried deleting and re-pasting but that didn't work either.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


18,077 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.