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
➜ Plugins
➜ Timestamp Plugin trouble
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tesagk
(52 posts) Bio
|
Date
| Fri 20 Nov 2015 12:51 PM (UTC) |
Message
| Hello!
It's been YEARS since I've used MUSHclient and a lot seems to have changed. Or I simply didn't understand its capabilities a decade ago.
Either way, I tried installing the timestamp plugin via the provided XML. However, regardless of whether or not it was in MUSHclient's plugins folder or another directory, I got this error:
[WARNING] C:\Program Files (x86)\MUSHclient\worlds\plugins\Timestamp Plugin.xml
Line 26: Invalid '--' inside comment (Cannot load)
Any help in this matter would be much appreciated.
Running Windows 8.1, MUSHclient version 4.94 (the download offered from the main page). | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #1 on Fri 20 Nov 2015 02:59 PM (UTC) |
Message
| What is "Timestamp Plugin.xml"?
I only have "Timestamps.xml"
Did yours come from the forum somewhere? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #2 on Fri 20 Nov 2015 09:05 PM (UTC) |
Message
| Perhaps copy and paste the plugin here, if it isn't too long. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Tesagk
(52 posts) Bio
|
Date
| Reply #3 on Sat 21 Nov 2015 12:51 AM (UTC) |
Message
|
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!--
Change the following variables to customise your timestamps:
TIMESTAMP_INPUT : what to put in front of things you type
TIMESTAMP_OUTPUT : what to put in front of MUD output
TIMESTAMP_NOTES : what to put in front of scripted notes
Text colours:
TIMESTAMP_INPUT_TEXT_COLOUR
TIMESTAMP_OUTPUT_TEXT_COLOUR
TIMESTAMP_NOTES_TEXT_COLOUR
Background (behind the timestamp) colours:
TIMESTAMP_INPUT_BACK_COLOUR
TIMESTAMP_OUTPUT_BACK_COLOUR
TIMESTAMP_NOTES_BACK_COLOUR
Special characters for date/time etc.
General
-------
%E - MUSHclient initial (startup) directory
%F - world files directory
%L - log files directory
%N - world name
%P - player name
Date/time
---------
%a - Abbreviated weekday name
%A - Full weekday name
%b - Abbreviated month name
%B - Full month name
%c - Date and time representation appropriate for locale
%d - Day of month as decimal number (01 - 31)
%H - Hour in 24-hour format (00 - 23)
%I - Hour in 12-hour format (01 - 12)
%j - Day of year as decimal number (001 - 366)
%m - Month as decimal number (01 - 12)
%M - Minute as decimal number (00 - 59)
%p - A.M./P.M. indicator for 12-hour clock
%S - Second as decimal number (00 - 59)
%U - Week of year as decimal number, with Sunday as first day of week (00 - 53)
%w - Weekday as decimal number (0 - 6; Sunday is 0)
%W - Week of year as decimal number, with Monday as first day of week (00 - 53)
%x - Date representation for current locale
%X - Time representation for current locale
%y - Year without century, as decimal number (00 - 99)
%Y - Year with century, as decimal number
%z, %Z - Time-zone name or abbreviation; no characters if time zone is unknown
%% - Percent sign
%e - Elapsed time in microseconds since world started
%D - Delta time, in microseconds, since previous line
-->
<muclient>
<plugin
name="Timestamps"
author="Nick Gammon"
id="559d05b18c3fd5602a433cf8"
language="Lua"
purpose="Adds a timestamp to each line in the output window"
save_state="y"
date_written="2010-09-25 14:02:11"
requires="4.62"
version="1.0"
>
<description trim="y">
<![CDATA[
Enable this plugin to see timestamps.
Disable to hide them.
]]>
</description>
</plugin>
<!-- Script -->
<script>
<![CDATA[
TIMESTAMP_INPUT = "%H:%M:%S $ "
TIMESTAMP_OUTPUT = "%H:%M:%S > "
TIMESTAMP_NOTES = "%H:%M:%S ! "
TIMESTAMP_INPUT_TEXT_COLOUR = ColourNameToRGB ("maroon")
TIMESTAMP_OUTPUT_TEXT_COLOUR = ColourNameToRGB ("white")
TIMESTAMP_NOTES_TEXT_COLOUR = ColourNameToRGB ("cyan")
TIMESTAMP_INPUT_BACK_COLOUR = ColourNameToRGB ("#151515")
TIMESTAMP_OUTPUT_BACK_COLOUR = ColourNameToRGB ("#151515")
TIMESTAMP_NOTES_BACK_COLOUR = ColourNameToRGB ("#151515")
function OnPluginInstall ()
-- if disabled last time, stay disabled
if GetVariable ("enabled") == "false" then
ColourNote ("yellow", "", "Warning: Plugin " .. GetPluginName ().. " is currently disabled.")
check (EnablePlugin(GetPluginID (), false))
return
end -- they didn't enable us last time
OnPluginEnable ()
end -- OnPluginInstall
function OnPluginSaveState ()
SetVariable ("enabled", tostring (GetPluginInfo (GetPluginID (), 17)))
end -- OnPluginSaveState
function OnPluginDisable ()
SetAlphaOption ("timestamp_input", "")
SetAlphaOption ("timestamp_output", "")
SetAlphaOption ("timestamp_notes", "")
Redraw ()
end -- OnPluginDisable
function OnPluginEnable ()
SetAlphaOption ("timestamp_input", TIMESTAMP_INPUT)
SetAlphaOption ("timestamp_output", TIMESTAMP_OUTPUT)
SetAlphaOption ("timestamp_notes", TIMESTAMP_NOTES)
SetOption ("timestamp_input_text_colour", TIMESTAMP_INPUT_TEXT_COLOUR )
SetOption ("timestamp_output_text_colour", TIMESTAMP_OUTPUT_TEXT_COLOUR )
SetOption ("timestamp_notes_text_colour", TIMESTAMP_NOTES_TEXT_COLOUR )
SetOption ("timestamp_input_back_colour", TIMESTAMP_INPUT_BACK_COLOUR )
SetOption ("timestamp_output_back_colour", TIMESTAMP_OUTPUT_BACK_COLOUR )
SetOption ("timestamp_notes_back_colour", TIMESTAMP_NOTES_BACK_COLOUR )
Redraw ()
end -- OnPluginEnable
]]>
</script>
</muclient>
| Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #4 on Sat 21 Nov 2015 01:54 AM (UTC) Amended on Sat 21 Nov 2015 02:05 AM (UTC) by Fiendish
|
Message
| |
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #5 on Sat 21 Nov 2015 02:32 AM (UTC) |
Message
| Based on what Fiendish said try removing the multiple hyphens:
And further down. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #6 on Sat 21 Nov 2015 02:37 AM (UTC) |
Message
| It looks like MUSHclient is correctly throwing that error, though:
http://www.w3schools.com/xml/xml_syntax.asp
Quote:
Comments in XML
The syntax for writing comments in XML is similar to that of HTML.
<!-- This is a comment -->
Two dashes in the middle of a comment are not allowed.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Tesagk
(52 posts) Bio
|
Date
| Reply #7 on Sat 21 Nov 2015 01:12 PM (UTC) |
Message
| Yeah, I was grabbing the one in the forum thread. It looks like it's been edited. I'll try it again! | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #8 on Sat 21 Nov 2015 01:32 PM (UTC) |
Message
| Don't bother getting it from the thread. The plugin is already included with MUSHclient. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Tesagk
(52 posts) Bio
|
Date
| Reply #9 on Wed 25 Nov 2015 07:46 AM (UTC) |
Message
| Oh, where? I can't find it. I assume it's an option, but I have a tendency to miss the obvious... | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #10 on Wed 25 Nov 2015 01:46 PM (UTC) |
Message
| It's called Timestamps.xml and is included already in worlds/plugins. Just load it. |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Tesagk
(52 posts) Bio
|
Date
| Reply #11 on Thu 26 Nov 2015 04:36 PM (UTC) |
Message
| Oh wow. I was scrolling to the side for some reason, instead of vertically. I thought there were only three plugins in there.
Thanks! | 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.
32,958 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top