[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Fully enabled ATCP plugin

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Fully enabled ATCP plugin
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Tue 02 Feb 2010 06:35 AM (UTC)  quote  ]
Message
I can't find an explicit limit, although I admit I didn't look too hard (looking through [1]). I do imagine that there would be a 'sensible' limit of 1024, or 2048 based on what you said.

[1]: http://www.omnifarious.org/~hopper/telnet-rfc.html

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Tue 02 Feb 2010 06:01 AM (UTC)  quote  ]
Message
Worstje said:

Technically, everything is in the same stream of bits and bytes. The only method to get at said data in MUSHclient is through OnPluginPacketReceived, where you can filter it out also.


Out of curiosity, is there any limit on the amount of data that can appear (from server to client) inside the telnet negotiation sequence? I saw a reference to 2048 bytes, but that was from client to server.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Fri 15 Jan 2010 09:52 AM (UTC)  quote  ]
Message
Thank you, I appreciate it!

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Fri 15 Jan 2010 09:45 AM (UTC)  quote  ]
Message
Twisol said:

Well, the plugin is too large for the 6000-character maximum even on its own, so here's a pastebin link:



The length restriction on your posts has been removed.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Fri 15 Jan 2010 07:57 AM (UTC)  quote  ]
Message
Well, the plugin is too large for the 6000-character maximum even on its own, so here's a pastebin link:

http://mushclient.pastebin.com/fe1d0a12

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Fri 15 Jan 2010 07:54 AM (UTC)  quote  ]
Message
I'm proud to release ATCP v2.0! This version replaces the old interface with a PPI-exposed pair of methods, allowing client code to register method callbacks. It also requires MUSHclient v4.46, in preparation for the public release of PPI, but you could get PPI separately and change the version requirement if you really wanted.

The full ATCP plugin is posted in the next post due to length. I've pasted my Roomname plugin here, as an example of how to use the new ATCP interface.

<!DOCTYPE muclient> 
 
<muclient> 
<plugin
   name="roomname"
   author="Soludra"
   id="e94f6bd8509a2b00d10cb226"
   language="Lua"
   purpose="Adds a Nexus room name to the status bar"
   date_written="2008-08-23"
   date_modified="2010-01-15 12:27:00"
   requires="4.35"
   version="2.0"
   > 
</plugin> 
<script><![CDATA[

-- Used to load the ATCP interface
PPI = require("ppi")

-- Will contain the ATCP interface
atcp = nil

-- Executed when you get an ATCP message!
OnRoomBrief = function(message, content)
  SetStatus(content .. ".")
end

-- Use this to load the ATCP library
OnPluginListChanged = function()
  local atcp, reloaded = PPI.Load("7c08e2961c5e20e5bdbf7fc5")
  if not atcp then
    -- Normally, you might put an error or a warning note here.
    -- Roomname won't do anything if ATCP isn't available, so
    -- it's safe to leave it running until ATCP comes online.
  elseif reloaded then
    -- Registers a function to call when Room.Brief is received.
    atcp.Listen("Room.Brief", OnRoomBrief)
    -- Sets the local 'atcp' variable to the global created before.
    _G.atcp = atcp
  end
end
 
]]></script> 
 
</muclient>

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Mon 27 Apr 2009 03:13 AM (UTC)  quote  ]
Message
Oops, yes, thanks. >_>

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Mon 27 Apr 2009 03:08 AM (UTC)  quote  ]
Message
Uploaded now.

Suggest in future you update the version number in the plugin, like this:


<muclient>
<plugin
   name="ATCP"
   author="Soludra"
   id="7c08e2961c5e20e5bdbf7fc5"
   language="Lua"
   purpose="ATCP data"
   date_written="2008-09-18"
   date_modified="2009-04-23 12:15"
   requires="4.35"
   version="2.0"
   >
</plugin>


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Wed 22 Apr 2009 11:08 PM (UTC)  quote  ]

Amended on Thu 23 Apr 2009 01:09 AM (UTC) by Twisol

Message
Uploaded a new version to http://www.jonathan.com/atcp/atcp.xml, to fix a bug related to enabling modules more than once. (Would appreciate it if your mushclient.com version was replaced, too?)

EDIT: oops, -now- it's uploaded.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Mon 20 Apr 2009 07:25 PM (UTC)  quote  ]
Message
Yeah, in fact ZMP looks almost identical to ATCP.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Mon 20 Apr 2009 06:12 PM (UTC)  quote  ]
Message
I think it is the same kind of reason you had VHS and Betamax, with the latter losing even though it predated VHS and was superior. It just gains more popularity because more people use it.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 20 Apr 2009 04:20 PM (UTC)  quote  ]
Message
Heh. :-)
http://sourcemud.org/wiki/ZenithMudProtocol

After reading your description of ATCP, it looks like it's basically the same idea: a way to communicate information without using the main communication channel.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Mon 20 Apr 2009 04:16 PM (UTC)  quote  ]
Message
Er, what's ZMP? <_<

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 20 Apr 2009 04:10 PM (UTC)  quote  ]
Message
What's the difference more or less between ATCP and ZMP? Probably just that the former was popularized by the Iron Realms games...

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Fri 17 Apr 2009 08:20 PM (UTC)  quote  ]
Message
Yup. Okay, cool, thanks. =)

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] 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.


8,687 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]